Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coder
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
coder
Commits
b86411ee
Commit
b86411ee
authored
9 years ago
by
Klaus Purer
Browse files
Options
Downloads
Patches
Plain Diff
Removed useless class pointer seeking in UnusedUseStatementSniff
parent
06ea52ef
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
coder_sniffer/Drupal/Sniffs/Classes/UnusedUseStatementSniff.php
+0
-8
0 additions, 8 deletions
...sniffer/Drupal/Sniffs/Classes/UnusedUseStatementSniff.php
with
0 additions
and
8 deletions
coder_sniffer/Drupal/Sniffs/Classes/UnusedUseStatementSniff.php
+
0
−
8
View file @
b86411ee
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment