mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01: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
|
||||
|
||||
```yaml
|
||||
services:
|
||||
Rector\Renaming\Rector\FuncCall\RenameFuncCallToStaticCallRector:
|
||||
$functionsToStaticCalls:
|
||||
strPee:
|
||||
- Strings
|
||||
- strPaa
|
||||
```
|
||||
|
||||
↓
|
||||
|
||||
```diff
|
||||
class SomeClass
|
||||
{
|
||||
public function run()
|
||||
{
|
||||
- strPee('...');
|
||||
+ \Strings::strPee('...');
|
||||
+ \Strings::strPaa('...');
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -18,7 +18,7 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
use Rector\NodeTypeResolver\PhpDoc\NodeAnalyzer\DocBlockManipulator;
|
||||
use Rector\PhpParser\Node\Manipulator\ClassManipulator;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\RectorDefinition\ConfiguredCodeSample;
|
||||
use Rector\Core\RectorDefinition\ConfiguredCodeSample;
|
||||
use Rector\Core\RectorDefinition\RectorDefinition;
|
||||
|
||||
final class PseudoNamespaceToNamespaceRector
|
||||
|
@ -8,8 +8,8 @@ use Nette\Utils\DateTime;
|
||||
use Nette\Utils\Json;
|
||||
use Nette\Utils\Strings;
|
||||
use Rector\Core\Contract\Rector\RectorInterface;
|
||||
use Rector\Core\RectorDefinition\ConfiguredCodeSample;
|
||||
use Rector\Core\RectorDefinition\RectorDefinition;
|
||||
use Rector\RectorDefinition\ConfiguredCodeSample;
|
||||
use Rector\Utils\DocumentationGenerator\Contract\OutputFormatter\DumpRectorsOutputFormatterInterface;
|
||||
use Rector\Utils\DocumentationGenerator\RectorMetadataResolver;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user