@@ 1050-1052 (lines=3) @@ | ||
1047 | return $tokens[$stackPtr]['code']; |
|
1048 | } |
|
1049 | ||
1050 | if ($tokens[$stackPtr]['code'] !== T_FUNCTION && $tokens[$stackPtr]['code'] !== T_CLOSURE) { |
|
1051 | return false; |
|
1052 | } |
|
1053 | ||
1054 | if (isset($tokens[$stackPtr]['parenthesis_closer'], $tokens[$stackPtr]['scope_opener']) === false |
|
1055 | || ($tokens[$stackPtr]['parenthesis_closer'] + 1) === $tokens[$stackPtr]['scope_opener'] |
|
@@ 1190-1192 (lines=3) @@ | ||
1187 | return false; |
|
1188 | } |
|
1189 | ||
1190 | if ($tokens[$stackPtr]['code'] !== T_FUNCTION && $tokens[$stackPtr]['code'] !== T_CLOSURE) { |
|
1191 | throw new PHP_CodeSniffer_Exception('$stackPtr must be of type T_FUNCTION or T_CLOSURE'); |
|
1192 | } |
|
1193 | ||
1194 | $opener = $tokens[$stackPtr]['parenthesis_opener']; |
|
1195 | $closer = $tokens[$stackPtr]['parenthesis_closer']; |