mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-22 18:54:39 +01:00
19 lines
867 B
YAML
19 lines
867 B
YAML
# @see https://www.tomasvotruba.cz/blog/2018/07/30/hidden-gems-of-php-packages-nette-utils/
|
|
services:
|
|
Rector\Rector\Function_\FunctionToStaticCallRector:
|
|
# filesystem
|
|
file_get_contents: ['Nette\Utils\FileSystem', 'read']
|
|
unlink: ['Nette\Utils\FileSystem', 'delete']
|
|
rmdir: ['Nette\Utils\FileSystem', 'delete']
|
|
|
|
# json
|
|
json_decode: ['Nette\Utils\Json', 'decode']
|
|
json_encode: ['Nette\Utils\Json', 'encode']
|
|
|
|
# strings
|
|
Rector\Nette\Rector\NotIdentical\StrposToStringsContainsRector: ~
|
|
Rector\Nette\Rector\FuncCall\SubstrStrlenFunctionToNetteUtilsStringsRector: ~
|
|
Rector\Nette\Rector\Identical\StartsWithFunctionToNetteUtilsStringsRector: ~
|
|
Rector\Nette\Rector\Identical\EndsWithFunctionToNetteUtilsStringsRector: ~
|
|
Rector\Nette\Rector\FuncCall\PregFunctionToNetteUtilsStringsRector: ~
|