File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/com/magento/idea/magento2plugin/actions/generation Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -44,15 +44,15 @@ public void update(AnActionEvent event) {
44
44
Pair <PsiFile , PhpClass > pair = this .findPhpClass (event );
45
45
PsiFile psiFile = pair .getFirst ();
46
46
PhpClass phpClass = pair .getSecond ();
47
- if (phpClass == null || psiFile == null ) {
47
+ if ((phpClass == null || psiFile == null )
48
+ || !(psiFile instanceof PhpFile )
49
+ || phpClass .isFinal ()
50
+ || this .targetMethod == null
51
+ ) {
48
52
this .setStatus (event , false );
49
53
return ;
50
54
}
51
55
targetClass = phpClass ;
52
- if (!(psiFile instanceof PhpFile ) || phpClass .isFinal () || this .targetMethod == null ) {
53
- this .setStatus (event , false );
54
- return ;
55
- }
56
56
this .setStatus (event , true );
57
57
return ;
58
58
}
You can’t perform that action at this time.
0 commit comments