Skip to content

Commit b4f2d78

Browse files
committed
fix the errors
1 parent 657527a commit b4f2d78

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ToonErrorFormatter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ToonErrorFormatter implements ErrorFormatter
1111
{
1212
public function formatErrors(AnalysisResult $analysisResult, Output $output): int
1313
{
14-
if (!$analysisResult->hasErrors()) {
14+
if (! $analysisResult->hasErrors()) {
1515
$output->writeRaw('ok');
1616

1717
return 0;
@@ -59,6 +59,6 @@ public function formatErrors(AnalysisResult $analysisResult, Output $output): in
5959

6060
$output->writeRaw(Toon::encode($errorsArray));
6161

62-
return $analysisResult->hasErrors() ? 1 : 0;
62+
return 1;
6363
}
6464
}

0 commit comments

Comments
 (0)