comparison vendor/squizlabs/php_codesniffer/src/Files/FileList.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
9 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence 9 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
10 */ 10 */
11 11
12 namespace PHP_CodeSniffer\Files; 12 namespace PHP_CodeSniffer\Files;
13 13
14 use PHP_CodeSniffer\Autoload;
14 use PHP_CodeSniffer\Util; 15 use PHP_CodeSniffer\Util;
15 use PHP_CodeSniffer\Ruleset; 16 use PHP_CodeSniffer\Ruleset;
16 use PHP_CodeSniffer\Config; 17 use PHP_CodeSniffer\Config;
17 use PHP_CodeSniffer\Exceptions\DeepExitException; 18 use PHP_CodeSniffer\Exceptions\DeepExitException;
18 19
149 if ($filename === false) { 150 if ($filename === false) {
150 $error = "ERROR: Custom filter \"$filterType\" not found".PHP_EOL; 151 $error = "ERROR: Custom filter \"$filterType\" not found".PHP_EOL;
151 throw new DeepExitException($error, 3); 152 throw new DeepExitException($error, 3);
152 } 153 }
153 154
154 $filterClass = \PHP_CodeSniffer\Autoload::loadFile($filename); 155 $filterClass = Autoload::loadFile($filename);
155 } else { 156 } else {
156 $filterClass = '\PHP_CodeSniffer\Filters\\'.$filterType; 157 $filterClass = '\PHP_CodeSniffer\Filters\\'.$filterType;
157 } 158 }
158 } 159 }
159 160