Skip to content

Commit c4c39f8

Browse files
698: Changed Javadoc. Refactor.
1 parent db5625f commit c4c39f8

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,17 +246,26 @@ public String getPackageName() {
246246
return this.packageName.getText().trim();
247247
}
248248

249+
/**
250+
* Getter for Module Name.
251+
*
252+
* @return String
253+
*/
249254
public String getModuleName() {
250-
return this.removeSubstringFormString(DEFAULT_MODULE_PREFIX, this.moduleName.getText().trim());
255+
return this.removeSubstringFormString(
256+
DEFAULT_MODULE_PREFIX, this.moduleName.getText().trim()
257+
);
251258
}
252259

253260
/**
254-
*
261+
* Remove substring from string.
255262
* @param target String
256263
* @param replacement String
257264
* @return String
258265
*/
259-
private String removeSubstringFormString(@NotNull String target, @NotNull String replacement) {
266+
private String removeSubstringFormString(
267+
@NotNull String target, @NotNull String replacement
268+
) {
260269
String moduleRegex = "(?i)" + target;
261270
return replacement.replaceAll(moduleRegex, "");
262271
}

0 commit comments

Comments
 (0)