Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
43 lines (37 loc) · 1.32 KB

File metadata and controls

43 lines (37 loc) · 1.32 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* PHPCSDevTools, tools for PHP_CodeSniffer sniff developers.
*
* @package PHPCSDevTools
* @copyright 2019 PHPCSDevTools Contributors
* @license https://opensource.org/licenses/LGPL-3.0 LGPL3
* @link https://github.com/PHPCSStandards/PHPCSDevTools
*/
if (defined('PHPCSDEVTOOLS_AUTOLOAD') === false) {
/*
* Register an autoloader.
*
* This autoloader handles the loading of all classes and interfaces
* in this repo.
*
* Note: The autoloading of the PHPCSDebug standard can be handled without problem by PHPCS,
* so a directive to load this autoload file is not included in the PHPCSDebug ruleset.
*/
spl_autoload_register(function ($fqClassName) {
// Only try & load our own classes.
if (stripos($fqClassName, 'PHPCSDevtools\\') !== 0) {
return false;
}
// Don't load PHPCS sniff files to prevent interference with the PHPCS native autoloader.
if (stripos($fqClassName, 'PHPCSDevtools\\PHPCSDebug\\') === 0) {
return false;
}
$file = realpath(__DIR__ . strtr(substr($fqClassName, 13), '\\', '/') . '.php');
if (file_exists($file) === true) {
include_once $file;
return true;
}
return false;
});
define('PHPCSDEVTOOLS_AUTOLOAD', true);
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.