Skip to content

Commit 1c15e29

Browse files
committed
Fixed the program detection based on the phpcs command
1 parent 2de7506 commit 1c15e29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pretty

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $command = '';
5252
if (file_exists('.phpcs.xml') || file_exists('phpcs.xml') || file_exists('.phpcs.xml.dist') || file_exists('phpcs.xml.dist')) {
5353
echo "PHP CodeSniffer configuration file found, running CodeSniffer with version\n";
5454
$command = $commands['phpcs'];
55-
$program = explode(' ', $command, 1)[0];
55+
$program = explode(' ', $command, 2)[0];
5656
assertPhpCodeSnifferIsInstalled($program);
5757

5858
passthru($program." --version");

0 commit comments

Comments
 (0)