Skip to content
Snippets Groups Projects
Commit b86411ee authored by Klaus Purer's avatar Klaus Purer
Browse files

Removed useless class pointer seeking in UnusedUseStatementSniff

parent 06ea52ef
Branches
Tags
No related merge requests found
......@@ -63,14 +63,6 @@ class Drupal_Sniffs_Classes_UnusedUseStatementSniff implements PHP_CodeSniffer_S
true
);
// Seek along the statement to get the last part, which is the
// class/interface name.
while (isset($tokens[($classPtr + 1)]) === true
&& in_array($tokens[($classPtr + 1)]['code'], array(T_STRING, T_NS_SEPARATOR)) === true
) {
$classPtr++;
}
if ($tokens[$classPtr]['code'] !== T_STRING) {
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment