mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-06 03:10:50 +00:00
simplify
This commit is contained in:
parent
7c2a01a4e5
commit
885a4e4f03
|
@ -28,11 +28,9 @@ final class ClassAnalyzer
|
|||
return false;
|
||||
}
|
||||
|
||||
if (is_array($node->implements)) {
|
||||
foreach ($node->implements as $nameNode) {
|
||||
if (Strings::endsWith($nameNode->getLast(), 'ContainerAwareInterface')) {
|
||||
return true;
|
||||
}
|
||||
foreach ($node->implements as $nameNode) {
|
||||
if (Strings::endsWith($nameNode->getLast(), 'ContainerAwareInterface')) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user