Here is the list of the most complex expressions used in the code. A complex expression is an expression that requires more than 20 tokens to be build.
Literal arrays are omitted.
File | Count | Expression |
---|---|---|
/src/Files/File.php:1751 | 1 | return ['scope' => $scope, 'scope_specified' => $scopeSpecified, 'return_type' => $returnType, 'return_type_token' => $returnTypeToken, 'return_type_end_token' => $returnTypeEndToken, 'nullable_return_type' => $nullableReturnType, 'is_abstract' => $isAbstract, 'is_final' => $isFinal, 'is_static' => $isStatic, 'has_body' => $hasBody, ] |
/src/Files/LocalFile.php:132 | 1 | $cache = ['hash' => $hash, 'errors' => $this->errors, 'warnings' => $this->warnings, 'metrics' => $this->metrics, 'errorCount' => $this->errorCount, 'warningCount' => $this->warningCount, 'fixableCount' => $this->fixableCount, 'numTokens' => $this->numTokens, ] |
/src/Standards/PEAR/Sniffs/Commenting/FunctionCommentSniff.php:481 | 1 | $wrapLength = ($tokens[($param['tag'] + 2)]['length'] - $param['type_space'] - $param['var_space'] - strlen($param['type']) - strlen($param['var'])) |
/src/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.inc:16 | 1 | $args = array('"' . $this->id . '"', '"' . $this->stepInfo['title'] . '"', '"' . ((isset($this->stepInfo['description']) === TRUE) ? $this->stepInfo['description'] : '') . '"', '"' . (isset($this->stepInfo['description']) === TRUE ? $this->stepInfo['description'] : '') . '"', '"' . $this->stepInfo['title'] . '"', ) |
/src/Util/Cache.php:151 | 1 | $configData = ['phpVersion' => PHP_VERSION_ID, 'phpExtensions' => $phpExtensionsHash, 'tabWidth' => $config->tabWidth, 'encoding' => $config->encoding, 'recordErrors' => $config->recordErrors, 'annotations' => $config->annotations, 'configData' => Config::getAllConfigData( ), 'codeHash' => $codeHash, 'rulesetHash' => $rulesetHash, ] |
/src/Reporter.php:336 | 1 | $report = ['filename' => Common::stripBasepath($phpcsFile->getFilename( ), $this->config->basepath), 'errors' => $phpcsFile->getErrorCount( ), 'warnings' => $phpcsFile->getWarningCount( ), 'fixable' => $phpcsFile->getFixableCount( ), 'messages' => [ ], ] |
/src/Runner.php:515 | 1 | $childOutput = ['totalFiles' => $this->reporter->totalFiles, 'totalErrors' => $this->reporter->totalErrors, 'totalWarnings' => $this->reporter->totalWarnings, 'totalFixable' => $this->reporter->totalFixable, 'totalFixed' => $this->reporter->totalFixed, ] |
/src/Tokenizers/PHP.php:2597 | 1 | if($lastEndToken !== null && ((isset($this->tokens[$scopeCloser]['parenthesis_opener']) === true && $this->tokens[$scopeCloser]['parenthesis_opener'] < $arrow) || (isset($this->tokens[$scopeCloser]['bracket_opener']) === true && $this->tokens[$scopeCloser]['bracket_opener'] < $arrow))) { /**/ } |
/src/Tokenizers/PHP.php:2614 | 1 | if($inTernary === false && isset($this->tokens[$scopeCloser]['scope_closer'], $this->tokens[$scopeCloser]['scope_condition']) === true && $scopeCloser === $this->tokens[$scopeCloser]['scope_closer'] && $this->tokens[$this->tokens[$scopeCloser]['scope_condition']]['code'] === T_FN) { /**/ } |
/src/Tokenizers/PHP.php:2624 | 1 | if(isset($this->tokens[$scopeCloser]['scope_closer']) === true && $this->tokens[$scopeCloser]['code'] !== T_INLINE_ELSE && $this->tokens[$scopeCloser]['code'] !== T_END_HEREDOC && $this->tokens[$scopeCloser]['code'] !== T_END_NOWDOC) { /**/ } |
/src/Tokenizers/PHP.php:2746 | 1 | if(($this->tokens[$x]['code'] === T_CLOSE_PARENTHESIS && isset($this->tokens[$x]['parenthesis_owner']) === true && isset(Util\Tokens::$scopeOpeners[$this->tokens[$this->tokens[$x]['parenthesis_owner']]['code']]) === true) || isset($allowed[$this->tokens[$x]['code']]) === false) { /**/ } |
/src/Tokenizers/PHP.php:2904 | 1 | if($this->tokens[$x]['code'] === T_OPEN_CURLY_BRACKET && isset($this->tokens[$x]['scope_condition']) === true && $this->tokens[$this->tokens[$x]['scope_condition']]['code'] === T_FUNCTION) { /**/ } |
/src/Tokenizers/PHP.php:2948 | 1 | if($suspectedType === 'property or parameter' && (isset(Util\Tokens::$scopeModifiers[$this->tokens[$x]['code']]) === true || $this->tokens[$x]['code'] === T_VAR || $this->tokens[$x]['code'] === T_READONLY)) { /**/ } |
/src/Tokenizers/PHP.php:3071 | 1 | if(($this->tokens[$i]['code'] !== T_CASE && $this->tokens[$i]['code'] !== T_DEFAULT) || isset($this->tokens[$i]['scope_opener']) === false) { /**/ } |
/src/Tokenizers/PHP.php:1498 | 1 | if(($tokenIsArray === false && $token[0] === '?' && isset($tokens[($stackPtr + 1)]) === true && $tokens[($stackPtr + 1)][0] === '?' && isset($tokens[($stackPtr + 2)]) === true && $tokens[($stackPtr + 2)][0] === '=') || ($tokenIsArray === true && $token[0] === T_COALESCE && isset($tokens[($stackPtr + 1)]) === true && $tokens[($stackPtr + 1)][0] === '=')) { /**/ } |
/src/Tokenizers/PHP.php:1612 | 1 | if(substr(strtolower($tokens[$i][1]), -1) === 'e' && ($tokens[($i + 1)] === '-' || $tokens[($i + 1)] === '+')) { /**/ } |
/src/Tokenizers/PHP.php:1600 | 1 | if($tokens[$i][0] === T_STRING && $tokens[$i][1][0] === '_' && ((strpos($newContent, '0x') === 0 && preg_match('`^((?<!\.)_[0-9A-F][0-9A-F\.]*)+$`iD', $tokens[$i][1]) === 1) || (strpos($newContent, '0x') !== 0 && substr($newContent, -1) !== '.' && substr(strtolower($newContent), -1) !== 'e' && preg_match('`^(?:(?<![\.e])_[0-9][0-9e\.]*)+$`iD', $tokens[$i][1]) === 1))) { /**/ } |
/src/Tokenizers/PHP.php:1577 | 1 | if(PHP_VERSION_ID < 70400 && ($tokenIsArray === true && ($token[0] === T_LNUMBER || $token[0] === T_DNUMBER) && isset($tokens[($stackPtr + 1)]) === true && is_array($tokens[($stackPtr + 1)]) === true && $tokens[($stackPtr + 1)][0] === T_STRING && $tokens[($stackPtr + 1)][1][0] === '_')) { /**/ } |
/src/Tokenizers/PHP.php:1554 | 1 | if($tokenIsArray === false && $token[0] === '?' && isset($tokens[($stackPtr + 1)]) === true && is_array($tokens[($stackPtr + 1)]) === true && $tokens[($stackPtr + 1)][0] === T_OBJECT_OPERATOR) { /**/ } |
/src/Tokenizers/PHP.php:2063 | 1 | if($tokenIsArray === true && $token[0] === T_STRING && isset($tokens[($stackPtr + 1)]) === true && $tokens[($stackPtr + 1)] === ':' && (is_array($tokens[($stackPtr - 1)]) === false || $tokens[($stackPtr - 1)][0] !== T_PAAMAYIM_NEKUDOTAYIM)) { /**/ } |
/src/Tokenizers/PHP.php:1915 | 1 | if($stackPtr > 1 && (is_array($tokens[($stackPtr - 1)]) === true && $tokens[($stackPtr - 1)][0] === T_PAAMAYIM_NEKUDOTAYIM) && $tokenIsArray === true && $token[0] !== T_STRING && $token[0] !== T_VARIABLE && $token[0] !== T_DOLLAR && isset(Util\Tokens::$emptyTokens[$token[0]]) === false) { /**/ } |
/src/Tokenizers/PHP.php:1805 | 1 | if(($tokenType !== T_CALLABLE && isset($lastRelevantNonEmpty) === false) || ($lastRelevantNonEmpty === T_ARRAY && $tokenType === '(') || (($lastRelevantNonEmpty === T_STRING || $lastRelevantNonEmpty === T_NAME_FULLY_QUALIFIED || $lastRelevantNonEmpty === T_NAME_RELATIVE || $lastRelevantNonEmpty === T_NAME_QUALIFIED) && ($tokenType === T_DOUBLE_COLON || $tokenType === '(' || $tokenType === ':'))) { /**/ } |
/src/Tokenizers/PHP.php:1626 | 1 | if($newType === T_LNUMBER && ((stripos($newContent, '0x') === 0 && hexdec(str_replace('_', '', $newContent)) > PHP_INT_MAX) || (stripos($newContent, '0b') === 0 && bindec(str_replace('_', '', $newContent)) > PHP_INT_MAX) || (stripos($newContent, '0o') === 0 && octdec(str_replace('_', '', $newContent)) > PHP_INT_MAX) || (stripos($newContent, '0x') !== 0 && stripos($newContent, 'e') !== false || strpos($newContent, '.') !== false) || (strpos($newContent, '0') === 0 && stripos($newContent, '0x') !== 0 && stripos($newContent, '0b') !== 0 && octdec(str_replace('_', '', $newContent)) > PHP_INT_MAX) || (strpos($newContent, '0') !== 0 && str_replace('_', '', $newContent) > PHP_INT_MAX))) { /**/ } |
/src/Tokenizers/PHP.php:2573 | 1 | if(isset($this->tokens[$scopeCloser]['scope_closer'], $this->tokens[$scopeCloser]['scope_condition']) === true && $scopeCloser === $this->tokens[$scopeCloser]['scope_closer'] && $this->tokens[$this->tokens[$scopeCloser]['scope_condition']]['code'] === T_MATCH) { /**/ } |
/src/Tokenizers/PHP.php:2475 | 1 | if($this->tokens[$x]['code'] === T_OPEN_PARENTHESIS || $this->tokens[$x]['code'] === T_OPEN_CURLY_BRACKET || $this->tokens[$x]['code'] === T_EXTENDS || $this->tokens[$x]['code'] === T_IMPLEMENTS) { /**/ } |
/src/Tokenizers/PHP.php:2268 | 1 | if(is_array($tokens[$i]) === false || ($tokens[$i][0] !== T_DOC_COMMENT && $tokens[$i][0] !== T_COMMENT && $tokens[$i][0] !== T_WHITESPACE && $tokens[$i][0] !== T_STRING)) { /**/ } |
/src/Tokenizers/PHP.php:2241 | 1 | if(is_array($tokens[$i]) === false || ($tokens[$i][0] !== T_DOC_COMMENT && $tokens[$i][0] !== T_COMMENT && $tokens[$i][0] !== T_WHITESPACE)) { /**/ } |
/src/Tokenizers/JS.php:1102 | 1 | if($this->tokens[$i]['code'] === T_OPEN_CURLY_BRACKET && isset($this->tokens[$i]['scope_condition']) === false && isset($this->tokens[$i]['bracket_closer']) === true) { /**/ } else /**//*B*/ ?> |
/src/Tokenizers/JS.php:470 | 1 | if(isset($this->tokenValues[strtolower($buffer)]) === true && (preg_match('|[a-zA-z0-9_]|', $char) === 0 || isset($chars[($i + 1)]) === false || preg_match('|[a-zA-z0-9_]|', $chars[($i + 1)]) === 0)) { /**/ } else /**//*B*/ ?> |
/src/Tokenizers/Tokenizer.php:336 | 1 | if($this->tokens[$prev]['code'] === T_WHITESPACE || $this->tokens[$prev]['code'] === T_DOC_COMMENT_WHITESPACE || ($this->tokens[$prev]['code'] === T_INLINE_HTML && trim($this->tokens[$prev]['content']) === '')) { /**/ } |
/src/Tokenizers/Tokenizer.php:250 | 1 | if($this->tokens[$i]['code'] === T_COMMENT || $this->tokens[$i]['code'] === T_DOC_COMMENT_STRING || $this->tokens[$i]['code'] === T_DOC_COMMENT_TAG || ($inTests === true && $this->tokens[$i]['code'] === T_INLINE_HTML)) { /**/ } |
/src/Runner.php:126 | 1 | if($this->config->interactive === false && ($toScreen === false || (($this->reporter->totalErrors + $this->reporter->totalWarnings) === 0 && $this->config->showProgress === true))) { /**/ } |
/src/Tokenizers/PHP.php:577 | 1 | if(isset($tokens[($stackPtr + 1)]) === true && is_array($tokens[($stackPtr + 1)]) === true && $tokens[($stackPtr + 1)][1][0] === "\n") { /**/ } |
/src/Tokenizers/PHP.php:608 | 1 | if($tokenIsArray === true && isset(Util\Tokens::$contextSensitiveKeywords[$token[0]]) === true && (isset($this->tstringContexts[$finalTokens[$lastNotEmptyToken]['code']]) === true || $finalTokens[$lastNotEmptyToken]['content'] === '&')) { /**/ } |
/src/Tokenizers/Tokenizer.php:1352 | 1 | if(($openerNested === true && $ownerNested === false) || ($openerNested === false && $ownerNested === true) || ($openerNested === true && $this->tokens[$i]['nested_parenthesis'] !== $this->tokens[$stackPtr]['nested_parenthesis'])) { /**/ } else { /**/ } |
/src/Tokenizers/CSS.php:86 | 1 | if($token['code'] === T_BREAK || $token['code'] === T_LIST || $token['code'] === T_DEFAULT || $token['code'] === T_SWITCH || $token['code'] === T_FOR || $token['code'] === T_FOREACH || $token['code'] === T_WHILE || $token['code'] === T_DEC || $token['code'] === T_NEW) { /**/ } |
/src/Tokenizers/Tokenizer.php:1020 | 1 | if($opener !== null && (isset($this->tokens[$i]['scope_opener']) === false || $this->scopeOpeners[$this->tokens[$stackPtr]['code']]['shared'] === true) && isset($this->scopeOpeners[$currType]['end'][$tokenType]) === true) { /**/ } |
/src/Tokenizers/Tokenizer.php:1202 | 1 | if(($this->tokens[$stackPtr]['code'] === T_IF || $this->tokens[$stackPtr]['code'] === T_ELSEIF || $this->tokens[$stackPtr]['code'] === T_ELSE) && ($this->tokens[$i]['code'] === T_ELSE || $this->tokens[$i]['code'] === T_ELSEIF)) { /**/ } else { /**/ } |
/src/Tokenizers/Tokenizer.php:374 | 1 | if($this->tokens[$next]['code'] === T_WHITESPACE || $this->tokens[$next]['code'] === T_DOC_COMMENT_WHITESPACE || ($this->tokens[$next]['code'] === T_INLINE_HTML && trim($this->tokens[$next]['content']) === '')) { /**/ } |
/src/Tokenizers/Tokenizer.php:982 | 1 | if(($currType === T_IF || $currType === T_ELSE || $currType === T_USE) && $opener === null && ($this->tokens[$i]['code'] === T_SEMICOLON || $this->tokens[$i]['code'] === T_CLOSE_TAG)) { /**/ } |
/src/Tokenizers/PHP.php:1473 | 1 | if($tokenIsArray === false && $token[0] === '*' && isset($tokens[($stackPtr + 1)]) === true && is_array($tokens[($stackPtr + 1)]) === true && $tokens[($stackPtr + 1)][1] === '*=') { /**/ } |
/src/Tokenizers/PHP.php:1389 | 1 | if(isset($tokens[($stackPtr + 1)]) === true && isset($tokens[($stackPtr + 2)]) === true && $tokens[($stackPtr + 1)][0] === T_WHITESPACE && $tokens[($stackPtr + 2)][0] === T_STRING && strtolower($tokens[($stackPtr + 2)][1]) === 'from') { /**/ } else { /**/ } |
/src/Tokenizers/PHP.php:1427 | 1 | if($tokenIsArray === false && $token[0] === '.' && isset($tokens[($stackPtr + 1)]) === true && isset($tokens[($stackPtr + 2)]) === true && $tokens[($stackPtr + 1)] === '.' && $tokens[($stackPtr + 2)] === '.') { /**/ } |
/src/Tokenizers/PHP.php:1350 | 1 | if(PHP_VERSION_ID < 70000 && PHP_VERSION_ID >= 50500 && $tokenIsArray === true && $token[0] === T_YIELD && isset($tokens[($stackPtr + 1)]) === true && isset($tokens[($stackPtr + 2)]) === true && $tokens[($stackPtr + 1)][0] === T_WHITESPACE && $tokens[($stackPtr + 2)][0] === T_STRING && strtolower($tokens[($stackPtr + 2)][1]) === 'from') { /**/ } |
/src/Tokenizers/PHP.php:1383 | 1 | if(PHP_VERSION_ID < 50500 && $tokenIsArray === true && $token[0] === T_STRING && strtolower($token[1]) === 'yield' && isset($this->tstringContexts[$finalTokens[$lastNotEmptyToken]['code']]) === false) { /**/ } |
/src/Tokenizers/PHP.php:735 | 1 | if(PHP_VERSION_ID >= 80000 && $tokenIsArray === true && ($token[0] === T_COMMENT && (strpos($token[1], '//') === 0 || strpos($token[1], '#') === 0)) && isset($tokens[($stackPtr + 1)]) === true && is_array($tokens[($stackPtr + 1)]) === true && $tokens[($stackPtr + 1)][0] === T_WHITESPACE) { /**/ } |
/src/Tokenizers/PHP.php:778 | 1 | if(PHP_VERSION_ID < 80100 && $tokenIsArray === true && $token[1] === '0' && (isset($tokens[($stackPtr + 1)]) === true && is_array($tokens[($stackPtr + 1)]) === true && $tokens[($stackPtr + 1)][0] === T_STRING && isset($tokens[($stackPtr + 1)][1][0], $tokens[($stackPtr + 1)][1][1]) === true && strtolower($tokens[($stackPtr + 1)][1][0]) === 'o' && $tokens[($stackPtr + 1)][1][1] !== '_') && preg_match('`^(o[0-7]+(?:_[0-7]+)?)([0-9_]*)$`i', $tokens[($stackPtr + 1)][1], $matches) === 1) { /**/ } |
/src/Standards/Squiz/Sniffs/Arrays/ArrayDeclarationSniff.php:373 | 1 | if($tokens[$nextToken]['code'] === T_ARRAY || $tokens[$nextToken]['code'] === T_OPEN_SHORT_ARRAY || $tokens[$nextToken]['code'] === T_CLOSURE || $tokens[$nextToken]['code'] === T_FN || $tokens[$nextToken]['code'] === T_MATCH) { /**/ } |
/src/Standards/Squiz/Sniffs/Formatting/OperatorBracketSniff.php:348 | 1 | if(isset(Tokens::$emptyTokens[$tokens[$after]['code']]) === true || isset(Tokens::$operators[$tokens[$after]['code']]) === true || isset(Tokens::$castTokens[$tokens[$after]['code']]) === true || isset($allowed[$tokens[$after]['code']]) === true) { /**/ } |
/src/Standards/Squiz/Sniffs/Formatting/OperatorBracketSniff.php:308 | 1 | if(isset(Tokens::$emptyTokens[$tokens[$before]['code']]) === true || isset(Tokens::$operators[$tokens[$before]['code']]) === true || isset(Tokens::$castTokens[$tokens[$before]['code']]) === true || isset($allowed[$tokens[$before]['code']]) === true) { /**/ } |
/src/Standards/Squiz/Sniffs/WhiteSpace/SemicolonSpacingSniff.php:78 | 1 | if($tokens[$nonSpace]['code'] === T_SEMICOLON || ($forCondition === true && $nonSpace === $tokens[$owner]['parenthesis_opener']) || (isset($tokens[$nonSpace]['scope_opener']) === true && $tokens[$nonSpace]['scope_opener'] === $nonSpace)) { /**/ } |
/src/Standards/Squiz/Sniffs/ControlStructures/ForLoopDeclarationSniff.php:153 | 1 | if($this->requiredSpacesBeforeClose === 0 && $tokens[($closingBracket - 1)]['code'] === T_WHITESPACE && ($this->ignoreNewlines === false || $tokens[$prevNonWhiteSpace]['line'] === $tokens[$closingBracket]['line'])) { /**/ } else /**//*B*/ ?> |
/src/Standards/Squiz/Sniffs/Functions/FunctionDeclarationArgumentSpacingSniff.php:70 | 3 | if(isset($tokens[$stackPtr]['parenthesis_opener']) === false || isset($tokens[$stackPtr]['parenthesis_closer']) === false || $tokens[$stackPtr]['parenthesis_opener'] === null || $tokens[$stackPtr]['parenthesis_closer'] === null) { /**/ } |
/src/Standards/Squiz/Sniffs/Arrays/ArrayBracketSpacingSniff.php:47 | 1 | if(($tokens[$stackPtr]['code'] === T_OPEN_SQUARE_BRACKET && isset($tokens[$stackPtr]['bracket_closer']) === false) || ($tokens[$stackPtr]['code'] === T_CLOSE_SQUARE_BRACKET && isset($tokens[$stackPtr]['bracket_opener']) === false)) { /**/ } |
/src/Standards/Squiz/Sniffs/Arrays/ArrayDeclarationSniff.php:445 | 1 | if(($tokens[$prev]['code'] !== T_END_HEREDOC && $tokens[$prev]['code'] !== T_END_NOWDOC) || $tokens[($nextToken - 1)]['line'] === $tokens[$nextToken]['line']) { /**/ } |
/src/Standards/Squiz/Sniffs/WhiteSpace/MemberVarSpacingSniff.php:111 | 1 | if($tokens[$i]['code'] === T_WHITESPACE && $tokens[$i]['line'] === $tokens[$prev]['line'] || ($tokens[$i]['column'] === 1 && $tokens[$i]['line'] !== $tokens[($i + 1)]['line'])) { /**/ } |
/src/Standards/MySource/Sniffs/Objects/CreateWidgetTypeCallbackSniff.php:123 | 1 | if($tokens[($i + 1)]['code'] !== T_OBJECT_OPERATOR || $tokens[($i + 2)]['content'] !== 'call' || $tokens[($i + 3)]['code'] !== T_OPEN_PARENTHESIS) { /**/ } |
/src/Standards/Squiz/Sniffs/WhiteSpace/ControlStructureSpacingSniff.php:345 | 1 | if(($tokens[$trailingContent]['code'] === T_COMMENT || isset(Tokens::$phpcsCommentTokens[$tokens[$trailingContent]['code']]) === true) && $tokens[$trailingContent]['line'] === $tokens[$scopeCloser]['line']) { /**/ } else { /**/ } |
/src/Standards/MySource/Sniffs/Channels/IncludeSystemSniff.php:246 | 1 | if(($tokens[$i]['code'] === T_CLASS || $tokens[$i]['code'] === T_INTERFACE || $tokens[$i]['code'] === T_FUNCTION) && isset($tokens[$i]['scope_closer']) === true) { /**/ } |
/src/Standards/Squiz/Sniffs/WhiteSpace/ControlStructureSpacingSniff.php:329 | 1 | if($tokens[$trailingContent]['code'] !== T_ELSE && $tokens[$trailingContent]['code'] !== T_ELSEIF && $tokens[$trailingContent]['code'] !== T_CATCH && $tokens[$trailingContent]['code'] !== T_FINALLY && $tokens[$trailingContent]['line'] === ($tokens[$scopeCloser]['line'] + 1)) { /**/ } |
/src/Standards/Generic/Tests/ControlStructures/DisallowYodaConditionsUnitTest.inc:136 | 1 | if(is_array($val) && array($foo) === array($bar) && [$foo] === [$bar] && array('foo', 'bar') === array($foo, $bar) && ['foo', 'bar'] === [$foo, $bar] && array('foo' => true, 'bar' => false) === array(getContents( )) && ['foo' => true, 'bar' => false] === array(getContents( )) && array(getContents( )) === ['foo' => true, 'bar' => false]) { /**/ } |
/src/Standards/Squiz/Sniffs/WhiteSpace/ControlStructureSpacingSniff.php:293 | 1 | if(isset($tokens[$trailingContent]['scope_condition']) === true && $tokens[$trailingContent]['scope_condition'] !== $trailingContent && isset($tokens[$trailingContent]['scope_opener']) === true && $tokens[$trailingContent]['scope_opener'] !== $trailingContent) { /**/ } else /**//*B*/ ?> |
/src/Standards/Squiz/Sniffs/WhiteSpace/SuperfluousWhitespaceSniff.php:228 | 1 | if(($phpcsFile->hasCondition($stackPtr, [T_FUNCTION, T_CLOSURE]) === true) && $tokens[($stackPtr - 1)]['line'] < $tokens[$stackPtr]['line'] && $tokens[($stackPtr - 2)]['line'] === $tokens[($stackPtr - 1)]['line']) { /**/ } |
/src/Standards/Squiz/Sniffs/WhiteSpace/SuperfluousWhitespaceSniff.php:215 | 1 | if($tokens[($stackPtr - 1)]['content'] !== rtrim($tokens[($stackPtr - 1)]['content']) && $tokens[($stackPtr - 1)]['line'] === $tokens[$stackPtr]['line']) { /**/ } |
/src/Standards/Squiz/Sniffs/WhiteSpace/OperatorSpacingSniff.php:340 | 1 | if($tokens[$function]['code'] === T_FUNCTION || $tokens[$function]['code'] === T_CLOSURE || $tokens[$function]['code'] === T_FN || $tokens[$function]['code'] === T_DECLARE) { /**/ } |
/src/Standards/Squiz/Sniffs/WhiteSpace/OperatorSpacingSniff.php:209 | 1 | if($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE && (($tokens[($stackPtr - 1)]['code'] === T_INLINE_THEN && $tokens[($stackPtr)]['code'] === T_INLINE_ELSE) === false)) { /**/ } else /**//*B*/ ?> |
/src/Sniffs/AbstractPatternSniff.php:521 | 1 | if(($tokens[$next]['code'] === T_OPEN_PARENTHESIS || $tokens[$next]['code'] === T_CLOSE_PARENTHESIS) && isset($tokens[$next]['parenthesis_owner']) === true && $tokens[$next]['parenthesis_owner'] > $lastAddedStackPtr) { /**/ } |
/src/Standards/PSR12/Sniffs/Traits/UseDeclarationSniff.php:77 | 1 | if($tokens[$i]['code'] === T_WHITESPACE && ($tokens[($i - 1)]['line'] === $tokens[$i]['line'] || $tokens[($i + 1)]['line'] === $tokens[$i]['line'])) { /**/ } |
/src/Sniffs/AbstractPatternSniff.php:510 | 1 | if(($tokens[$next]['code'] === T_OPEN_CURLY_BRACKET || $tokens[$next]['code'] === T_CLOSE_CURLY_BRACKET) && isset($tokens[$next]['scope_condition']) === true && $tokens[$next]['scope_condition'] > $lastAddedStackPtr) { /**/ } |
/src/Standards/PSR12/Sniffs/Traits/UseDeclarationSniff.php:119 | 1 | if($tokens[$i]['code'] === T_WHITESPACE && $tokens[($i - 1)]['line'] !== $tokens[$i]['line'] && $tokens[($i + 1)]['line'] !== $tokens[$i]['line']) { /**/ } |
/src/Standards/PEAR/Sniffs/Functions/FunctionDeclarationSniff.php:446 | 1 | if($i === $tokens[$stackPtr]['parenthesis_closer'] || ($tokens[$i]['code'] === T_WHITESPACE && (($i + 1) === $closeBracket || ($i + 1) === $tokens[$stackPtr]['parenthesis_closer']))) { /**/ } else { /**/ } |
/src/Standards/PSR1/Sniffs/Files/SideEffectsSniff.php:206 | 2 | if($tokens[$prev]['code'] !== T_OBJECT_OPERATOR && $tokens[$prev]['code'] !== T_NULLSAFE_OBJECT_OPERATOR && $tokens[$prev]['code'] !== T_DOUBLE_COLON && $tokens[$prev]['code'] !== T_FUNCTION) { /**/ } |
/src/Standards/PEAR/Sniffs/Functions/FunctionDeclarationSniff.php:67 | 3 | if(isset($tokens[$stackPtr]['parenthesis_opener']) === false || isset($tokens[$stackPtr]['parenthesis_closer']) === false || $tokens[$stackPtr]['parenthesis_opener'] === null || $tokens[$stackPtr]['parenthesis_closer'] === null) { /**/ } |
/src/Standards/PSR1/Sniffs/Files/SideEffectsSniff.php:236 | 2 | if($tokens[$prev]['code'] !== T_OBJECT_OPERATOR && $tokens[$prev]['code'] !== T_NULLSAFE_OBJECT_OPERATOR && $tokens[$prev]['code'] !== T_DOUBLE_COLON && $tokens[$prev]['code'] !== T_FUNCTION) { /**/ } |
/src/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php:394 | 1 | if($tokens[($className - 1)]['code'] === T_COMMA || ($tokens[($className - 1)]['code'] === T_NS_SEPARATOR && $tokens[($className - 2)]['code'] === T_COMMA)) { /**/ } else { /**/ } |
/src/Standards/PSR12/Sniffs/Functions/ReturnTypeDeclarationSniff.php:66 | 1 | if($tokens[($returnType - 1)]['code'] !== T_WHITESPACE || $tokens[($returnType - 1)]['content'] !== ' ' || $tokens[($returnType - 2)]['code'] !== T_COLON) { /**/ } |
/src/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php:90 | 1 | if($tokens[($stackPtr - 2)]['code'] === T_ABSTRACT || $tokens[($stackPtr - 2)]['code'] === T_FINAL || $tokens[($stackPtr - 2)]['code'] === T_READONLY) { /**/ } |
/src/Standards/PSR12/Sniffs/ControlStructures/ControlStructureSpacingSniff.php:97 | 1 | if($tokens[$i]['column'] !== 1 || $tokens[($i + 1)]['line'] > $tokens[$i]['line'] || isset(Tokens::$commentTokens[$tokens[$i]['code']]) === true) { /**/ } |
/src/Standards/PSR2/Sniffs/ControlStructures/SwitchDeclarationSniff.php:111 | 1 | if(isset(Tokens::$emptyTokens[$tokens[$next]['code']]) === false || (isset(Tokens::$commentTokens[$tokens[$next]['code']]) === true && $tokens[$next]['line'] !== $tokens[$opener]['line'])) { /**/ } |
/src/Standards/PSR12/Sniffs/Files/FileHeaderSniff.php:189 | 1 | if(isset($commentOpeners[$tokens[$docToken]['code']]) === false && isset(Tokens::$methodPrefixes[$tokens[$docToken]['code']]) === false && $tokens[$docToken]['code'] !== T_READONLY) { /**/ } |
/src/Standards/PSR2/Sniffs/Namespaces/UseDeclarationSniff.php:222 | 1 | if(($tokens[$end]['code'] === T_COMMENT || isset(Tokens::$phpcsCommentTokens[$tokens[$end]['code']]) === true) && substr($tokens[$end]['content'], 0, 2) === '/*' && substr($tokens[$end]['content'], -2) !== '*/') { /**/ } |
/src/Standards/PSR12/Sniffs/Functions/ReturnTypeDeclarationSniff.php:48 | 3 | if(isset($tokens[$stackPtr]['parenthesis_opener']) === false || isset($tokens[$stackPtr]['parenthesis_closer']) === false || $tokens[$stackPtr]['parenthesis_opener'] === null || $tokens[$stackPtr]['parenthesis_closer'] === null) { /**/ } |
/src/Files/File.php:1335 | 1 | if($this->tokens[$stackPtr]['code'] !== T_FUNCTION && $this->tokens[$stackPtr]['code'] !== T_CLOSURE && $this->tokens[$stackPtr]['code'] !== T_USE && $this->tokens[$stackPtr]['code'] !== T_FN) { /**/ } |
/src/Standards/Squiz/Sniffs/Commenting/FileCommentSniff.php:65 | 1 | if(isset($tokens[$commentStart]['comment_closer']) === false || ($tokens[$tokens[$commentStart]['comment_closer']]['content'] === '' && $tokens[$commentStart]['comment_closer'] === ($phpcsFile->numTokens - 1))) { /**/ } |
/src/Files/File.php:911 | 1 | if($includeAll === false && ((empty($this->configCache['sniffs']) === false && in_array(strtolower($listenerCode), $this->configCache['sniffs'], true) === false) || (empty($this->configCache['exclude']) === false && in_array(strtolower($listenerCode), $this->configCache['exclude'], true) === true))) { /**/ } |
/src/Standards/Squiz/Sniffs/Commenting/InlineCommentSniff.php:107 | 1 | if($tokens[$nextToken]['code'] === T_FUNCTION || $tokens[$nextToken]['code'] === T_CLOSURE || $tokens[$nextToken]['code'] === T_OBJECT || $tokens[$nextToken]['code'] === T_PROTOTYPE) { /**/ } |
/src/Standards/Generic/Sniffs/VersionControl/GitMergeConflictSniff.php:84 | 1 | if(isset($tokens[($i + 1)], $tokens[($i + 2)]) !== false && $tokens[($i + 1)]['code'] === T_SL && $tokens[($i + 2)]['code'] === T_STRING && trim($tokens[($i + 2)]['content']) === '<<< HEAD') { /**/ } |
/src/Standards/Generic/Sniffs/VersionControl/GitMergeConflictSniff.php:110 | 2 | if(isset($tokens[($i + 1)], $tokens[($i + 2)], $tokens[($i + 3)]) !== false && $tokens[($i + 1)]['code'] === T_IS_IDENTICAL && $tokens[($i + 2)]['code'] === T_EQUAL && $tokens[($i + 3)]['code'] === T_WHITESPACE && $tokens[($i + 3)]['content'] === "\n") { /**/ } |
/src/Standards/Generic/Sniffs/VersionControl/GitMergeConflictSniff.php:96 | 1 | if(isset($tokens[($i + 1)], $tokens[($i + 2)], $tokens[($i + 3)], $tokens[($i + 4)]) !== false && $tokens[($i + 1)]['code'] === T_SR && $tokens[($i + 2)]['code'] === T_SR && $tokens[($i + 3)]['code'] === T_GREATER_THAN && $tokens[($i + 4)]['code'] === T_WHITESPACE && $tokens[($i + 4)]['content'] === ' ') { /**/ } |
/src/Standards/Generic/Sniffs/VersionControl/GitMergeConflictSniff.php:171 | 2 | if(isset($tokens[($i + 1)], $tokens[($i + 2)], $tokens[($i + 3)]) !== false && $tokens[($i + 1)]['code'] === T_IS_IDENTICAL && $tokens[($i + 2)]['code'] === T_EQUAL && $tokens[($i + 3)]['code'] === T_WHITESPACE && $tokens[($i + 3)]['content'] === "\n") { /**/ } |
/src/Standards/Generic/Sniffs/VersionControl/GitMergeConflictSniff.php:157 | 1 | if(isset($tokens[($i + 1)], $tokens[($i + 2)], $tokens[($i + 3)], $tokens[($i + 4)], $tokens[($i + 5)]) !== false && $tokens[($i + 1)]['code'] === T_SL && $tokens[($i + 2)]['code'] === T_SL && $tokens[($i + 3)]['code'] === T_LESS_THAN && $tokens[($i + 4)]['code'] === T_WHITESPACE && trim($tokens[($i + 5)]['content']) === 'HEAD') { /**/ } |
/src/Standards/Squiz/Sniffs/Classes/ClassDeclarationSniff.php:111 | 1 | if($tokens[$nextContent]['line'] === $tokens[$closeBrace]['line'] && ($tokens[$nextContent]['code'] === T_WHITESPACE || $tokens[$nextContent]['code'] === T_COMMENT || isset(Tokens::$phpcsCommentTokens[$tokens[$nextContent]['code']]) === true)) { /**/ } |
/src/Standards/Squiz/Sniffs/Classes/ClassDeclarationSniff.php:66 | 1 | if($tokens[($stackPtr - 2)]['code'] !== T_ABSTRACT && $tokens[($stackPtr - 2)]['code'] !== T_FINAL && $tokens[($stackPtr - 2)]['code'] !== T_READONLY) { /**/ } |
/src/Standards/Squiz/Sniffs/CSS/IndentationSniff.php:91 | 1 | if(($tokens[$i]['code'] === T_CLOSE_CURLY_BRACKET && $tokens[$i]['line'] !== $tokens[($i - 1)]['line']) || ($tokens[($i + 1)]['code'] === T_CLOSE_CURLY_BRACKET && $tokens[$i]['line'] === $tokens[($i + 1)]['line'])) { /**/ } |
/src/Standards/Squiz/Sniffs/Operators/IncrementDecrementUsageSniff.php:75 | 1 | if($tokens[($stackPtr - 1)]['code'] === T_VARIABLE || ($tokens[($stackPtr - 1)]['code'] === T_STRING && ($tokens[($stackPtr - 2)]['code'] === T_OBJECT_OPERATOR || $tokens[($stackPtr - 2)]['code'] === T_NULLSAFE_OBJECT_OPERATOR))) { /**/ } else { /**/ } |
/src/Standards/Squiz/Sniffs/Strings/ConcatenationSpacingSniff.php:98 | 1 | if(($ignoreBefore === true || $before === $this->spacing || ($before === 'newline' && $this->ignoreNewlines === true)) && ($after === $this->spacing || ($after === 'newline' && $this->ignoreNewlines === true))) { /**/ } |
/src/Standards/Generic/Sniffs/Commenting/DocCommentSniff.php:54 | 1 | if(isset($tokens[$stackPtr]['comment_closer']) === false || ($tokens[$tokens[$stackPtr]['comment_closer']]['content'] === '' && $tokens[$stackPtr]['comment_closer'] === ($phpcsFile->numTokens - 1))) { /**/ } |
/src/Standards/Generic/Sniffs/ControlStructures/InlineControlStructureSniff.php:297 | 1 | if(isset(Tokens::$commentTokens[$tokens[$endLine]['code']]) === false && ($tokens[$endLine]['code'] !== T_WHITESPACE || isset(Tokens::$commentTokens[$tokens[($endLine - 1)]['code']]) === false)) { /**/ } |
/src/Standards/Generic/Sniffs/Functions/OpeningFunctionBraceBsdAllmanSniff.php:66 | 2 | if(($tokens[$stackPtr]['code'] === T_FUNCTION && (bool) $this->checkFunctions === false) || ($tokens[$stackPtr]['code'] === T_CLOSURE && (bool) $this->checkClosures === false)) { /**/ } |
/src/Standards/Squiz/Sniffs/PHP/NonExecutableCodeSniff.php:276 | 1 | if(isset(Tokens::$emptyTokens[$tokens[$i]['code']]) === true || isset(Tokens::$bracketTokens[$tokens[$i]['code']]) === true || $tokens[$i]['code'] === T_SEMICOLON) { /**/ } |
/src/Standards/Squiz/Sniffs/PHP/NonExecutableCodeSniff.php:75 | 1 | if(isset(Tokens::$booleanOperators[$tokens[$prev]['code']]) === true && ($tokens[$stackPtr]['code'] === T_THROW && $tokens[$prev]['code'] === T_LOGICAL_XOR) === false) { /**/ } |
/src/Standards/Squiz/Sniffs/PHP/EmbeddedPhpSniff.php:375 | 1 | if(($tokens[($closeTag - 1)]['code'] === T_COMMENT || isset(Tokens::$phpcsCommentTokens[$tokens[($closeTag - 1)]['code']]) === true) && substr($tokens[($closeTag - 1)]['content'], -1) === ' ') { /**/ } |
/src/Standards/Squiz/Sniffs/PHP/EmbeddedPhpSniff.php:345 | 1 | if((isset($tokens[$prev]['scope_opener']) === false || $tokens[$prev]['scope_opener'] !== $prev) && (isset($tokens[$prev]['scope_closer']) === false || $tokens[$prev]['scope_closer'] !== $prev) && $tokens[$prev]['code'] !== T_SEMICOLON) { /**/ } else /**//*B*/ ?> |
/src/Standards/Squiz/Sniffs/PHP/EmbeddedPhpSniff.php:259 | 1 | if((isset($tokens[$lastContent]['scope_closer']) === false || $tokens[$lastContent]['scope_closer'] !== $lastContent) && $tokens[$lastContent]['line'] < ($tokens[$closingTag]['line'] - 1)) { /**/ } |
/src/Standards/Squiz/Sniffs/PHP/LowercasePHPFunctionsSniff.php:96 | 1 | if($tokens[$next]['code'] !== T_NS_SEPARATOR && $tokens[$prev]['code'] === T_STRING && $tokens[$prev]['content'] === 'function' && $prevPrev !== false && $tokens[$prevPrev]['code'] === T_USE) { /**/ } |
/src/Standards/Squiz/Sniffs/PHP/CommentedOutCodeSniff.php:250 | 1 | if(isset(Tokens::$comparisonTokens[$stringTokens[$i]['code']]) === true || isset(Tokens::$arithmeticTokens[$stringTokens[$i]['code']]) === true || $stringTokens[$i]['code'] === T_GOTO_LABEL) { /**/ } else { /**/ } |
/src/Standards/Squiz/Sniffs/PHP/DisallowMultipleAssignmentsSniff.php:147 | 1 | if($tokens[$varToken]['code'] === T_VARIABLE || $tokens[$varToken]['code'] === T_OPEN_TAG || $tokens[$varToken]['code'] === T_GOTO_LABEL || $tokens[$varToken]['code'] === T_INLINE_THEN || $tokens[$varToken]['code'] === T_INLINE_ELSE || $tokens[$varToken]['code'] === T_SEMICOLON || $tokens[$varToken]['code'] === T_CLOSE_PARENTHESIS || isset($allowed[$tokens[$varToken]['code']]) === true) { /**/ } |
/src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php:695 | 1 | if($phpcsFile->tokenizerType === 'JS' && (($checkToken !== null && $tokens[$checkToken]['code'] === T_CLOSE_OBJECT && $tokens[$checkToken]['line'] !== $tokens[$tokens[$checkToken]['bracket_opener']]['line']) || ($checkToken === null && $tokens[$i]['code'] === T_CLOSE_OBJECT && $tokens[$i]['line'] !== $tokens[$tokens[$i]['bracket_opener']]['line']))) { /**/ } |
/src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php:801 | 1 | if($checkToken !== null && isset(Tokens::$scopeOpeners[$tokens[$checkToken]['code']]) === true && in_array($tokens[$checkToken]['code'], $this->nonIndentingScopes, true) === false && isset($tokens[$checkToken]['scope_opener']) === true) { /**/ } |
/src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php:573 | 1 | if($checkToken !== null && $exact === false && (empty($tokens[$checkToken]['conditions']) === false || (isset($tokens[$checkToken]['scope_opener']) === true && $tokens[$checkToken]['scope_opener'] === $checkToken))) { /**/ } |
/src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php:620 | 1 | if(($checkToken !== null && (isset($openScopes[$checkToken]) === true || (isset($tokens[$checkToken]['scope_condition']) === true && isset($tokens[$checkToken]['scope_closer']) === true && $tokens[$checkToken]['scope_closer'] === $checkToken && $tokens[$checkToken]['line'] !== $tokens[$tokens[$checkToken]['scope_opener']]['line']))) || ($checkToken === null && isset($openScopes[$i]) === true)) { /**/ } |
/src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php:268 | 1 | if(($checkToken !== null && $tokens[$checkToken]['code'] === T_CLOSE_PARENTHESIS && isset($tokens[$checkToken]['parenthesis_opener']) === true) || ($tokens[$i]['code'] === T_CLOSE_PARENTHESIS && isset($tokens[$i]['parenthesis_opener']) === true)) { /**/ } |
/src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php:301 | 1 | if(isset($tokens[$parenCloser]['conditions']) === true && empty($tokens[$parenCloser]['conditions']) === false && (isset($tokens[$parenCloser]['parenthesis_owner']) === false || $parens > 0)) { /**/ } |
/src/Standards/Generic/Sniffs/VersionControl/GitMergeConflictSniff.php:184 | 1 | if($tokens[$i]['code'] === T_ZSR && isset($tokens[($i + 1)], $tokens[($i + 2)]) === true && $tokens[($i + 1)]['code'] === T_ZSR && $tokens[($i + 2)]['code'] === T_GREATER_THAN) { /**/ } |
/src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php:193 | 1 | if($checkAnnotations === true && $tokens[$i]['code'] === T_PHPCS_SET && isset($tokens[$i]['sniffCode']) === true && $tokens[$i]['sniffCode'] === 'Generic.WhiteSpace.ScopeIndent' && $tokens[$i]['sniffProperty'] === 'exact') { /**/ } |
/src/Standards/Generic/Sniffs/Functions/OpeningFunctionBraceKernighanRitchieSniff.php:66 | 2 | if(($tokens[$stackPtr]['code'] === T_FUNCTION && (bool) $this->checkFunctions === false) || ($tokens[$stackPtr]['code'] === T_CLOSURE && (bool) $this->checkClosures === false)) { /**/ } |
/src/Standards/Generic/Sniffs/Functions/OpeningFunctionBraceKernighanRitchieSniff.php:113 | 1 | if($tokens[($openingBrace - 1)]['code'] === T_WHITESPACE && $tokens[($openingBrace - 1)]['line'] === $tokens[$openingBrace]['line'] && $tokens[($openingBrace - 2)]['line'] < $tokens[$openingBrace]['line']) { /**/ } |
/src/Files/File.php:351 | 1 | if($checkAnnotations === true && ($token['code'] === T_COMMENT || $token['code'] === T_PHPCS_IGNORE_FILE || $token['code'] === T_PHPCS_SET || $token['code'] === T_DOC_COMMENT_STRING || $token['code'] === T_DOC_COMMENT_TAG || ($inTests === true && $token['code'] === T_INLINE_HTML))) { /**/ } |
/src/Standards/Generic/Sniffs/WhiteSpace/IncrementDecrementSpacingSniff.php:118 | 1 | if($prevNonEmpty !== false && (($phpcsFile->tokenizerType === 'PHP' && $tokens[$prevNonEmpty]['code'] === T_VARIABLE) || ($phpcsFile->tokenizerType === 'JS' && $tokens[$prevNonEmpty]['code'] === T_STRING))) { /**/ } |
/src/Standards/Generic/Sniffs/Formatting/MultipleStatementAlignmentSniff.php:175 | 1 | if(isset(Tokens::$emptyTokens[$tokens[$assign]['code']]) === false && ($tokens[$assign]['line'] - $tokens[$lastCode]['line']) > 1 && $tokens[$assign]['level'] === $tokens[$stackPtr]['level'] && $arrayEnd === null) { /**/ } |
/src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php:1341 | 1 | if(isset($tokens[$i]['scope_condition']) === true && $tokens[$i]['scope_closer'] === $i && ($tokens[$tokens[$i]['scope_condition']]['code'] === T_CLOSURE || $tokens[$tokens[$i]['scope_condition']]['code'] === T_ANON_CLASS || $tokens[$tokens[$i]['scope_condition']]['code'] === T_MATCH)) { /**/ } |
/src/Standards/Generic/Sniffs/WhiteSpace/IncrementDecrementSpacingSniff.php:65 | 1 | if($nextNonEmpty !== false && (($phpcsFile->tokenizerType === 'PHP' && $tokens[$nextNonEmpty]['code'] === T_VARIABLE) || ($phpcsFile->tokenizerType === 'JS' && $tokens[$nextNonEmpty]['code'] === T_STRING))) { /**/ } |
/src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php:831 | 1 | if($lastOpener !== null && isset($tokens[$lastOpener]['scope_closer']) === true && $tokens[$lastOpener]['level'] === $tokens[$checkToken]['level'] && $tokens[$lastOpener]['scope_closer'] === $tokens[$checkToken]['scope_closer']) { /**/ } |
/src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php:973 | 1 | if($checkToken !== null && isset($this->ignoreIndentation[$tokens[$checkToken]['code']]) === false && (($tokenIndent !== $checkIndent && $exact === true) || ($tokenIndent < $checkIndent && $exact === false))) { /**/ } |
/src/Standards/PSR1/Sniffs/Files/SideEffectsSniff.php:101 | 1 | if($checkAnnotations === true && $tokens[$i]['code'] === T_PHPCS_DISABLE && (empty($tokens[$i]['sniffCodes']) === true || isset($tokens[$i]['sniffCodes']['PSR1']) === true || isset($tokens[$i]['sniffCodes']['PSR1.Files']) === true || isset($tokens[$i]['sniffCodes']['PSR1.Files.SideEffects']) === true)) { /**/ } |
/src/Files/File.php:2566 | 1 | if(isset($this->tokens[$i]['scope_closer']) === true && ($i === $this->tokens[$i]['scope_opener'] || $i === $this->tokens[$i]['scope_condition'])) { /**/ } else /**//*B*/ ?> |
/src/Standards/Squiz/Sniffs/Commenting/BlockCommentSniff.php:375 | 1 | if((isset($tokens[$contentBefore]['scope_closer']) === true && $tokens[$contentBefore]['scope_opener'] === $contentBefore) || $tokens[$contentBefore]['code'] === T_OPEN_TAG || $tokens[$contentBefore]['code'] === T_OPEN_TAG_WITH_ECHO) { /**/ } else { /**/ } |
/src/Sniffs/AbstractPatternSniff.php:388 | 1 | if(($tokens[($stackPtr - 1)]['content'] !== $phpcsFile->eolChar) && ($this->ignoreComments === true && isset(Tokens::$commentTokens[$tokens[($stackPtr - 1)]['code']]) === false)) { /**/ } else { /**/ } |
/src/Standards/PSR1/Sniffs/Files/SideEffectsSniff.php:148 | 1 | if($tokens[$i]['code'] === T_NAMESPACE || $tokens[$i]['code'] === T_USE || $tokens[$i]['code'] === T_DECLARE || $tokens[$i]['code'] === T_CONST) { /**/ } |
/src/Files/File.php:2450 | 1 | if(isset($this->tokens[$i]['scope_opener']) === true && $i === $this->tokens[$i]['scope_closer'] && $this->tokens[$i]['code'] !== T_CLOSE_PARENTHESIS && $this->tokens[$i]['code'] !== T_END_NOWDOC && $this->tokens[$i]['code'] !== T_END_HEREDOC && $this->tokens[$i]['code'] !== T_BREAK && $this->tokens[$i]['code'] !== T_RETURN && $this->tokens[$i]['code'] !== T_CONTINUE && $this->tokens[$i]['code'] !== T_THROW && $this->tokens[$i]['code'] !== T_EXIT) { /**/ } |
/src/Standards/PSR1/Sniffs/Files/SideEffectsSniff.php:108 | 1 | do { /**/ } while($i !== false && empty($tokens[$i]['sniffCodes']) === false && isset($tokens[$i]['sniffCodes']['PSR1']) === false && isset($tokens[$i]['sniffCodes']['PSR1.Files']) === false && isset($tokens[$i]['sniffCodes']['PSR1.Files.SideEffects']) === false) |
/src/Files/File.php:2552 | 1 | if($this->tokens[$i]['code'] === T_CLOSE_PARENTHESIS || $this->tokens[$i]['code'] === T_CLOSE_SQUARE_BRACKET || $this->tokens[$i]['code'] === T_CLOSE_CURLY_BRACKET || $this->tokens[$i]['code'] === T_CLOSE_SHORT_ARRAY || $this->tokens[$i]['code'] === T_OPEN_TAG || $this->tokens[$i]['code'] === T_CLOSE_TAG) { /**/ } |
/src/Standards/Squiz/Sniffs/ControlStructures/SwitchDeclarationSniff.php:151 | 1 | if($tokens[$nextBreak]['code'] === T_BREAK || $tokens[$nextBreak]['code'] === T_RETURN || $tokens[$nextBreak]['code'] === T_CONTINUE || $tokens[$nextBreak]['code'] === T_THROW || $tokens[$nextBreak]['code'] === T_EXIT) { /**/ } else /**//*B*/ ?> |
/src/Files/File.php:1804 | 1 | if(isset($this->tokens[$ptr]) === false || ($this->tokens[$ptr]['code'] !== T_CLASS && $this->tokens[$ptr]['code'] !== T_ANON_CLASS && $this->tokens[$ptr]['code'] !== T_TRAIT)) { /**/ } |
/src/Standards/Squiz/Sniffs/ControlStructures/ControlSignatureSniff.php:271 | 1 | if($tokens[$stackPtr]['code'] === T_ELSE || $tokens[$stackPtr]['code'] === T_ELSEIF || $tokens[$stackPtr]['code'] === T_CATCH || $tokens[$stackPtr]['code'] === T_FINALLY) { /**/ } else { /**/ } |
/src/Files/File.php:2431 | 1 | while (isset($endTokens[$this->tokens[$start]['code']]) === true || (isset($this->tokens[$start]['scope_condition']) === true && $start === $this->tokens[$start]['scope_closer'])) { /**/ } |