Lines Matching refs:condition

266                     $condition = 0;
271 $condition = key($tokens[$parenCloser]['conditions']);
273 $line = $tokens[$condition]['line'];
274 $type = $tokens[$condition]['type'];
275 … echo "\t* token is inside condition $condition ($type) on line $line *".PHP_EOL;
279 if ($parens > $condition) {
285 $condition = 0;
286 } else if ($condition > 0) {
291 $parenOpener = $condition;
300 if ($condition > 0 && $lastOpenTagCondition === $condition) {
306 if (isset($adjustments[$condition]) === true) {
307 $checkIndent += $adjustments[$condition];
316 } else if ($condition > 0
317 && isset($tokens[$condition]['scope_opener']) === true
318 && isset($setIndents[$tokens[$condition]['scope_opener']]) === true
320 $checkIndent = $setIndents[$tokens[$condition]['scope_opener']];
321 if (isset($adjustments[$condition]) === true) {
322 $checkIndent += $adjustments[$condition];
328 $type = $tokens[$condition]['type'];
329 …ing indent of $checkIndent; main indent set to $currentIndent by token $condition ($type)".PHP_EOL;
524 $condition = key($tokens[$checkToken]['conditions']);
526 $condition = $tokens[$checkToken]['scope_condition'];
529 $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $condition, true);
668 $condition = 0;
673 $condition = key($tokens[$scopeCloser]['conditions']);
675 $line = $tokens[$condition]['line'];
676 $type = $tokens[$condition]['type'];
677 … echo "\t* token is inside condition $condition ($type) on line $line *".PHP_EOL;
681 if ($parens > $condition) {
687 $condition = 0;
688 } else if ($condition > 0) {
693 $first = $phpcsFile->findFirstOnLine(T_WHITESPACE, $condition, true);
709 if ($parens > 0 || $condition > 0) {
715 if ($condition > 0) {
1057 $condition = $tokens[$tokens[$i]['scope_condition']]['code'];
1058 if (isset(PHP_CodeSniffer_Tokens::$scopeOpeners[$condition]) === true
1059 && in_array($condition, $this->nonIndentingScopes) === false
1136 foreach ($conditions as $token => $condition) {
1137 if ($condition === T_OBJECT) {
1161 $condition = 0;
1166 $condition = key($tokens[$i]['conditions']);
1168 $line = $tokens[$condition]['line'];
1169 $type = $tokens[$condition]['type'];
1170 … echo "\t* token is inside condition $condition ($type) on line $line *".PHP_EOL;
1174 if ($parens > $object && $parens > $condition) {
1181 $condition = 0;
1182 } else if ($object > 0 && $object >= $condition) {
1189 $condition = 0;
1190 } else if ($condition > 0) {
1195 $prev = $condition;
1241 if ($object > 0 || $condition > 0) {
1252 if ($condition === 0 || $tokens[$condition]['scope_opener'] < $first) {