Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request #20 from mycroft/fix/phpcsfixer-fixer
Browse files Browse the repository at this point in the history
Using new PhpCsFixer\Runner\Runner instead of removed PhpCsFixer\Fixer.
  • Loading branch information
joelwurtz committed Apr 13, 2016
2 parents 65fe879 + c615356 commit 189aafa
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/JaneOpenApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@
use PhpCsFixer\Config;
use PhpCsFixer\ConfigInterface;
use PhpCsFixer\Console\ConfigurationResolver;
use PhpCsFixer\Differ\NullDiffer;
use PhpCsFixer\Error\ErrorsManager;
use PhpCsFixer\Finder;
use PhpCsFixer\Fixer;
use PhpCsFixer\Linter\NullLinter;
use PhpCsFixer\Runner\Runner;

class JaneOpenApi
{
Expand Down Expand Up @@ -200,9 +203,9 @@ protected function fix($directory)
$finder->in($directory);
$fixerConfig->finder($finder);

$fixer = new Fixer();
$runner = new Runner($fixerConfig, new NullDiffer(), null, new ErrorsManager(), new NullLinter(), false);

return $fixer->fix($fixerConfig);
return $runner->fix();
}

public static function build()
Expand Down

0 comments on commit 189aafa

Please sign in to comment.