Skip to content

Commit 6e3f896

Browse files
author
Vitaliy Boyko
committed
445: Static fixes
1 parent ed7b1a9 commit 6e3f896

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/com/magento/idea/magento2plugin/inspections/php/util/PhpClassImplementsNoninterceptableInterfaceUtil.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,24 @@
1010
import org.jetbrains.annotations.NotNull;
1111

1212
public final class PhpClassImplementsNoninterceptableInterfaceUtil {
13+
14+
private PhpClassImplementsNoninterceptableInterfaceUtil() {}
15+
1316
/**
1417
* Check whether class implements NoninterceptableInterface.
1518
*
1619
* @param phpClass PhpClass
1720
* @return bool
1821
*/
19-
public static boolean execute(@NotNull PhpClass phpClass) {
20-
PhpClass[] interfaces = phpClass.getImplementedInterfaces();
22+
public static boolean execute(final @NotNull PhpClass phpClass) {
23+
final PhpClass[] interfaces = phpClass.getImplementedInterfaces();
2124
if (interfaces.length == 0) {
2225
return false;
2326
}
24-
for (PhpClass targetInterfaceClass: interfaces) {
25-
if (!targetInterfaceClass.getFQN().equals(Plugin.NON_INTERCEPTABLE_FQN)) {
26-
continue;
27+
for (final PhpClass targetInterfaceClass: interfaces) {
28+
if (targetInterfaceClass.getFQN().equals(Plugin.NON_INTERCEPTABLE_FQN)) {
29+
return true;
2730
}
28-
return true;
2931
}
3032

3133
return false;

0 commit comments

Comments
 (0)