File tree Expand file tree Collapse file tree 5 files changed +17
-10
lines changed
src/com/magento/idea/magento2plugin Expand file tree Collapse file tree 5 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,8 @@ public boolean validate(final Project project) {
230
230
return false ;
231
231
}
232
232
233
- final List <String > allModulesList = ModuleIndex .getInstance (project ).getEditableModuleNames ();
233
+ final List <String > allModulesList = ModuleIndex
234
+ .getInstance (project ).getEditableModuleNames ();
234
235
if (!allModulesList .contains (pluginModule )) {
235
236
final String errorMessage = validatorBundle .message (
236
237
"validator.module.noSuchModule" ,
Original file line number Diff line number Diff line change 20
20
})
21
21
public class NewViewModelValidator {
22
22
private static NewViewModelValidator INSTANCE = null ;
23
- private final static String VIEW_MODEL_NAME = "View Model Name" ;
24
- private final static String VIEW_MODEL_DIR = "View Model Directory" ;
23
+ private static final String VIEW_MODEL_NAME = "View Model Name" ;
24
+ private static final String VIEW_MODEL_DIR = "View Model Directory" ;
25
25
private ValidatorBundle validatorBundle ;
26
26
private CommonBundle commonBundle ;
27
27
private NewViewModelDialog dialog ;
Original file line number Diff line number Diff line change @@ -168,7 +168,8 @@ public boolean validate(Project project) {
168
168
return false ;
169
169
}
170
170
171
- final List <String > allModulesList = ModuleIndex .getInstance (project ).getEditableModuleNames ();
171
+ final List <String > allModulesList = ModuleIndex .getInstance (project )
172
+ .getEditableModuleNames ();
172
173
if (!allModulesList .contains (preferenceModule )) {
173
174
final String errorMessage = validatorBundle .message (
174
175
"validator.module.noSuchModule" ,
Original file line number Diff line number Diff line change 27
27
import com .magento .idea .magento2plugin .util .GetFirstClassOfFile ;
28
28
import com .magento .idea .magento2plugin .util .GetPhpClassByFQN ;
29
29
import java .util .ArrayList ;
30
- import java .util .List ;
31
30
import java .util .Arrays ;
32
31
import java .util .Collections ;
32
+ import java .util .List ;
33
33
import java .util .Properties ;
34
34
import javax .swing .JOptionPane ;
35
35
Original file line number Diff line number Diff line change 7
7
8
8
@ SuppressWarnings ({"PMD.FieldNamingConventions" })
9
9
public class Controller {
10
- public static final String ADMINHTML_CONTROLLER_FQN = "Magento\\ Backend\\ App\\ Action" ;
11
- public static final String FRONTEND_CONTROLLER_FQN = "Magento\\ Framework\\ App\\ Action\\ Action" ;
12
- public static final String RESPONSE_INTERFACE_FQN = "Magento\\ Framework\\ App\\ ResponseInterface" ;
13
- public static final String RESULT_INTERFACE_FQN = "Magento\\ Framework\\ Controller\\ ResultInterface" ;
14
- public static final String EXCEPTION_CLASS_FQN = "Magento\\ Framework\\ Exception\\ NotFoundException" ;
10
+ public static final String ADMINHTML_CONTROLLER_FQN =
11
+ "Magento\\ Backend\\ App\\ Action" ;
12
+ public static final String FRONTEND_CONTROLLER_FQN =
13
+ "Magento\\ Framework\\ App\\ Action\\ Action" ;
14
+ public static final String RESPONSE_INTERFACE_FQN =
15
+ "Magento\\ Framework\\ App\\ ResponseInterface" ;
16
+ public static final String RESULT_INTERFACE_FQN =
17
+ "Magento\\ Framework\\ Controller\\ ResultInterface" ;
18
+ public static final String EXCEPTION_CLASS_FQN =
19
+ "Magento\\ Framework\\ Exception\\ NotFoundException" ;
15
20
}
You can’t perform that action at this time.
0 commit comments