Skip to content

Commit ec747ac

Browse files
author
Vasilii Burlacu
committed
Added adjustments as per code review
1 parent d06bd12 commit ec747ac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/com/magento/idea/magento2plugin/actions/generation/util/MagentoVersion.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@
1616
import com.intellij.psi.PsiFile;
1717
import com.intellij.psi.PsiManager;
1818
import com.intellij.psi.util.PsiTreeUtil;
19+
import com.magento.idea.magento2plugin.magento.files.ComposerJson;
1920
import com.magento.idea.magento2plugin.php.module.ComposerPackageModel;
2021
import com.magento.idea.magento2plugin.php.module.ComposerPackageModelImpl;
2122

23+
import java.io.File;
24+
2225
public class MagentoVersion {
2326
private static MagentoVersion INSTANCE = null;
2427
private String version = "unknown";
@@ -63,7 +66,6 @@ public String get() {
6366
}
6467

6568
private String getFilePath() {
66-
String fileName = "composer.json";
67-
return this.project.getBasePath() + "/" + fileName;
69+
return this.project.getBasePath() + File.separator + ComposerJson.FILE_NAME;
6870
}
6971
}

0 commit comments

Comments
 (0)