Skip to content

Commit d5b00de

Browse files
Static checks fixes
1 parent 7ea4822 commit d5b00de

File tree

6 files changed

+15
-21
lines changed

6 files changed

+15
-21
lines changed

src/com/magento/idea/magento2plugin/actions/generation/data/DeleteEntityControllerFileData.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class DeleteEntityControllerFileData {
1313
private final String moduleName;
1414
private final String acl;
1515
private final String entityId;
16-
private final boolean isDeleteCommandHasInterface;
16+
private final boolean deleteCommandHasInterface;
1717

1818
/**
1919
* Controller Delete file constructor.
@@ -34,7 +34,7 @@ public DeleteEntityControllerFileData(
3434
this.moduleName = moduleName;
3535
this.acl = acl;
3636
this.entityId = entityId;
37-
this.isDeleteCommandHasInterface = isDeleteCommandHasInterface;
37+
this.deleteCommandHasInterface = isDeleteCommandHasInterface;
3838
}
3939

4040
/**
@@ -79,6 +79,6 @@ public String getEntityId() {
7979
* @return boolean
8080
*/
8181
public boolean isDeleteCommandHasInterface() {
82-
return isDeleteCommandHasInterface;
82+
return deleteCommandHasInterface;
8383
}
8484
}

src/com/magento/idea/magento2plugin/actions/generation/data/SaveEntityControllerFileData.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class SaveEntityControllerFileData {
1616
private final String dtoName;
1717
private final String dtoInterfaceName;
1818
private final boolean dtoWithInterface;
19-
private final boolean isSaveCommandHasInterface;
19+
private final boolean saveCommandHasInterface;
2020

2121
/**
2222
* Controller save file constructor.
@@ -47,7 +47,7 @@ public SaveEntityControllerFileData(
4747
this.dtoName = dtoName;
4848
this.dtoInterfaceName = dtoInterfaceName;
4949
this.dtoWithInterface = isDtoWithInterface;
50-
this.isSaveCommandHasInterface = isSaveCommandHasInterface;
50+
this.saveCommandHasInterface = isSaveCommandHasInterface;
5151
}
5252

5353
/**
@@ -119,6 +119,6 @@ public boolean isDtoWithInterface() {
119119
* @return boolean
120120
*/
121121
public boolean isSaveCommandHasInterface() {
122-
return isSaveCommandHasInterface;
122+
return saveCommandHasInterface;
123123
}
124124
}

src/com/magento/idea/magento2plugin/actions/generation/data/UiComponentDataProviderData.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class UiComponentDataProviderData {
1111
private final String path;
1212
private final String entityName;
1313
private final String entityIdFieldName;
14-
private final boolean isQueryHasInterface;
14+
private final boolean queryHasInterface;
1515

1616
/**
1717
* UiComponentGridDataProviderData constructor.
@@ -46,7 +46,7 @@ public UiComponentDataProviderData(
4646
this.path = path;
4747
this.entityName = entityName;
4848
this.entityIdFieldName = entityIdFieldName;
49-
this.isQueryHasInterface = isQueryHasInterface;
49+
this.queryHasInterface = isQueryHasInterface;
5050
}
5151

5252
/**
@@ -91,6 +91,6 @@ public String getEntityIdFieldName() {
9191
* @return boolean
9292
*/
9393
public boolean isQueryHasInterface() {
94-
return isQueryHasInterface;
94+
return queryHasInterface;
9595
}
9696
}

