File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 44 * phpcs-diff detects violations of a defined coding standard based on a git diff.
55 *
66 * @author Oliver Tappin <[email protected] > 7- * @license https://github.com/olivertappin/phpcs-diff/blob/master/licence.txt BSD Licence
7+ * @license https://github.com/olivertappin/phpcs-diff/blob/master/LICENCE.md MIT Licence
88 */
99
10- if (is_file (__DIR__ . '/../autoload.php ' ) === true ) {
10+ if (is_file (__DIR__ . '/../../../autoload.php ' ) === true ) {
11+ include_once __DIR__ . '/../../../autoload.php ' ;
12+ } elseif (is_file (__DIR__ . '/../autoload.php ' ) === true ) {
1113 include_once __DIR__ . '/../autoload.php ' ;
1214} else {
1315 include_once 'vendor/autoload.php ' ;
@@ -17,4 +19,5 @@ $climate = new League\CLImate\CLImate();
1719
1820$ phpcsDiff = new PhpcsDiff \PhpcsDiff ($ argv , $ climate );
1921$ phpcsDiff ->run ();
20- exit ($ phpcsDiff ->getExitCode ());
22+
23+ exit ($ phpcsDiff ->getExitCode ());
You can’t perform that action at this time.
0 commit comments