File tree 1 file changed +5
-3
lines changed
src/com/magento/idea/magento2plugin/actions/generation/generator/util
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 17
17
import java .util .Properties ;
18
18
19
19
public final class FindOrCreateLayoutXml {
20
+
20
21
private final Project project ;
21
22
22
23
public FindOrCreateLayoutXml (final Project project ) {
@@ -61,9 +62,10 @@ public PsiFile execute(
61
62
.findOrCreateSubdirectory (parentDirectory , fileDirectory );
62
63
}
63
64
64
- LayoutXml layoutXml = new LayoutXml (routeId , controllerName , controllerActionName );
65
- if ("" .equals (controllerName )) {
66
- layoutXml = new LayoutXml (routeId );
65
+ LayoutXml layoutXml = new LayoutXml (routeId , controllerName , controllerActionName );
66
+
67
+ if (controllerName .isEmpty ()) {
68
+ layoutXml = new LayoutXml (routeId );
67
69
}
68
70
PsiFile layoutXmlFile = FileBasedIndexUtil .findModuleViewFile (
69
71
layoutXml .getFileName (),
You can’t perform that action at this time.
0 commit comments