From 13e5d8991a0f415222a3d652b71e4def53f97681 Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Sat, 29 Apr 2017 00:48:06 +0200 Subject: [PATCH] Fix the relative path --- sniff | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sniff b/sniff index 43afdc9..3ad158a 100755 --- a/sniff +++ b/sniff @@ -53,9 +53,9 @@ if ($config['allow-risky']) { if (file_exists('vendor/bin/php-cs-fixer')) { // Installed in vendor sub-directory $command = 'vendor/bin/php-cs-fixer'; -} elseif (file_exists(__DIR__.'/php-cs-fixer')) { +} elseif (file_exists(__DIR__.'/../../bin/php-cs-fixer')) { // When sniff is installed as a dependency, along with php-cs-fixer in vendor/bin/ - $command = __DIR__.'/php-cs-fixer'; + $command = __DIR__.'/../../bin/php-cs-fixer'; } else { // Global install $command = 'php-cs-fixer';