-
-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DeadCode] Merge RemoveDeadConstructorRector, to RemoveEmptyClassMeth…
…odRector with same behavior (#2829)
- Loading branch information
1 parent
9018492
commit 6c8c40b
Showing
17 changed files
with
44 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
rules-tests/DeadCode/Rector/ClassMethod/RemoveDeadConstructorRector/Fixture/fixture.php.inc
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...ests/DeadCode/Rector/ClassMethod/RemoveDeadConstructorRector/Fixture/skip_private.php.inc
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
...adCode/Rector/ClassMethod/RemoveDeadConstructorRector/RemoveDeadConstructorRectorTest.php
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...-tests/DeadCode/Rector/ClassMethod/RemoveDeadConstructorRector/config/configured_rule.php
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
...ts/DeadCode/Rector/ClassMethod/RemoveEmptyClassMethodRector/Fixture/first_fixture.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\DeadCode\Rector\ClassMethod\RemoveEmptyClassMethodRector\Fixture; | ||
|
||
final class FirstFixture | ||
{ | ||
public function __construct() | ||
{ | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\DeadCode\Rector\ClassMethod\RemoveEmptyClassMethodRector\Fixture; | ||
|
||
final class FirstFixture | ||
{ | ||
} | ||
|
||
?> |
2 changes: 1 addition & 1 deletion
2
...eadConstructorRector/Fixture/skip.php.inc → ...ptyClassMethodRector/Fixture/skip.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Fixture/skip_extends_with_no_stmt.php.inc → ...Fixture/skip_extends_with_no_stmt.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...sts/DeadCode/Rector/ClassMethod/RemoveEmptyClassMethodRector/Fixture/skip_private.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\DeadCode\Rector\ClassMethod\RemoveEmptyClassMethodRector\Fixture; | ||
|
||
class SkipPrivate | ||
{ | ||
private function __construct() | ||
{ | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...r/Fixture/skip_property_promotion.php.inc → ...ure/skip_property_promotion_again.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../skip_protected_on_abstract_class.php.inc → .../skip_protected_on_abstract_class.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...skip_protected_on_non_final_class.php.inc → ...skip_protected_on_non_final_class.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 0 additions & 102 deletions
102
rules/DeadCode/Rector/ClassMethod/RemoveDeadConstructorRector.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters