Skip to content

Commit 131a458

Browse files
author
Stanislav Idolov
authored
Fixed according to review
1 parent a95034a commit 131a458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup/src/Magento/Setup/Model/Grid/Module.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ private function getModulesInfo(array $moduleList)
178178
private function addGeneralInfo(array $items)
179179
{
180180
foreach ($items as &$item) {
181-
$item['moduleName'] = isset($item['moduleName']) ? $item['moduleName'] : $this->packageInfo->getModuleName($item['name']);
181+
$item['moduleName'] = $item['moduleName'] ?? $this->packageInfo->getModuleName($item['name']);
182182
$item['enable'] = $this->moduleList->has($item['moduleName']);
183183
$vendorSource = $item['name'] == self::UNKNOWN_PACKAGE_NAME ? $item['moduleName'] : $item['name'];
184184
$item['vendor'] = ucfirst(current(preg_split('%[/_]%', $vendorSource)));

0 commit comments

Comments
 (0)