/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Classes/ |
H A D | ClassDeclarationSniff.php | 53 $tokens = $phpcsFile->getTokens(); 79 $tokens = $phpcsFile->getTokens(); 121 $tokens = $phpcsFile->getTokens(); 131 if ($tokens[$nextContent]['line'] === $tokens[$closeBrace]['line'] 147 $difference = ($tokens[$nextContent]['line'] - $tokens[$closeBrace]['line'] - 1); 153 || $tokens[$lastContent]['line'] === $tokens[$closeBrace]['line'] 163 if ($tokens[$lastContent]['line'] === $tokens[$closeBrace]['line']) { 173 if ($tokens[($closeBrace - 1)]['line'] !== $tokens[$closeBrace]['line']) { 191 $tokens[$stackPtr]['content'], 202 if ($tokens[$i]['line'] <= ($tokens[$closeBrace]['line'] + 1)) { [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/WhiteSpace/ |
H A D | ScopeClosingBraceSniff.php | 64 $tokens = $phpcsFile->getTokens(); 72 $scopeStart = $tokens[$stackPtr]['scope_opener']; 73 $scopeEnd = $tokens[$stackPtr]['scope_closer']; 98 if ($tokens[$lineStart]['code'] === T_WHITESPACE) { 99 $startColumn = $tokens[($lineStart + 1)]['column']; 101 $trimmed = ltrim($tokens[$lineStart]['content']); 121 if ($tokens[$lastContent]['line'] === $tokens[$scopeEnd]['line']) { 142 if ($tokens[$lineStart]['code'] === T_WHITESPACE) { 145 $trimmed = ltrim($tokens[$lineStart]['content']); 154 if ($tokens[$stackPtr]['code'] === T_CASE [all …]
|
H A D | ObjectOperatorIndentSniff.php | 63 $tokens = $phpcsFile->getTokens(); 88 if ($tokens[$i]['line'] !== $tokens[$varToken]['line']) { 95 if ($i >= 0 && $tokens[$i]['code'] === T_WHITESPACE) { 96 $requiredIndent = strlen($tokens[$i]['content']); 108 if (isset($tokens[$stackPtr]['conditions']) === true) { 109 $origConditions = $tokens[$stackPtr]['conditions']; 115 if ($tokens[$stackPtr]['line'] > $tokens[$varToken]['line']) { 128 $conditions = $tokens[$next]['conditions']; 134 $indent = $tokens[($next - 1)]; 135 if ($tokens[$prev]['line'] !== $tokens[$next]['line'] [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Functions/ |
H A D | OpeningFunctionBraceKernighanRitchieSniff.php | 76 $tokens = $phpcsFile->getTokens(); 82 if (($tokens[$stackPtr]['code'] === T_FUNCTION 84 || ($tokens[$stackPtr]['code'] === T_CLOSURE 90 $openingBrace = $tokens[$stackPtr]['scope_opener']; 92 if ($tokens[$stackPtr]['code'] === T_CLOSURE) { 100 $functionLine = $tokens[$closeBracket]['line']; 101 $braceLine = $tokens[$openingBrace]['line']; 115 && $tokens[($openingBrace + 2)]['line'] > $tokens[$openingBrace]['line'] 122 && $tokens[($openingBrace - 1)]['line'] === $tokens[$openingBrace]['line'] 123 && $tokens[($openingBrace - 2)]['line'] < $tokens[$openingBrace]['line'] [all …]
|
H A D | FunctionCallArgumentSpacingSniff.php | 41 $tokens = PHP_CodeSniffer_Tokens::$functionNameTokens; 44 $tokens[] = T_VARIABLE; 46 return $tokens; 62 $tokens = $phpcsFile->getTokens(); 73 …if ($tokens[$functionKeyword]['code'] === T_FUNCTION || $tokens[$functionKeyword]['code'] === T_CL… 80 if ($tokens[$openBracket]['code'] !== T_OPEN_PARENTHESIS) { 88 $closeBracket = $tokens[$openBracket]['parenthesis_closer']; 99 if ($tokens[$nextSeparator]['code'] === T_CLOSURE) { 117 if ($tokens[$nextSeparator]['code'] === T_COMMA) { 139 if ($tokens[$next]['line'] === $tokens[$nextSeparator]['line']) { [all …]
|
H A D | OpeningFunctionBraceBsdAllmanSniff.php | 75 $tokens = $phpcsFile->getTokens(); 81 if (($tokens[$stackPtr]['code'] === T_FUNCTION 83 || ($tokens[$stackPtr]['code'] === T_CLOSURE 89 $openingBrace = $tokens[$stackPtr]['scope_opener']; 91 if ($tokens[$stackPtr]['code'] === T_CLOSURE) { 99 $functionLine = $tokens[$closeBracket]['line']; 100 $braceLine = $tokens[$openingBrace]['line']; 125 if ($tokens[$i]['line'] === $braceLine) { 136 if ($tokens[$next]['line'] === $tokens[$openingBrace]['line']) { 162 $startColumn = $tokens[$lineStart]['column']; [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/Channels/ |
H A D | IncludeSystemSniff.php | 83 $tokens = $phpcsFile->getTokens(); 100 $className = $tokens[$classNameToken]['content']; 156 $i = $tokens[$i]['scope_closer']; 174 $name = $tokens[$name]['content']; 224 $tokens = $phpcsFile->getTokens(); 264 if (($tokens[$i]['code'] === T_CLASS 265 || $tokens[$i]['code'] === T_INTERFACE 266 || $tokens[$i]['code'] === T_FUNCTION) 269 $i = $tokens[$i]['scope_closer']; 311 array $tokens, argument [all …]
|
H A D | UnusedSystemSniff.php | 53 $tokens = $phpcsFile->getTokens(); 82 $level = $tokens[$stackPtr]['level']; 84 if ($tokens[$i]['level'] < $level) { 89 if ($tokens[$stackPtr]['level'] === $level) { 95 if ($tokens[$cond]['code'] === T_IF) { 96 $i = $tokens[$cond]['scope_closer']; 106 if ($tokens[$i]['code'] !== T_DOUBLE_COLON 107 && $tokens[$i]['code'] !== T_EXTENDS 108 && $tokens[$i]['code'] !== T_IMPLEMENTS 113 switch ($tokens[$i]['code']) { [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Commenting/ |
H A D | BlockCommentSniff.php | 77 $tokens = $phpcsFile->getTokens(); 117 $end = $tokens[$stackPtr]['comment_closer']; 118 if ($tokens[$end]['content'] !== '*/') { 131 $lastLine = $tokens[$stackPtr]['line']; 132 $commentString = $tokens[$stackPtr]['content']; 136 if ($tokens[$nextComment]['code'] !== $tokens[$stackPtr]['code']) { 201 $tokens[$stackPtr]['content'], 259 … $leadingSpace = (strlen($tokens[$line]['content']) - strlen(ltrim($tokens[$line]['content']))); 336 if (($tokens[$stackPtr]['line'] - $tokens[$contentBefore]['line']) !== 1) { 341 if (($tokens[$stackPtr]['line'] - $tokens[$contentBefore]['line']) < 2) { [all …]
|
H A D | InlineCommentSniff.php | 70 $tokens = $phpcsFile->getTokens(); 141 if ($tokens[$stackPtr]['content']{0} === '#') { 153 if ($tokens[$previousContent]['line'] === $tokens[$stackPtr]['line']) { 169 $comment = rtrim($tokens[$stackPtr]['content']); 230 && (($tokens[$nextComment]['line']) === ($tokens[$stackPtr]['line'] + 1)) 238 if ($tokens[$topComment]['line'] !== ($tokens[$lastComment]['line'] - 1)) { 249 if ($tokens[$i]['code'] === T_COMMENT) { 294 if ($tokens[$previousContent]['line'] < $tokens[$stackPtr]['line']) { 297 if ($tokens[$i]['line'] === ($tokens[$stackPtr]['line'] + 1)) { 301 } else if ($tokens[$i]['line'] > ($tokens[$stackPtr]['line'] + 1)) { [all …]
|
H A D | DocCommentAlignmentSniff.php | 67 $tokens = $phpcsFile->getTokens(); 96 if ($tokens[$prevToken]['code'] !== T_OPEN_TAG) { 103 $requiredColumn = ($tokens[$stackPtr]['column'] + 1); 106 if ($tokens[$i]['code'] !== T_DOC_COMMENT_STAR 115 if ($tokens[$prev]['line'] === $tokens[$i]['line']) { 120 if ($tokens[$i]['column'] !== $requiredColumn) { 124 ($tokens[$i]['column'] - 1), 129 if ($tokens[$i]['column'] === 1) { 137 if ($tokens[$i]['code'] !== T_DOC_COMMENT_STAR) { 141 if ($tokens[($i + 2)]['line'] !== $tokens[$i]['line']) { [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Operators/ |
H A D | ComparisonOperatorUsageSniff.php | 124 $tokens = $phpcsFile->getTokens(); 127 if ($tokens[$stackPtr]['code'] === T_INLINE_THEN) { 133 if ($tokens[$i]['code'] === T_SEMICOLON) { 161 $start = $tokens[$end]['parenthesis_opener']; 163 } else if ($tokens[$stackPtr]['code'] === T_FOR) { 181 $start = $tokens[$stackPtr]['parenthesis_opener']; 190 $type = $tokens[$i]['code']; 194 $tokens[$i]['content'], 203 if ($tokens[$i]['code'] === T_TRUE || $tokens[$i]['code'] === T_FALSE) { 208 && ($tokens[$i]['code'] === T_BOOLEAN_AND [all …]
|
H A D | IncrementDecrementUsageSniff.php | 64 $tokens = $phpcsFile->getTokens(); 66 if ($tokens[$stackPtr]['code'] === T_INC || $tokens[$stackPtr]['code'] === T_DEC) { 86 $tokens = $phpcsFile->getTokens(); 90 if ($tokens[($stackPtr - 1)]['code'] === T_VARIABLE 116 … if ($tokens[$next]['code'] === T_STRING_CONCAT || $tokens[$prev]['code'] === T_STRING_CONCAT) { 135 $tokens = $phpcsFile->getTokens(); 154 if ($tokens[$stackPtr]['code'] !== T_EQUAL) { 161 if ($tokens[$stackPtr]['code'] === T_EQUAL) { 175 if ($tokens[$nextVar]['content'] !== $tokens[$assignedVar]['content']) { 195 if ($tokens[$nextNumber]['content'] === '1') { [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Tokenizers/ |
H A D | JS.php | 280 $tokens = array(); 290 $tokens[] = array( 324 $tokens[] = array( 345 $tokens[] = array( 440 $tokens, 445 $tokens[] = array( 700 $tokens[] = array( 712 $tokens[] = array( 930 $numTokens = count($tokens); 1054 if ($tokens[$i]['code'] === T_FUNCTION && isset($tokens[$i]['scope_opener']) === true) { [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Files/ |
H A D | LineLengthSniff.php | 75 $tokens = $phpcsFile->getTokens(); 77 if ($tokens[$i]['column'] === 1) { 78 $this->checkLineLength($phpcsFile, $tokens, $i); 82 $this->checkLineLength($phpcsFile, $tokens, $i); 94 * @param array $tokens The token stack. 104 if ($tokens[$stackPtr]['column'] === 1 105 && $tokens[$stackPtr]['length'] === 0 111 if ($tokens[$stackPtr]['column'] !== 1 117 $lineLength = ($tokens[$stackPtr]['column'] + $tokens[$stackPtr]['length'] - 1); 135 && ($tokens[$stackPtr]['code'] === T_COMMENT [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/Commenting/ |
H A D | FunctionCommentSniff.php | 55 $tokens = $phpcsFile->getTokens(); 60 if ($tokens[$commentEnd]['code'] === T_COMMENT) { 66 if ($prev !== false && $tokens[$prev]['line'] === $tokens[$commentEnd]['line']) { 86 if ($tokens[$commentEnd]['line'] !== ($tokens[$stackPtr]['line'] - 1)) { 93 if ($tokens[$tag]['content'] === '@see') { 96 if ($string === false || $tokens[$string]['line'] !== $tokens[$tag]['line']) { 122 $tokens = $phpcsFile->getTokens(); 171 $tokens = $phpcsFile->getTokens(); 211 $tokens = $phpcsFile->getTokens(); 329 …$spaceLength = (strlen($content) + $tokens[($commentToken - 1)]['length'] + $tokens[($commentToken… [all …]
|
H A D | FileCommentSniff.php | 108 $tokens = $phpcsFile->getTokens(); 224 $tokens = $phpcsFile->getTokens(); 237 $name = $tokens[$tag]['content']; 255 if ($string === false || $tokens[$string]['line'] !== $tokens[$tag]['line']) { 321 $tokens = $phpcsFile->getTokens(); 363 $tokens = $phpcsFile->getTokens(); 416 $tokens = $phpcsFile->getTokens(); 460 $tokens = $phpcsFile->getTokens(); 490 $tokens = $phpcsFile->getTokens(); 531 $tokens = $phpcsFile->getTokens(); [all …]
|
/plugin/findologicxmlexport/vendor/twig/twig/src/ |
H A D | TokenStream.php | 26 protected $tokens; variable in Twig\\TokenStream 33 * @param array $tokens An array of tokens 48 $this->tokens = $tokens; 56 return implode("\n", $this->tokens); 59 public function injectTokens(array $tokens) argument 61 …$this->tokens = array_merge(\array_slice($this->tokens, 0, $this->current), $tokens, \array_slice(… 71 if (!isset($this->tokens[++$this->current])) { 75 return $this->tokens[$this->current - 1]; 97 $token = $this->tokens[$this->current]; 126 return $this->tokens[$this->current + $number]; [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Functions/ |
H A D | FunctionDeclarationArgumentSpacingSniff.php | 81 $tokens = $phpcsFile->getTokens(); 98 if ($tokens[$stackPtr]['code'] === T_CLOSURE) { 99 …$use = $phpcsFile->findNext(T_USE, ($tokens[$openBracket]['parenthesis_closer'] + 1), $tokens[$sta… 120 $tokens = $phpcsFile->getTokens(); 122 $multiLine = ($tokens[$openBracket]['line'] !== $tokens[$closeBracket]['line']); 132 $nextCode = $tokens[$nextToken]['code']; 203 if ($tokens[$prev]['code'] === T_ELLIPSIS) { 217 $arg = $tokens[$nextParam]['content']; 286 if ($tokens[$whitespace]['line'] === $tokens[($whitespace - 1)]['line']) { 306 $arg = $tokens[$nextParam]['content']; [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/CSS/ |
H A D | IndentationSniff.php | 69 $tokens = $phpcsFile->getTokens(); 71 $numTokens = (count($tokens) - 2); 75 if ($tokens[$i]['code'] === T_COMMENT) { 80 if ($tokens[$i]['code'] === T_OPEN_CURLY_BRACKET) { 87 $tokens[$i]['bracket_closer'] 95 if (($tokens[$i]['code'] === T_CLOSE_CURLY_BRACKET 96 && $tokens[$i]['line'] !== $tokens[($i - 1)]['line']) 98 && $tokens[$i]['line'] === $tokens[($i + 1)]['line']) 106 if ($tokens[$i]['column'] !== 1 107 || $tokens[$i]['code'] === T_OPEN_CURLY_BRACKET [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Formatting/ |
H A D | MultipleStatementAlignmentSniff.php | 70 unset($tokens[T_DOUBLE_ARROW]); 71 return $tokens; 87 $tokens = $phpcsFile->getTokens(); 115 $tokens = $phpcsFile->getTokens(); 119 $lastLine = $tokens[$stackPtr]['line']; 132 if (($tokens[$assign]['line'] - $tokens[$lastCode]['line']) > 1) { 139 if ($tokens[$assign]['conditions'] === $tokens[$stackPtr]['conditions']) { 162 if ($tokens[$assign]['conditions'] !== $tokens[$stackPtr]['conditions']) { 186 $varEnd = $tokens[($var + 1)]['column']; 187 $assignLen = $tokens[$assign]['length']; [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/WhiteSpace/ |
H A D | FunctionSpacingSniff.php | 64 $tokens = $phpcsFile->getTokens(); 72 if (isset($tokens[$stackPtr]['scope_closer']) === false) { 76 $closer = $tokens[$stackPtr]['scope_closer']; 81 if ($tokens[$nextLineToken]['line'] !== $tokens[$closer]['line']) { 100 $foundLines += ($tokens[$nextContent]['line'] - $tokens[$nextLineToken]['line']); 120 if ($tokens[$i]['line'] === $tokens[$nextContent]['line']) { 153 $currentLine = $tokens[$stackPtr]['line']; 156 if ($tokens[$prevContent]['code'] === T_COMMENT) { 172 $prevLine = ($tokens[$prevContent]['line'] - 1); 187 $currentLine = $tokens[$i]['line']; [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/ |
H A D | AbstractPatternSniff.php | 215 $tokens = $phpcsFile->getTokens(); 221 $type = $tokens[$stackPtr]['code']; 279 $tokens = $phpcsFile->getTokens(); 377 $stackPtr = ($tokens[$next][$to] - 1); 391 … if ($tokens[$startComment]['line'] !== $tokens[($startComment + 1)]['line']) { 430 … if ($prev !== false && $tokens[$prev]['line'] !== $tokens[$stackPtr]['line']) { 443 if (isset($tokens[$stackPtr]) === false) { 561 $found .= $tokens[$j]['content']; 581 if ($tokens[$next]['line'] !== $tokens[$stackPtr]['line']) { 946 $tokens = array_slice($tokens, 1, (count($tokens) - 2)); [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Strings/ |
H A D | ConcatenationSpacingSniff.php | 74 $tokens = $phpcsFile->getTokens(); 75 if ($tokens[($stackPtr - 1)]['code'] !== T_WHITESPACE) { 78 if ($tokens[($stackPtr - 2)]['line'] !== $tokens[$stackPtr]['line']) { 81 $before = $tokens[($stackPtr - 1)]['length']; 85 if ($tokens[($stackPtr + 1)]['code'] !== T_WHITESPACE) { 88 if ($tokens[($stackPtr + 2)]['line'] !== $tokens[$stackPtr]['line']) { 91 $after = $tokens[($stackPtr + 1)]['length']; 122 if ($tokens[($stackPtr - 1)]['code'] === T_WHITESPACE) { 126 && ($tokens[($stackPtr - 2)]['code'] === T_LNUMBER 127 || $tokens[($stackPtr - 2)]['code'] === T_DNUMBER) [all …]
|
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/ |
H A D | File.php | 393 array $tokens argument 1461 return $tokens; 1601 $tokens[$i]['orig_content'] = $tokens[$i]['content']; 1794 &$tokens, argument 1864 $tokens, 1895 &$tokens, argument 2043 … } else if ($tokens[$tokens[$scopeCloser]['scope_opener']]['code'] !== $tokens[$opener]['code']) { 2233 $tokens, 2319 $startLine = $tokens[$tokens[$i]['parenthesis_closer']]['line']; 2485 $thisType = $tokens[$tokens[$i]['scope_condition']]['code']; [all …]
|