Skip to content

Commit

Permalink
Fixed the program detection based on the phpcs command
Browse files Browse the repository at this point in the history
  • Loading branch information
morozov committed Feb 7, 2020
1 parent 2de7506 commit 1c15e29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pretty
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ $command = '';
if (file_exists('.phpcs.xml') || file_exists('phpcs.xml') || file_exists('.phpcs.xml.dist') || file_exists('phpcs.xml.dist')) {
echo "PHP CodeSniffer configuration file found, running CodeSniffer with version\n";
$command = $commands['phpcs'];
$program = explode(' ', $command, 1)[0];
$program = explode(' ', $command, 2)[0];
assertPhpCodeSnifferIsInstalled($program);

passthru($program." --version");
Expand Down

0 comments on commit 1c15e29

Please sign in to comment.