Skip to content
This repository has been archived by the owner on Oct 27, 2019. It is now read-only.

Commit

Permalink
Fix the relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Apr 28, 2017
1 parent b90b557 commit 13e5d89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sniff
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 13e5d89

Please sign in to comment.