From a003f9191be7a4733b1e32824b261a6ab0b1b121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Mon, 25 Apr 2022 18:30:38 +0000 Subject: [PATCH 1/3] Fix CS in rector-migrate.php --- rector-migrate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rector-migrate.php b/rector-migrate.php index cedb3668..e8c0da9f 100644 --- a/rector-migrate.php +++ b/rector-migrate.php @@ -5,7 +5,7 @@ use Rector\Renaming\Rector\FuncCall\RenameFunctionRector; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; -# This file configures rector/rector to replace all PHP functions with their equivalent "safe" functions +// This file configures rector/rector to replace all PHP functions with their equivalent "safe" functions. return static function (ContainerConfigurator $containerConfigurator): void { $services = $containerConfigurator->services(); @@ -1103,5 +1103,5 @@ 'zip_entry_open' => 'Safe\zip_entry_open', 'zip_entry_read' => 'Safe\zip_entry_read', 'zlib_decode' => 'Safe\zlib_decode', -]]]); + ]]]); }; From 0d235ec955754c765249f10892d2806f74cc318c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Mon, 25 Apr 2022 18:51:06 +0000 Subject: [PATCH 2/3] Update FileCreator.php --- generator/src/FileCreator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/src/FileCreator.php b/generator/src/FileCreator.php index d7f5dbae..ae2b9625 100644 --- a/generator/src/FileCreator.php +++ b/generator/src/FileCreator.php @@ -104,7 +104,7 @@ public function generateRectorFile(array $functions, string $path): void use Rector\Renaming\Rector\FuncCall\RenameFunctionRector; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; -# This file configures rector/rector to replace all PHP functions with their equivalent "safe" functions +// This file configures rector/rector to replace all PHP functions with their equivalent "safe" functions return static function (ContainerConfigurator $containerConfigurator): void { $services = $containerConfigurator->services(); @@ -119,7 +119,7 @@ public function generateRectorFile(array $functions, string $path): void fwrite($stream, " '$functionName' => 'Safe\\$functionName',\n"); } - fwrite($stream, "]]]);\n};\n"); + fwrite($stream, " ]]]);\n};\n"); fclose($stream); } From 12d1a68c01961f36135e701f4b23bebe85b1f0f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Mon, 25 Apr 2022 18:53:34 +0000 Subject: [PATCH 3/3] Update FileCreator.php --- generator/src/FileCreator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/src/FileCreator.php b/generator/src/FileCreator.php index ae2b9625..3fedf965 100644 --- a/generator/src/FileCreator.php +++ b/generator/src/FileCreator.php @@ -104,7 +104,7 @@ public function generateRectorFile(array $functions, string $path): void use Rector\Renaming\Rector\FuncCall\RenameFunctionRector; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; -// This file configures rector/rector to replace all PHP functions with their equivalent "safe" functions +// This file configures rector/rector to replace all PHP functions with their equivalent "safe" functions. return static function (ContainerConfigurator $containerConfigurator): void { $services = $containerConfigurator->services();