Lines Matching refs:true

19 if (class_exists('PHP_CodeSniffer_Exception', true) === false) {
23 if (class_exists('PHP_CodeSniffer_File', true) === false) {
27 if (class_exists('PHP_CodeSniffer_Fixer', true) === false) {
31 if (class_exists('PHP_CodeSniffer_Tokens', true) === false) {
35 if (class_exists('PHP_CodeSniffer_CLI', true) === false) {
39 if (interface_exists('PHP_CodeSniffer_Sniff', true) === false) {
290 if (is_file(dirname(__FILE__).DIRECTORY_SEPARATOR.$path) === true) {
298 if (is_file($installedPath.DIRECTORY_SEPARATOR.$path) === true) {
306 if (is_file(dirname($rulesetDir).DIRECTORY_SEPARATOR.$path) === true) {
415 if (isset($this->allowedFileExtensions[$ext]) === true) {
417 } else if (isset($this->defaultFileExtensions[$ext]) === true) {
465 if (isset($this->ignorePatterns[$listener]) === true) {
534 ini_set('auto_detect_line_endings', true);
536 if (defined('PHP_CODESNIFFER_IN_TESTS') === true && empty($restrictions) === false) {
543 if (is_dir($standard) === true
544 && is_file(self::realpath($standard.DIRECTORY_SEPARATOR.'ruleset.xml')) === true
559 if (is_dir($standard) === true
560 … && is_file(self::realpath($standard.DIRECTORY_SEPARATOR.'ruleset.xml')) === true
627 if (empty($this->allowedFileExtensions) === true) {
646 if (PHP_CODESNIFFER_VERBOSITY > 0 || PHP_CODESNIFFER_CBF === true) {
657 || PHP_CODESNIFFER_INTERACTIVE === true
670 if ($useColors === true) {
676 if ($useColors === true) {
685 if ($useColors === true) {
702 && $showProgress === true
744 if (is_dir($rulesetDir.DIRECTORY_SEPARATOR.'Sniffs') === true) {
759 $this->setConfigData((string) $config['name'], (string) $config['value'], true);
783 if (isset($rule->exclude) === true) {
822 if (isset($arg['name']) === true) {
824 if (isset($arg['value']) === true) {
851 if (isset($arg['value']) === true) {
867 if (empty($cliValues['files']) === true && $cliValues['stdin'] === null) {
927 if (in_array($sniff, $excludedSniffs) === true) {
952 if (defined('RecursiveDirectoryIterator::FOLLOW_SYMLINKS') === true) {
1057 if (is_file($ref) === true) {
1066 if (self::isPharFile($path) === true && strpos($path, 'ruleset.xml') === false) {
1068 if (file_exists($path.DIRECTORY_SEPARATOR.'ruleset.xml') === true) {
1105 if (self::isPharFile($stdPath) === true
1144 if (is_dir($ref) === true) {
1145 if (is_file($ref.DIRECTORY_SEPARATOR.'ruleset.xml') === true) {
1201 if (isset($rule->severity) === true
1202 && $this->_shouldProcessElement($rule->severity) === true
1216 if (isset($rule->type) === true
1217 && $this->_shouldProcessElement($rule->type) === true
1231 if (isset($rule->message) === true
1232 && $this->_shouldProcessElement($rule->message) === true
1246 if (isset($rule->properties) === true
1247 && $this->_shouldProcessElement($rule->properties) === true
1263 if (isset($prop['type']) === true
1333 return true;
1336 if (PHP_CODESNIFFER_CBF === true
1337 && isset($element['phpcbf-only']) === true
1340 return true;
1344 && isset($element['phpcs-only']) === true
1347 return true;
1404 && in_array(strtolower($className), $exclusions) === true
1415 if (class_exists($classNameNS, false) === true) {
1421 if ($reflection->isAbstract() === true) {
1464 if (isset($this->ruleset[$code]['properties']) === true) {
1472 if (isset($vars['supportedTokenizers']) === true) {
1537 if (is_string($value) === true) {
1543 $value = true;
1571 if (is_dir($path) === true || self::isPharFile($path) === true) {
1572 if (self::isPharFile($path) === true) {
1576 if ($local === true) {
1593 if (is_dir($filePath) === true) {
1604 if ($this->shouldIgnoreFile($path, dirname($path)) === true) {
1648 if (empty($matches) === true) {
1653 if ($this->shouldIgnoreFile($path, $basedir) === true) {
1657 return true;
1679 if (is_array($type) === true) {
1686 if (is_int($pattern) === true) {
1713 return true;
1752 if ($contents === null && is_readable($filePath) === true) {
1754 stream_set_blocking($handle, true);
1777 if (is_object($filename) === true
1781 } else if (is_numeric($filename) === true) {
1784 if (isset($data['args'][0]) === true
1785 && ($data['args'][0] instanceof PHP_CodeSniffer_File) === true
1875 if (empty($cliValues['files']) === true) {
1876 $stdin = true;
1879 if (PHP_CODESNIFFER_VERBOSITY > 0 || (PHP_CODESNIFFER_CBF === true && $stdin === false)) {
1880 $startTime = microtime(true);
1896 if (PHP_CODESNIFFER_VERBOSITY > 0 || (PHP_CODESNIFFER_CBF === true && $stdin === false)) {
1897 $timeTaken = ((microtime(true) - $startTime) * 1000);
1906 if (PHP_CODESNIFFER_CBF === true) {
1932 if (class_exists('PHP_CodeSniffer_DocGenerators_'.$generator, true) === false) {
1991 $public=true,
1992 $strict=true
2022 if ($strict === true) {
2034 $isCaps = true;
2040 if ($isCaps === true && $lastCharWasCaps === true) {
2048 return true;
2067 $validName = true;
2107 if (in_array($varType, self::$allowedTypes) === true) {
2134 if (isset($matches[1]) === true) {
2139 if (isset($matches[3]) === true) {
2153 } else if (in_array($lowerVarType, self::$allowedTypes) === true) {
2252 if ($file->isDir() === true && $file->isDot() === false) {
2262 if (is_file($csFile) === true) {
2290 return true;
2298 if (is_file($standard) === true
2302 return true;
2308 if (is_file($ruleset) === true) {
2309 return true;
2335 if (is_file($path) === true) {
2337 } else if (self::isPharFile($standardPath) === true) {
2401 if (is_callable('Phar::running') === true) {
2418 if (is_file($configFile) === true
2429 if (isset($phpCodeSnifferConfig[$key]) === true) {
2438 $output .= var_export($phpCodeSnifferConfig, true);
2448 return true;
2461 if (isset($GLOBALS['PHP_CODESNIFFER_CONFIG_DATA']) === true) {
2466 if (is_callable('Phar::running') === true) {
2501 return true;
2536 if (file_exists($path) === true) {
2548 if (file_exists($path) === true) {
2568 if (self::isPharFile($path) === true) {