Skip to content

Commit

Permalink
make example more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Feb 22, 2023
1 parent 111359b commit 296a2a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/no-yaml-configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@

$configResolver = new ConsoleOptionsResolver($input);

$finder = new Finder($configResolver);

$finder = (new Finder($configResolver))->getFiles();
$linter = new Linter($configResolver, $dispatcher);
$results = $linter->lintFiles($finder);

$results = $linter->lintFiles($finder->getFiles());
var_dump("Files checked :", count($results));

var_dump("Errors detected :", $results->getErrors());

Expand Down

0 comments on commit 296a2a9

Please sign in to comment.