Home
last modified time | relevance | path

Searched refs:tokens (Results 1 – 25 of 347) sorted by relevance

12345678910>>...14

/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/WhiteSpace/
H A DScopeIndentSniff.php222 && $tokens[$i]['line'] === $tokens[($i + 1)]['line']
578 … && $tokens[$checkToken]['line'] !== $tokens[$tokens[$checkToken]['scope_opener']]['line']))
584 && $tokens[$i]['line'] !== $tokens[$tokens[$i]['scope_opener']]['line']))
588 $type = $tokens[$tokens[$i]['scope_condition']]['type'];
639 … && $tokens[$checkToken]['line'] !== $tokens[$tokens[$checkToken]['bracket_opener']]['line'])
642 && $tokens[$i]['line'] !== $tokens[$tokens[$i]['bracket_opener']]['line']))
973 if ($tokens[$lastOpenTag]['line'] !== $tokens[$i]['line']) {
1003 if ($tokens[$i]['line'] === $tokens[$closer]['line']) {
1046 if ($tokens[$i]['line'] === $tokens[$closer]['line']) {
1057 $condition = $tokens[$tokens[$i]['scope_condition']]['code'];
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/Functions/
H A DFunctionDeclarationSniff.php65 $tokens = $phpcsFile->getTokens();
195 if ($tokens[$openBracket]['line'] !== $tokens[$closeBracket]['line']) {
207 if ($tokens[$open]['line'] !== $tokens[$close]['line']) {
271 if ($tokens[$i]['line'] !== $tokens[$stackPtr]['line']) {
291 …if ($tokens[$closeBracket]['line'] !== $tokens[$tokens[$closeBracket]['parenthesis_opener']]['line…
292 if ($tokens[$prev]['line'] === $tokens[$closeBracket]['line']) {
317 …if ($tokens[$closeBracket]['line'] !== $tokens[$tokens[$closeBracket]['parenthesis_opener']]['line…
318 if ($tokens[$prev]['line'] === $tokens[$closeBracket]['line']) {
349 } else if ($tokens[$i]['line'] !== $tokens[($i + 1)]['line']) {
383 if ($tokens[$i]['code'] === T_ARRAY || $tokens[$i]['code'] === T_OPEN_SHORT_ARRAY) {
[all …]
H A DFunctionCallSignatureSniff.php183 if ($tokens[$openBracket]['line'] !== $tokens[$closeBracket]['line']) {
246 if ($tokens[$prev]['code'] === T_END_HEREDOC || $tokens[$prev]['code'] === T_END_NOWDOC) {
251 if ($tokens[$prev]['line'] !== $tokens[$closer]['line']) {
334 if ($tokens[$i]['line'] !== $tokens[$x]['line']) {
366 if ($tokens[$next]['line'] === $tokens[$openBracket]['line']) {
379 if ($tokens[$prev]['line'] === $tokens[$closeBracket]['line']) {
399 && $tokens[($i - 1)]['line'] === $tokens[$i]['line']
422 && $tokens[$i]['code'] === $tokens[($i - 1)]['code']
432 if ($tokens[$i]['line'] !== $tokens[$openBracket]['line']) {
453 if ($tokens[$nextCode]['line'] === $tokens[$closeBracket]['line']) {
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/PHP/
H A DNonExecutableCodeSniff.php64 $tokens = $phpcsFile->getTokens();
69 if ($tokens[$prev]['code'] === T_LOGICAL_OR || $tokens[$prev]['code'] === T_BOOLEAN_OR) {
85 if ($tokens[$i]['code'] === T_IF
86 || $tokens[$i]['code'] === T_ELSE
87 || $tokens[$i]['code'] === T_ELSEIF
112 if ($tokens[$owner]['code'] === T_CASE || $tokens[$owner]['code'] === T_DEFAULT) {
239 $lastLine = $tokens[$start]['line'];
249 if ($tokens[$i]['code'] === T_FUNCTION
250 || $tokens[$i]['code'] === T_CLASS
253 $i = $tokens[$i]['scope_closer'];
[all …]
H A DDisallowMultipleAssignmentsSniff.php58 $tokens = $phpcsFile->getTokens();
80 …if (isset($tokens[$varToken]['parenthesis_opener']) === true && $tokens[$varToken]['parenthesis_op…
128 || $tokens[$prev]['code'] === T_VAR
133 if ($tokens[$prev]['code'] === T_STATIC) {
138 $varLine = $tokens[$varToken]['line'];
141 if ($tokens[$i]['code'] === T_SEMICOLON) {
156 if ($tokens[$i]['code'] === T_OPEN_TAG) {
162 $prevLine = $tokens[$i]['line'];
170 …if ($tokens[$i]['code'] === T_OPEN_PARENTHESIS && isset($tokens[$i]['parenthesis_owner']) === true…
171 $owner = $tokens[$i]['parenthesis_owner'];
[all …]
H A DEmbeddedPhpSniff.php116 if ($tokens[$firstContent]['line'] === $tokens[$stackPtr]['line']) {
145 if ($tokens[$i]['line'] === $tokens[$firstContent]['line']
146 || $tokens[$i]['line'] === $tokens[$stackPtr]['line']
187 if ($tokens[$lastContent]['line'] === $tokens[$stackPtr]['line']
206 if ($tokens[$first]['line'] === $tokens[$stackPtr]['line']) {
245 if ($tokens[$lastContent]['line'] === $tokens[$closingTag]['line']) {
275 && $tokens[$lastContent]['line'] < ($tokens[$closingTag]['line'] - 1)
281 } while ($tokens[$i]['line'] !== ($tokens[$closingTag]['line'] - 1));
288 if ($tokens[$i]['line'] === $tokens[$lastContent]['line']
289 || $tokens[$i]['line'] === $tokens[$closingTag]['line']
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/WhiteSpace/
H A DControlStructureSpacingSniff.php78 $tokens = $phpcsFile->getTokens();
105 if ($tokens[$parenOpener]['line'] === $tokens[$parenCloser]['line']
149 && $tokens[$firstContent]['line'] >= ($tokens[$scopeOpener]['line'] + 2)
157 while ($tokens[$i]['line'] !== $tokens[$firstContent]['line']) {
188 && $tokens[$lastContent]['line'] <= ($tokens[$scopeCloser]['line'] - 2)
192 if ($tokens[$i]['line'] < $tokens[$scopeCloser]['line']) {
205 if ($tokens[$i]['line'] === $tokens[$scopeCloser]['line']) {
209 if ($tokens[$i]['line'] === $tokens[$lastContent]['line']) {
285 if ($tokens[$trailingContent]['line'] !== ($tokens[$scopeCloser]['line'] + 1)) {
292 while ($tokens[$i]['line'] !== $tokens[$trailingContent]['line']) {
[all …]
H A DOperatorSpacingSniff.php84 $tokens = $phpcsFile->getTokens();
88 if ($tokens[$stackPtr]['code'] === T_EQUAL
89 || $tokens[$stackPtr]['code'] === T_MINUS
106 if ($tokens[$stackPtr]['code'] === T_EQUAL) {
141 if ($tokens[($stackPtr - 2)]['line'] !== $tokens[$stackPtr]['line']) {
170 if ($tokens[($stackPtr + 2)]['line'] !== $tokens[$stackPtr]['line']) {
192 if ($tokens[$stackPtr]['code'] === T_MINUS || $tokens[$stackPtr]['code'] === T_PLUS) {
196 if ($tokens[$prev]['code'] === T_RETURN) {
241 $operator = $tokens[$stackPtr]['content'];
254 if ($tokens[($stackPtr - 2)]['line'] !== $tokens[$stackPtr]['line']) {
[all …]
H A DSuperfluousWhitespaceSniff.php86 $tokens = $phpcsFile->getTokens();
88 if ($tokens[$stackPtr]['code'] === T_OPEN_TAG) {
134 } else if ($tokens[$stackPtr]['code'] === T_CLOSE_TAG) {
201 && $tokens[($stackPtr + 1)]['line'] === $tokens[$stackPtr]['line']
208 && $tokens[($stackPtr - 1)]['line'] !== $tokens[$stackPtr]['line']
221 … } else if ($tokens[($stackPtr - 1)]['content'] !== rtrim($tokens[($stackPtr - 1)]['content'])
222 && $tokens[($stackPtr - 1)]['line'] === $tokens[$stackPtr]['line']
236 && $tokens[($stackPtr - 1)]['line'] < $tokens[$stackPtr]['line']
237 && $tokens[($stackPtr - 2)]['line'] === $tokens[($stackPtr - 1)]['line']
243 $lines = ($tokens[$next]['line'] - $tokens[$stackPtr]['line']);
[all …]
/plugin/findologicxmlexport/vendor/phpdocumentor/type-resolver/src/Types/
H A DContextFactory.php74 while ($tokens->valid()) {
75 switch ($tokens->current()[0]) {
98 $tokens->next();
107 $tokens->next();
126 …while ($tokens->valid() && ($tokens->current()[0] === T_STRING || $tokens->current()[0] === T_NS_S…
129 $tokens->next();
169 …while ($tokens->valid() && ($tokens->current()[0] !== T_STRING) && ($tokens->current()[0] !== T_NS…
170 $tokens->next();
185 while ($tokens->valid()
192 if ($tokens->current()[0] === T_STRING || $tokens->current()[0] === T_NS_SEPARATOR) {
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Tokenizers/
H A DPHP.php326 $tokens = @token_get_all($string);
330 $numTokens = count($tokens);
392 $tokens[($stackPtr + 1)][1] = substr($tokens[($stackPtr + 1)][1], 1);
793 $tokens[$x][0] = T_STRING;
1147 $numTokens = count($tokens);
1153 … $tokens[$i]['scope_condition'] = $tokens[$tokens[$i]['scope_opener']]['scope_condition'];
1179 … for ($x = ($tokens[$i]['scope_opener'] + 1); $x < $tokens[$i]['scope_closer']; $x++) {
1234 … } else if ($tokens[$i]['code'] === T_CLASS && isset($tokens[$i]['scope_opener']) === true) {
1257 … for ($x = ($tokens[$i]['scope_opener'] + 1); $x < $tokens[$i]['scope_closer']; $x++) {
1341 } else if ($tokens[$i]['code'] === T_ECHO && $tokens[$i]['content'] === '<?=') {
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/ControlStructures/
H A DSwitchDeclarationSniff.php75 $tokens = $phpcsFile->getTokens();
84 $switch = $tokens[$stackPtr];
92 if ($tokens[$nextCase]['code'] === T_SWITCH) {
105 if ($tokens[$nextCase]['content'] !== strtolower($tokens[$nextCase]['content'])) {
156 $opener = $tokens[$nextCase]['scope_opener'];
166 if ($tokens[$nextBreak]['code'] === T_BREAK
170 || $tokens[$nextBreak]['code'] === T_EXIT
193 if ($tokens[$prev]['line'] !== ($tokens[$nextBreak]['line'] - 1)) {
198 $nextLine = $tokens[$tokens[$stackPtr]['scope_closer']]['line'];
210 …if ($nextLine !== ($tokens[$semicolon]['line'] + 2) && $i !== $tokens[$stackPtr]['scope_closer']) {
[all …]
H A DControlSignatureSniff.php74 $tokens = $phpcsFile->getTokens();
76 if (isset($tokens[($stackPtr + 1)]) === false) {
142 if ($tokens[$opener]['line'] !== $tokens[$closer]['line']) {
144 if ($tokens[$next]['line'] !== $tokens[$opener]['line']) {
162 $code = $tokens[$next]['code'];
172 if ($tokens[$next]['line'] === $tokens[$opener]['line']
184 if ($tokens[$next]['line'] === $tokens[$opener]['line']) {
225 if ($tokens[$stackPtr]['code'] === T_DO) {
232 || $tokens[$stackPtr]['code'] === T_ELSEIF
233 || $tokens[$stackPtr]['code'] === T_CATCH
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/Objects/
H A DCreateWidgetTypeCallbackSniff.php60 $tokens = $phpcsFile->getTokens();
74 if ($tokens[$function]['code'] !== T_FUNCTION
75 && $tokens[$function]['code'] !== T_CLOSURE
80 $start = ($tokens[$function]['scope_opener'] + 1);
85 if ($tokens[$arg]['content'] !== 'callback') {
110 || $tokens[$i]['code'] === T_CLOSURE)
125 } else if ($tokens[$i]['code'] !== T_STRING
126 || $tokens[$i]['content'] !== 'callback'
177 if ($tokens[$arg]['content'] !== 'this'
204 if ($tokens[$next]['line'] === $tokens[$endBracket]['line']) {
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Arrays/
H A DArrayDeclarationSniff.php58 $tokens = $phpcsFile->getTokens();
64 if ($tokens[$stackPtr]['content'] !== strtolower($tokens[$stackPtr]['content'])) {
65 if ($tokens[$stackPtr]['content'] === strtoupper($tokens[$stackPtr]['content'])) {
130 if ($tokens[$arrayStart]['line'] === $tokens[$arrayEnd]['line']) {
152 $tokens = $phpcsFile->getTokens();
241 || $tokens[$conditionCheck]['line'] !== $tokens[$stackPtr]['line']
321 if ($tokens[$lastContent]['line'] === $tokens[$arrayEnd]['line']) {
380 … $nextToken = $tokens[$tokens[$nextToken]['parenthesis_opener']]['parenthesis_closer'];
672 … if ($tokens[$index['value']]['line'] === $tokens[$stackPtr]['line'] && $numValues > 1) {
754 …$found = ($tokens[$index['value']]['column'] - ($tokens[$index['arrow']]['length'] + $tokens[$i…
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Functions/
H A DMultiLineFunctionDeclarationSniff.php65 if ($tokens[$stackPtr]['code'] === T_CLOSURE) {
66 …$use = $phpcsFile->findNext(T_USE, ($tokens[$openBracket]['parenthesis_closer'] + 1), $tokens[$sta…
79 if ($tokens[$next]['line'] !== $tokens[$stackPtr]['line']) {
94 if ($tokens[$next]['line'] !== $tokens[$end]['line']) {
104 if ($next !== false && $tokens[$next]['line'] !== $tokens[$end]['line']) {
137 …$use = $phpcsFile->findNext(T_USE, ($tokens[$stackPtr]['parenthesis_closer'] + 1), $tokens[$stackP…
178 if ($tokens[$openBracket]['line'] !== $tokens[$closeBracket]['line']) {
180 if ($tokens[$next]['line'] !== ($tokens[$openBracket]['line'] + 1)) {
194 $i = $tokens[$i]['bracket_closer'];
203 if ($tokens[$i]['code'] !== T_COMMA) {
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Commenting/
H A DDocCommentSniff.php81 if ($tokens[$short]['line'] === $tokens[$stackPtr]['line']) {
94 if ($tokens[$prev]['line'] === $tokens[$commentEnd]['line']) {
103 if ($tokens[$prev]['line'] < ($tokens[$commentEnd]['line'] - 1)) {
128 if ($tokens[$short]['line'] !== ($tokens[$stackPtr]['line'] + 1)) {
134 if ($tokens[$i]['line'] === $tokens[$stackPtr]['line']) {
153 if ($tokens[$i]['line'] === ($tokens[$shortEnd]['line'] + 1)) {
169 if ($tokens[$long]['line'] !== ($tokens[$shortEnd]['line'] + 2)) {
201 if ($tokens[$firstTag]['line'] !== ($tokens[$prev]['line'] + 2)) {
207 if ($tokens[$i]['line'] === $tokens[$firstTag]['line']) {
238 if ($tokens[$prev]['line'] !== ($tokens[$tag]['line'] - 1)) {
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR1/Sniffs/Files/
H A DSideEffectsSniff.php56 $tokens = $phpcsFile->getTokens();
116 if ($tokens[$i]['code'] === T_OPEN_TAG
128 if ($tokens[$i]['code'] === T_NAMESPACE
129 || $tokens[$i]['code'] === T_USE
130 || $tokens[$i]['code'] === T_DECLARE
131 || $tokens[$i]['code'] === T_CONST
134 $i = $tokens[$i]['scope_closer'];
152 $i = $tokens[$i]['scope_closer'];
164 $i = $tokens[$i]['scope_closer'];
197 $tokens
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/Classes/
H A DClassDeclarationSniff.php52 $tokens = $phpcsFile->getTokens();
120 if ($tokens[$i]['line'] === $tokens[$stackPtr]['line']) {
152 if ($tokens[($className + 2)]['line'] === $tokens[$className]['line']) {
175 if ($tokens[$keyword]['line'] !== $tokens[$stackPtr]['line']) {
182 if ($tokens[$i]['line'] !== $tokens[($i + 1)]['line']) {
224 if ($tokens[$prev]['line'] !== $tokens[$implements]['line']) {
266 … if ($prev === $implementsToken && $tokens[$className]['line'] !== ($tokens[$prev]['line'] + 1)) {
288 } else if ($tokens[$prev]['line'] !== ($tokens[$className]['line'] - 1)) {
312 if ($tokens[$prev]['line'] !== $tokens[$className]['line']) {
420 && $tokens[$prevContent]['line'] !== ($tokens[$closeBrace]['line'] - 1)
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/ControlStructures/
H A DInlineControlStructureSniff.php83 $tokens = $phpcsFile->getTokens();
91 if ($tokens[$stackPtr]['code'] === T_ELSE) {
93 if ($tokens[$next]['code'] === T_IF) {
98 if ($tokens[$stackPtr]['code'] === T_WHILE) {
102 $brace = $tokens[$lastContent];
180 $type = $tokens[$end]['code'];
181 $end = $tokens[$end]['scope_closer'];
234 if ($next === false || $tokens[$next]['line'] !== $tokens[$end]['line']) {
241 || $tokens[$endLine]['line'] !== $tokens[($endLine + 1)]['line']
272 && ($tokens[$next]['code'] === T_ELSE
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/ControlStructures/
H A DSwitchDeclarationSniff.php62 $tokens = $phpcsFile->getTokens();
71 $switch = $tokens[$stackPtr];
86 if ($tokens[$nextCase]['content'] !== strtolower($tokens[$nextCase]['content'])) {
117 if ($tokens[$opener]['code'] === T_COLON) {
127 if ($tokens[$next]['line'] === $tokens[$opener]['line']
134 if ($tokens[$next]['line'] !== ($tokens[$opener]['line'] + 1)) {
138 if ($tokens[$next]['line'] === $tokens[$opener]['line']) {
144 if ($tokens[$i]['line'] === $tokens[$next]['line']) {
162 if ($tokens[$prev]['line'] === $tokens[$nextCloser]['line']) {
201 if ($tokens[$nextCode]['code'] !== T_CASE && $tokens[$nextCode]['code'] !== T_DEFAULT) {
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Formatting/
H A DOperatorBracketSniff.php67 $tokens = $phpcsFile->getTokens();
83 if ($tokens[$stackPtr]['code'] === T_MINUS) {
86 if ($tokens[$prev]['code'] === T_RETURN) {
91 if ($tokens[$number]['code'] === T_LNUMBER || $tokens[$number]['code'] === T_DNUMBER) {
155 $prevCode = $tokens[$prevToken]['code'];
275 $tokens = $phpcsFile->getTokens();
310 $before = $tokens[$before]['parenthesis_opener'];
315 $before = $tokens[$before]['bracket_opener'];
340 if ($tokens[$after]['code'] === T_OPEN_PARENTHESIS) {
341 $after = $tokens[$after]['parenthesis_closer'];
[all …]
/plugin/findologicxmlexport/vendor/phpunit/php-token-stream/src/
H A DToken.php93 $tokens = $this->tokenStream->tokens();
134 $tokens = $this->tokenStream->tokens();
180 $tokens = $this->tokenStream->tokens();
207 $tokens = $this->tokenStream->tokens();
269 $tokens = $this->tokenStream->tokens();
350 $tokens = $this->tokenStream->tokens();
404 $tokens = $this->tokenStream->tokens();
445 $tokens = $this->tokenStream->tokens();
566 $tokens = $this->tokenStream->tokens();
607 $tokens = $this->tokenStream->tokens();
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Commenting/
H A DLongConditionClosingCommentSniff.php97 $tokens = $phpcsFile->getTokens();
104 $startCondition = $tokens[$tokens[$stackPtr]['scope_condition']];
105 $startBrace = $tokens[$tokens[$stackPtr]['scope_opener']];
106 $endBrace = $tokens[$stackPtr];
117 if ($tokens[$else]['code'] === T_ELSE) {
125 … if ($tokens[$nextToken]['code'] === T_ELSE || $tokens[$nextToken]['code'] === T_ELSEIF) {
127 if ($tokens[$nextToken]['code'] === T_ELSE
147 $endBrace = $tokens[$stackPtr];
161 $endBrace = $tokens[$stackPtr];
181 if ($next !== false && $tokens[$next]['line'] === $tokens[$stackPtr]['line']) {
[all …]
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/ControlStructures/
H A DMultiLineConditionSniff.php75 $tokens = $phpcsFile->getTokens();
108 if ($tokens[$i]['line'] !== $tokens[$stackPtr]['line']) {
121 $prevLine = $tokens[$openBracket]['line'];
123 if ($i === $closeBracket && $tokens[$openBracket]['line'] !== $tokens[$i]['line']) {
125 if ($tokens[$prev]['line'] === $tokens[$i]['line']) {
145 if ($tokens[$i]['line'] !== $prevLine) {
146 if ($tokens[$i]['line'] === $tokens[$closeBracket]['line']) {
160 $prevLine = $tokens[$i]['line'];
210 $prevLine = $tokens[$i]['line'];
213 if ($tokens[$i]['code'] === T_STRING) {
[all …]

12345678910>>...14