From 10e6b8c5eef97588f480bd7874d50a3bdb031933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20Felix=20=C5=A0ulc?= Date: Fri, 6 Dec 2024 17:11:06 +0100 Subject: [PATCH] Revert "Ruleset: there is need for extra line above control structure" This reverts commit 310e6eb095885b67992db8c99be8f7b50a2f3c95. --- ruleset.xml | 2 ++ tests/Sets/base/2-bad/Foobar.php | 2 -- tests/Sets/base/2-bad/snapshot.txt | 16 ++++++---------- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/ruleset.xml b/ruleset.xml index 366e2ec..a4561c7 100755 --- a/ruleset.xml +++ b/ruleset.xml @@ -432,6 +432,8 @@ + + diff --git a/tests/Sets/base/2-bad/Foobar.php b/tests/Sets/base/2-bad/Foobar.php index db88a1c..914bd18 100644 --- a/tests/Sets/base/2-bad/Foobar.php +++ b/tests/Sets/base/2-bad/Foobar.php @@ -45,7 +45,6 @@ public function __construct() */ public function isBaz($value): bool { - if (is_bool($value)) { return true; } @@ -78,7 +77,6 @@ protected function getForEach(): array { $result = []; - foreach ($this->foo as $foo) { if (strlen($foo) === self::FOO_LENGTH) { continue; diff --git a/tests/Sets/base/2-bad/snapshot.txt b/tests/Sets/base/2-bad/snapshot.txt index 8667545..fbaf9a9 100644 --- a/tests/Sets/base/2-bad/snapshot.txt +++ b/tests/Sets/base/2-bad/snapshot.txt @@ -2,16 +2,12 @@ - - - - - - - - - - + + + + + +