File tree Expand file tree Collapse file tree 3 files changed +3
-15
lines changed Expand file tree Collapse file tree 3 files changed +3
-15
lines changed Original file line number Diff line number Diff line change 8
8
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
9
9
*/
10
10
11
- if (is_file (__DIR__ .'/../autoload.php ' ) === true ) {
12
- include_once __DIR__ .'/../autoload.php ' ;
13
- } else {
14
- include_once 'PHP/CodeSniffer/autoload.php ' ;
15
- }
11
+ require_once __DIR__ .'/../autoload.php ' ;
16
12
17
13
$ runner = new PHP_CodeSniffer \Runner ();
18
14
$ exitCode = $ runner ->runPHPCBF ();
Original file line number Diff line number Diff line change 8
8
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
9
9
*/
10
10
11
- if (is_file (__DIR__ .'/../autoload.php ' ) === true ) {
12
- include_once __DIR__ .'/../autoload.php ' ;
13
- } else {
14
- include_once 'PHP/CodeSniffer/autoload.php ' ;
15
- }
11
+ require_once __DIR__ .'/../autoload.php ' ;
16
12
17
13
$ runner = new PHP_CodeSniffer \Runner ();
18
14
$ exitCode = $ runner ->runPHPCS ();
Original file line number Diff line number Diff line change 19
19
define ('PHP_CODESNIFFER_VERBOSITY ' , 0 );
20
20
}
21
21
22
- if (is_file (__DIR__ .'/../autoload.php ' ) === true ) {
23
- include_once __DIR__ .'/../autoload.php ' ;
24
- } else {
25
- include_once 'PHP/CodeSniffer/autoload.php ' ;
26
- }
22
+ require_once __DIR__ .'/../autoload.php ' ;
27
23
28
24
$ tokens = new \PHP_CodeSniffer \Util \Tokens ();
29
25
You can’t perform that action at this time.
0 commit comments