Skip to content

Commit e01eda9

Browse files
author
Raul E Watson
committed
address static build failures
1 parent a8fec13 commit e01eda9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

lib/internal/Magento/Framework/Component/ComponentRegistrar.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,12 @@ public static function register($type, $componentName, $path)
4848
ucfirst($type) . ' \'' . $componentName . '\' from \'' . $path . '\' '
4949
. 'has been already defined in \'' . self::$paths[$type][$componentName] . '\'.'
5050
);
51-
} else {
52-
self::$paths[$type][$componentName] = str_replace('\\', '/', $path);
5351
}
52+
self::$paths[$type][$componentName] = str_replace('\\', '/', $path);
5453
}
5554

5655
/**
57-
* {@inheritdoc}
56+
* @inheritdoc
5857
*/
5958
public function getPaths($type)
6059
{
@@ -63,7 +62,7 @@ public function getPaths($type)
6362
}
6463

6564
/**
66-
* {@inheritdoc}
65+
* @inheritdoc
6766
*/
6867
public function getPath($type, $componentName)
6968
{

lib/internal/Magento/Framework/Module/ModuleList/Loader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function load(array $exclude = [])
8080
$result = [];
8181
$excludeSet = array_flip($exclude);
8282

83-
foreach ($this->getModuleConfigs() as [$file, $contents]) {
83+
foreach ($this->getModuleConfigs() as list($file, $contents)) {
8484
try {
8585
$this->parser->loadXML($contents);
8686
} catch (\Magento\Framework\Exception\LocalizedException $e) {

0 commit comments

Comments
 (0)