File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/php -q
2
2
<?php
3
3
4
- /**
5
- * Bin stub.
6
- */
7
4
$ options = [
8
- __DIR__ . '/../../../autoload.php ' ,
9
- __DIR__ . '/../../autoload.php ' ,
10
5
__DIR__ . '/../vendor/autoload.php ' ,
11
6
__DIR__ . '/vendor/autoload.php '
12
7
];
8
+ if (!empty ($ _SERVER ['PWD ' ])) {
9
+ array_unshift ($ options , $ _SERVER ['PWD ' ] . '/vendor/autoload.php ' );
10
+ }
11
+
13
12
foreach ($ options as $ file ) {
14
13
if (file_exists ($ file )) {
15
14
define ('SNIFFER_COMPOSER_INSTALL ' , $ file );
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/php -q
2
2
<?php
3
3
4
- /**
5
- * Bin stub.
6
- */
7
4
$ options = [
8
- __DIR__ . '/../../../autoload.php ' ,
9
- __DIR__ . '/../../autoload.php ' ,
10
5
__DIR__ . '/../vendor/autoload.php ' ,
11
6
__DIR__ . '/vendor/autoload.php '
12
7
];
8
+ if (!empty ($ _SERVER ['PWD ' ])) {
9
+ array_unshift ($ options , $ _SERVER ['PWD ' ] . '/vendor/autoload.php ' );
10
+ }
11
+
13
12
foreach ($ options as $ file ) {
14
13
if (file_exists ($ file )) {
15
14
define ('SNIFFER_COMPOSER_INSTALL ' , $ file );
You can’t perform that action at this time.
0 commit comments