src/com/magento/idea/magento2plugin/actions/generation/data/dialog/EntityCreatorContextData.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class EntityCreatorContextData implements GenerationContextData {
2121
private final String moduleName;
2222
private final String actionName;
2323
private final boolean hasOpenFileFlag;
24-
private final boolean hasWebApi;
24+
private final boolean webApi;
2525
private final String indexViewAction;
2626
private final String editViewAction;
2727
private final String newViewAction;
@@ -80,7 +80,7 @@ public EntityCreatorContextData(
8080
this.moduleName = moduleName;
8181
this.actionName = actionName;
8282
this.hasOpenFileFlag = hasOpenFileFlag;
83-
this.hasWebApi = hasWebApi;
83+
this.webApi = hasWebApi;
8484
this.indexViewAction = indexViewAction;
8585
this.editViewAction = editViewAction;
8686
this.newViewAction = newViewAction;
@@ -121,7 +121,7 @@ public boolean checkIfHasOpenFileFlag() {
121121
* @return boolean
122122
*/
123123
public boolean hasWebApi() {
124-
return hasWebApi;
124+
return webApi;
125125
}
126126

127127
/**

src/com/magento/idea/magento2plugin/actions/generation/data/dialog/NewEntityDialogData.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class NewEntityDialogData implements DialogData {
1818
private final String tableResource;
1919
private final boolean adminUiComponents;
2020
private final boolean dtoInterface;
21-
private final boolean hasWebApi;
21+
private final boolean webApi;
2222

2323
// Admin UI Components tab data.
2424
private final String route;
@@ -111,7 +111,7 @@ public NewEntityDialogData(
111111
this.tableResource = tableResource;
112112
this.adminUiComponents = hasAdminUiComponents;
113113
this.dtoInterface = hasDtoInterface;
114-
this.hasWebApi = hasWebApi;
114+
this.webApi = hasWebApi;
115115
this.route = route;
116116
this.formLabel = formLabel;
117117
this.formName = formName;
@@ -201,7 +201,7 @@ public boolean hasDtoInterface() {
201201
* @return boolean
202202
*/
203203
public boolean hasWebApi() {
204-
return hasWebApi;
204+
return webApi;
205205
}
206206

207207
/**

src/com/magento/idea/magento2plugin/actions/generation/dialog/NewInterfaceForServiceDialog.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,15 @@
99
import com.intellij.openapi.project.Project;
1010
import com.intellij.psi.PsiDirectory;
1111
import com.jetbrains.php.lang.actions.PhpNamedElementNode;
12-
import com.jetbrains.php.lang.psi.PhpFile;
1312
import com.jetbrains.php.lang.psi.elements.Method;
1413
import com.jetbrains.php.lang.psi.elements.PhpClass;
1514
import com.magento.idea.magento2plugin.actions.generation.NewWebApiInterfaceAction;
16-
import com.magento.idea.magento2plugin.actions.generation.data.PreferenceDiXmFileData;
1715
import com.magento.idea.magento2plugin.actions.generation.data.php.WebApiInterfaceData;
1816
import com.magento.idea.magento2plugin.actions.generation.dialog.validator.annotation.FieldValidation;
1917
import com.magento.idea.magento2plugin.actions.generation.dialog.validator.annotation.RuleRegistry;
2018
import com.magento.idea.magento2plugin.actions.generation.dialog.validator.rule.NotEmptyRule;
2119
import com.magento.idea.magento2plugin.actions.generation.dialog.validator.rule.PhpClassRule;
22-
import com.magento.idea.magento2plugin.actions.generation.generator.PreferenceDiXmlGenerator;
2320
import com.magento.idea.magento2plugin.actions.generation.generator.php.WebApiInterfaceGenerator;
24-
import com.magento.idea.magento2plugin.magento.packages.Areas;
25-
import com.magento.idea.magento2plugin.util.GetFirstClassOfFile;
2621
import com.magento.idea.magento2plugin.util.magento.GetModuleNameByDirectoryUtil;
2722
import com.magento.idea.magento2plugin.util.php.PhpTypeMetadataParserUtil;
2823
import java.awt.event.KeyEvent;
@@ -31,7 +26,6 @@
3126
import java.util.Arrays;
3227
import java.util.LinkedList;
3328
import java.util.List;
34-
import java.util.Objects;
3529
import javax.swing.JButton;
3630
import javax.swing.JComponent;
3731
import javax.swing.JLabel;

0 commit comments

Comments
 (0)