@@ 978-980 (lines=3) @@ | ||
975 | $tokens = $phpcsFile->getTokens(); |
|
976 | ||
977 | // Check for the existence of the token. |
|
978 | if ($stackPtr === false || isset($tokens[$stackPtr]) === false) { |
|
979 | return false; |
|
980 | } |
|
981 | ||
982 | if ($tokens[$stackPtr]['code'] !== T_NAMESPACE) { |
|
983 | return false; |
|
@@ 1087-1089 (lines=3) @@ | ||
1084 | { |
|
1085 | $tokens = $phpcsFile->getTokens(); |
|
1086 | ||
1087 | if (isset($tokens[$stackPtr]) === false || $tokens[$stackPtr]['code'] !== T_VARIABLE) { |
|
1088 | return false; |
|
1089 | } |
|
1090 | ||
1091 | if (empty($tokens[$stackPtr]['conditions']) === true) { |
|
1092 | return false; |