|
@@ 3310-3326 (lines=17) @@
|
| 3307 |
|
} |
| 3308 |
|
} |
| 3309 |
|
|
| 3310 |
|
if ($local === true) { |
| 3311 |
|
if (isset($this->_tokens[$i]['scope_opener']) === true |
| 3312 |
|
&& $i === $this->_tokens[$i]['scope_closer'] |
| 3313 |
|
) { |
| 3314 |
|
$i = $this->_tokens[$i]['scope_opener']; |
| 3315 |
|
} else if (isset($this->_tokens[$i]['bracket_opener']) === true |
| 3316 |
|
&& $i === $this->_tokens[$i]['bracket_closer'] |
| 3317 |
|
) { |
| 3318 |
|
$i = $this->_tokens[$i]['bracket_opener']; |
| 3319 |
|
} else if (isset($this->_tokens[$i]['parenthesis_opener']) === true |
| 3320 |
|
&& $i === $this->_tokens[$i]['parenthesis_closer'] |
| 3321 |
|
) { |
| 3322 |
|
$i = $this->_tokens[$i]['parenthesis_opener']; |
| 3323 |
|
} else if ($this->_tokens[$i]['code'] === T_SEMICOLON) { |
| 3324 |
|
break; |
| 3325 |
|
} |
| 3326 |
|
} |
| 3327 |
|
}//end for |
| 3328 |
|
|
| 3329 |
|
return false; |
|
@@ 3517-3530 (lines=14) @@
|
| 3514 |
|
} |
| 3515 |
|
|
| 3516 |
|
// Skip nested statements. |
| 3517 |
|
if (isset($this->_tokens[$i]['scope_closer']) === true |
| 3518 |
|
&& ($i === $this->_tokens[$i]['scope_opener'] |
| 3519 |
|
|| $i === $this->_tokens[$i]['scope_condition']) |
| 3520 |
|
) { |
| 3521 |
|
$i = $this->_tokens[$i]['scope_closer']; |
| 3522 |
|
} else if (isset($this->_tokens[$i]['bracket_closer']) === true |
| 3523 |
|
&& $i === $this->_tokens[$i]['bracket_opener'] |
| 3524 |
|
) { |
| 3525 |
|
$i = $this->_tokens[$i]['bracket_closer']; |
| 3526 |
|
} else if (isset($this->_tokens[$i]['parenthesis_closer']) === true |
| 3527 |
|
&& $i === $this->_tokens[$i]['parenthesis_opener'] |
| 3528 |
|
) { |
| 3529 |
|
$i = $this->_tokens[$i]['parenthesis_closer']; |
| 3530 |
|
} |
| 3531 |
|
|
| 3532 |
|
if (isset(PHP_CodeSniffer_Tokens::$emptyTokens[$this->_tokens[$i]['code']]) === false) { |
| 3533 |
|
$lastNotEmpty = $i; |