-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove parent node from StringClassNameToClassConstantRector (#4145)
- Loading branch information
1 parent
b92e378
commit bc61ac2
Showing
11 changed files
with
109 additions
and
101 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
...-tests/DeadCode/Rector/MethodCall/RemoveEmptyMethodCallRector/Fixture/skip_in_arg.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,32 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\DeadCode\Rector\MethodCall\RemoveEmptyMethodCallRector\Fixture; | ||
|
||
use Rector\Tests\DeadCode\Rector\MethodCall\RemoveEmptyMethodCallRector\Source\EmptyMethod; | ||
|
||
final class SkipInArg | ||
{ | ||
/** | ||
* @var EmptyMethod | ||
*/ | ||
private $emptyMethod; | ||
|
||
public function __construct(EmptyMethod $emptyMethod) | ||
{ | ||
$this->emptyMethod = $emptyMethod; | ||
} | ||
|
||
public function run() | ||
{ | ||
if ($this->process($this->emptyMethod->run())) { | ||
return true; | ||
} | ||
|
||
return false; | ||
} | ||
|
||
private function process() | ||
{ | ||
return true; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...ctor/String_/StringClassNameToClassConstantRector/Fixture/skip_non_existing_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rector\Tests\Php55\Rector\String_\StringClassNameToClassConstantRector\Fixture; | ||
|
||
final class SkipNonExistingClass | ||
{ | ||
public function run() | ||
{ | ||
return 'Not\Existing\Everything'; | ||
} | ||
} |
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
28 changes: 0 additions & 28 deletions
28
...naming/Rector/ClassMethod/RenameAnnotationRector/RenameAnnotationEverywhereRectorTest.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
15 changes: 0 additions & 15 deletions
15
rules-tests/Renaming/Rector/ClassMethod/RenameAnnotationRector/config/rename_everywhere.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
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