Skip to content

Commit cb9fb38

Browse files
committed
Change --fixers by --level
1 parent 3de325d commit cb9fb38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/PhpGitHooks/Infrastructure/PhpCsFixer/PhpCsFixerHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function run()
2323
{
2424
foreach ($this->levels as $level => $value) {
2525
if (true === $value) {
26-
$this->outputHandler->setTitle('Checking ' . strtoupper($level) . ' code style with PHP-CS-FIXER');
26+
$this->outputHandler->setTitle('Checking '.strtoupper($level).' code style with PHP-CS-FIXER');
2727
$this->output->write($this->outputHandler->getTitle());
2828

2929
$errors = array();
@@ -42,7 +42,7 @@ public function run()
4242
'--dry-run',
4343
'fix',
4444
$file,
45-
'--fixers=' . $level,
45+
'--level='.$level,
4646
)
4747
);
4848

@@ -66,7 +66,7 @@ public function run()
6666

6767
/**
6868
* throw new PhpCsFixerException(implode('', $errors));
69-
* }
69+
* }.
7070
*
7171
* $this->output->writeln($this->outputHandler->getSuccessfulStepMessage());
7272
* }

0 commit comments

Comments
 (0)