Skip to content

Commit a0a7655

Browse files
committed
Updated licence in executable and added additional autoload path
1 parent 8cf1740 commit a0a7655

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

bin/phpcs-diff

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
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());

0 commit comments

Comments
 (0)