Skip to content

Commit

Permalink
php-cs-fixer moved to symfony#1251
Browse files Browse the repository at this point in the history
  • Loading branch information
jrushlow committed May 23, 2023
1 parent c8e960d commit 053bcb5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
9 changes: 0 additions & 9 deletions src/Maker/Security/AbstractSecurityMaker.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,6 @@ public function __construct(
) {
}

protected function runFixer(string $templateFilePath): void
{
$fixerPath = \dirname(__DIR__, 2).'/bin/php-cs-fixer-v3.13.0.phar';
$configPath = \dirname(__DIR__, 2).'/Resources/test/.php_cs.test';

$process = Process::fromShellCommandline(sprintf('php %s --config=%s --using-cache=no fix %s', $fixerPath, $configPath, $templateFilePath));
$process->run();
}

public function configureDependencies(DependencyBuilder $dependencies): void
{
$dependencies->addClassDependency(SecurityBundle::class, 'security');
Expand Down
1 change: 0 additions & 1 deletion src/Maker/Security/MakeJsonLogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
$generator->dumpFile($controllerPath, $manipulator->getSourceCode());

$generator->writeChanges();
$this->runFixer($controllerPath);

$this->writeSuccessMessage($io);

Expand Down
Binary file removed src/bin/php-cs-fixer-v3.13.0.phar
Binary file not shown.

0 comments on commit 053bcb5

Please sign in to comment.