Skip to content

Commit

Permalink
Fixed according to review
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Idolov authored and vijay-wagento committed Jun 4, 2018
1 parent 486f7a7 commit 1b5d1d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup/src/Magento/Setup/Model/Grid/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ private function getModulesInfo(array $moduleList)
private function addGeneralInfo(array $items)
{
foreach ($items as &$item) {
$item['moduleName'] = isset($item['moduleName']) ? $item['moduleName'] : $this->packageInfo->getModuleName($item['name']);
$item['moduleName'] = $item['moduleName'] ?? $this->packageInfo->getModuleName($item['name']);
$item['enable'] = $this->moduleList->has($item['moduleName']);
$vendorSource = $item['name'] == self::UNKNOWN_PACKAGE_NAME ? $item['moduleName'] : $item['name'];
$item['vendor'] = ucfirst(current(preg_split('%[/_]%', $vendorSource)));
Expand Down

0 comments on commit 1b5d1d1

Please sign in to comment.