diff --git a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/mirror_comment.php.inc b/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/mirror_comment.php.inc deleted file mode 100644 index df01205447c..00000000000 --- a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/mirror_comment.php.inc +++ /dev/null @@ -1,35 +0,0 @@ - ------ - diff --git a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/mirror_comment2.php.inc b/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/mirror_comment2.php.inc deleted file mode 100644 index bd234e0fc59..00000000000 --- a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/mirror_comment2.php.inc +++ /dev/null @@ -1,39 +0,0 @@ - ------ - diff --git a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/mirror_comment3.php.inc b/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/mirror_comment3.php.inc deleted file mode 100644 index 3df2cbb3961..00000000000 --- a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/mirror_comment3.php.inc +++ /dev/null @@ -1,37 +0,0 @@ - ------ - diff --git a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/mirror_comment_deep_comment.php.inc b/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/mirror_comment_deep_comment.php.inc deleted file mode 100644 index 665ad1aecbd..00000000000 --- a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/mirror_comment_deep_comment.php.inc +++ /dev/null @@ -1,59 +0,0 @@ - 5) { - echo 'a'; - } else { - // above if comment - if ($a === 5) { - // inside if comment - foreach ($b_arg as $element) { - // inside foreach comment - echo $element; - } - echo 'b'; - } else { - // inside else comment - echo 'c'; - } - } - } -} - -?> ------ - 5) { - echo 'a'; - } elseif ($a === 5) { - // above if comment - // inside if comment - foreach ($b_arg as $element) { - // inside foreach comment - echo $element; - } - echo 'b'; - } else { - // inside else comment - echo 'c'; - } - } -} - -?> diff --git a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/nested_else.php.inc b/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/nested_else.php.inc deleted file mode 100644 index 4326fe191f9..00000000000 --- a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/nested_else.php.inc +++ /dev/null @@ -1,71 +0,0 @@ -cond1) { - $this->doSomething(); - } else { - if ($this->cond2) { - $this->doSomething(); - } else { - $this->doSomething(); - } - } - } - - public function doSomething() - { - - } -} - -?> ------ -cond1) { - $this->doSomething(); - } elseif ($this->cond2) { - $this->doSomething(); - } else { - $this->doSomething(); - } - } - - public function doSomething() - { - - } -} - -?> diff --git a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/nested_elseif.php.inc b/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/nested_elseif.php.inc deleted file mode 100644 index e10b38335db..00000000000 --- a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/nested_elseif.php.inc +++ /dev/null @@ -1,81 +0,0 @@ -cond1) { - $this->doSomething(); - } else { - if ($this->cond2) { - $this->doSomething(); - } elseif ($this->cond3) { - $this->doSomething(); - } - } - } - - public function doSomething() - { - - } -} - -?> ------ -cond1) { - $this->doSomething(); - } elseif ($this->cond2) { - $this->doSomething(); - } elseif ($this->cond3) { - $this->doSomething(); - } - } - - public function doSomething() - { - - } -} - -?> diff --git a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/recursive.php.inc b/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/recursive.php.inc deleted file mode 100644 index afe51a5698a..00000000000 --- a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/recursive.php.inc +++ /dev/null @@ -1,83 +0,0 @@ -cond1) { - $this->doSomething(); - } else { - if ($this->cond2) { - $this->doSomething(); - } else { - if ($this->cond3) { - $this->doSomething(); - } - } - } - } - - public function doSomething() - { - - } -} - -?> ------ -cond1) { - $this->doSomething(); - } elseif ($this->cond2) { - $this->doSomething(); - } elseif ($this->cond3) { - $this->doSomething(); - } - } - - public function doSomething() - { - - } -} - -?> diff --git a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/simple.php.inc b/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/simple.php.inc deleted file mode 100644 index 9e3300b911f..00000000000 --- a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/simple.php.inc +++ /dev/null @@ -1,67 +0,0 @@ -cond1) { - $this->doSomething(); - } else { - if ($this->cond2) { - $this->doSomething(); - } - } - } - - public function doSomething() - { - - } -} - -?> ------ -cond1) { - $this->doSomething(); - } elseif ($this->cond2) { - $this->doSomething(); - } - } - - public function doSomething() - { - - } -} - -?> diff --git a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/skip_alternative_syntax.php.inc b/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/skip_alternative_syntax.php.inc deleted file mode 100644 index 3edb1782341..00000000000 --- a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/skip_alternative_syntax.php.inc +++ /dev/null @@ -1,18 +0,0 @@ -cond1) { - return 1; - } else { - // some comment - []; - } - } -} diff --git a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/skip_inner_alternative_syntax.php.inc b/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/skip_inner_alternative_syntax.php.inc deleted file mode 100644 index 83c2c5ef34a..00000000000 --- a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/skip_inner_alternative_syntax.php.inc +++ /dev/null @@ -1,16 +0,0 @@ -cond1) { - $this->doSomething(); - } else { - if ($this->cond2) { - $this->doSomething(); - } - $this->doSomething(); - } - } - - public function doSomething() - { - - } -} diff --git a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/skip_no_else_if.php.inc b/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/skip_no_else_if.php.inc deleted file mode 100644 index f271d6a9472..00000000000 --- a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/skip_no_else_if.php.inc +++ /dev/null @@ -1,30 +0,0 @@ -cond1) { - $this->doSomething(); - } else { - $this->doSomething(); - } - } - - public function doSomething() - { - - } -} diff --git a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/skip_with_html.php.inc b/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/skip_with_html.php.inc deleted file mode 100644 index 27b76053e92..00000000000 --- a/rules-tests/CodeQuality/Rector/If_/ShortenElseIfRector/Fixture/skip_with_html.php.inc +++ /dev/null @@ -1,35 +0,0 @@ - -