Skip to content

Commit

Permalink
Replace dirname(__FILE__) by __DIR__
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarynich committed Sep 17, 2018
1 parent b32059b commit da681ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpGitHooks/Infrastructure/Tool/ToolPathFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function find($tool)
$package = $this->installedPackages[$this->tools[$tool]];
foreach ($package['bin'] as $bin) {
if (preg_match("#${tool}$#", $bin)) {
return dirname(__FILE__).self::COMPOSER_VENDOR_DIR.$package['name'].DIRECTORY_SEPARATOR.$bin;
return __DIR__.self::COMPOSER_VENDOR_DIR.$package['name'].DIRECTORY_SEPARATOR.$bin;
}
}
}
Expand Down

0 comments on commit da681ef

Please sign in to comment.