Skip to content

Commit 15d9974

Browse files
867: Code refactoring
1 parent a741849 commit 15d9974

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/com/magento/idea/magento2plugin/actions/generation/NewControllerAction.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
import com.magento.idea.magento2plugin.MagentoIcons;
1717
import com.magento.idea.magento2plugin.actions.generation.dialog.NewControllerDialog;
1818

19-
@SuppressWarnings({"PMD.OnlyOneReturn", "PMD.FieldNamingConventions"})
2019
public class NewControllerAction extends AnAction {
20+
2121
public static final String ACTION_NAME = "Magento 2 Controller";
2222
public static final String ACTION_DESCRIPTION = "Create a new Magento 2 Controller";
2323

@@ -36,13 +36,13 @@ public void actionPerformed(final AnActionEvent event) {
3636
if (view == null) {
3737
return;
3838
}
39-
4039
final Project project = CommonDataKeys.PROJECT.getData(dataContext);
40+
4141
if (project == null) {
4242
return;
4343
}
44-
4544
final PsiDirectory directory = view.getOrChooseDirectory();
45+
4646
if (directory == null) {
4747
return;
4848
}

0 commit comments

Comments
 (0)