mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-27 21:23:31 +00:00
fix cs
This commit is contained in:
parent
fee94b888f
commit
86bcb6eb7b
|
@ -7374,13 +7374,24 @@ Replace constant by new ones
|
||||||
|
|
||||||
Rename func call to static call
|
Rename func call to static call
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
services:
|
||||||
|
Rector\Renaming\Rector\FuncCall\RenameFuncCallToStaticCallRector:
|
||||||
|
$functionsToStaticCalls:
|
||||||
|
strPee:
|
||||||
|
- Strings
|
||||||
|
- strPaa
|
||||||
|
```
|
||||||
|
|
||||||
|
↓
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
class SomeClass
|
class SomeClass
|
||||||
{
|
{
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
- strPee('...');
|
- strPee('...');
|
||||||
+ \Strings::strPee('...');
|
+ \Strings::strPaa('...');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -18,7 +18,7 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||||
use Rector\NodeTypeResolver\PhpDoc\NodeAnalyzer\DocBlockManipulator;
|
use Rector\NodeTypeResolver\PhpDoc\NodeAnalyzer\DocBlockManipulator;
|
||||||
use Rector\PhpParser\Node\Manipulator\ClassManipulator;
|
use Rector\PhpParser\Node\Manipulator\ClassManipulator;
|
||||||
use Rector\Core\Rector\AbstractRector;
|
use Rector\Core\Rector\AbstractRector;
|
||||||
use Rector\RectorDefinition\ConfiguredCodeSample;
|
use Rector\Core\RectorDefinition\ConfiguredCodeSample;
|
||||||
use Rector\Core\RectorDefinition\RectorDefinition;
|
use Rector\Core\RectorDefinition\RectorDefinition;
|
||||||
|
|
||||||
final class PseudoNamespaceToNamespaceRector
|
final class PseudoNamespaceToNamespaceRector
|
||||||
|
|
|
@ -8,8 +8,8 @@ use Nette\Utils\DateTime;
|
||||||
use Nette\Utils\Json;
|
use Nette\Utils\Json;
|
||||||
use Nette\Utils\Strings;
|
use Nette\Utils\Strings;
|
||||||
use Rector\Core\Contract\Rector\RectorInterface;
|
use Rector\Core\Contract\Rector\RectorInterface;
|
||||||
|
use Rector\Core\RectorDefinition\ConfiguredCodeSample;
|
||||||
use Rector\Core\RectorDefinition\RectorDefinition;
|
use Rector\Core\RectorDefinition\RectorDefinition;
|
||||||
use Rector\RectorDefinition\ConfiguredCodeSample;
|
|
||||||
use Rector\Utils\DocumentationGenerator\Contract\OutputFormatter\DumpRectorsOutputFormatterInterface;
|
use Rector\Utils\DocumentationGenerator\Contract\OutputFormatter\DumpRectorsOutputFormatterInterface;
|
||||||
use Rector\Utils\DocumentationGenerator\RectorMetadataResolver;
|
use Rector\Utils\DocumentationGenerator\RectorMetadataResolver;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user