Skip to content

Commit

Permalink
Merge pull request #349 from szepeviktor/patch-2
Browse files Browse the repository at this point in the history
Fix CS in rector-migrate.php
  • Loading branch information
Kharhamel authored May 2, 2022
2 parents 850e853 + 12d1a68 commit 9cdf226
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions generator/src/FileCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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);
}

Expand Down
4 changes: 2 additions & 2 deletions rector-migrate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -1103,5 +1103,5 @@
'zip_entry_open' => 'Safe\zip_entry_open',
'zip_entry_read' => 'Safe\zip_entry_read',
'zlib_decode' => 'Safe\zlib_decode',
]]]);
]]]);
};

0 comments on commit 9cdf226

Please # to comment.