Skip to content

Commit fbb5809

Browse files
author
Vitaliy Boyko
committed
267: static fixes 2
1 parent f71c17d commit fbb5809

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,9 @@ public String getModuleVersion() {
244244
*/
245245
public String getSetupVersion() {
246246
final String magentoVersion = getMagentoVersion();
247-
if (!MagentoVersionUtil.compare(magentoVersion, MAGENTO_BEFORE_DECLARATIVE_SCHEMA_VERSION)) {
247+
if (!MagentoVersionUtil.compare(
248+
magentoVersion, MAGENTO_BEFORE_DECLARATIVE_SCHEMA_VERSION)
249+
) {
248250
return this.moduleVersion.getText().trim();
249251
}
250252
return null;

src/com/magento/idea/magento2plugin/project/validator/SettingsFormValidator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public SettingsFormValidator(
2626
/**
2727
* Validate form.
2828
*
29-
* @throws ConfigurationException
29+
* @throws ConfigurationException Exception
3030
*/
3131
public void validate() throws ConfigurationException {
3232
if (!form.getSettings().pluginEnabled) {
@@ -46,8 +46,8 @@ public void validate() throws ConfigurationException {
4646
);
4747
}
4848

49-
if (!magentoVersion.matches(RegExUtil.MAGENTO_VERSION) &&
50-
!magentoVersion.equals(MagentoVersionUtil.DEFAULT_VERSION)) {
49+
if (!magentoVersion.matches(RegExUtil.MAGENTO_VERSION)
50+
&& !magentoVersion.equals(MagentoVersionUtil.DEFAULT_VERSION)) {
5151
throw new ConfigurationException(
5252
validatorBundle.message("validator.magentoVersionInvalid")
5353
);

0 commit comments

Comments
 (0)