|
@@ -141,7 +141,7 @@ discard block |
|
|
block discarded – undo |
|
141
|
141
|
{ |
|
142
|
142
|
$tenantCode = substr($themeName, strpos($themeName, '@') + 1); |
|
143
|
143
|
|
|
144
|
|
- return array_map(function ($parentName) use ($themeName, $existingThemes, $tenantCode) { |
|
|
144
|
+ return array_map(function($parentName) use ($themeName, $existingThemes, $tenantCode) { |
|
145
|
145
|
$parentName .= '@'.$tenantCode; |
|
146
|
146
|
if (!isset($existingThemes[$parentName])) { |
|
147
|
147
|
throw new ThemeLoadingFailedException(sprintf( |
|
@@ -157,14 +157,14 @@ discard block |
|
|
block discarded – undo |
|
157
|
157
|
|
|
158
|
158
|
private function convertAuthorsArraysToAuthorsObjects(array $authorsArrays): array |
|
159
|
159
|
{ |
|
160
|
|
- return array_map(function (array $authorArray) { |
|
|
160
|
+ return array_map(function(array $authorArray) { |
|
161
|
161
|
return $this->themeAuthorFactory->createFromArray($authorArray); |
|
162
|
162
|
}, $authorsArrays); |
|
163
|
163
|
} |
|
164
|
164
|
|
|
165
|
165
|
private function convertScreenshotsArraysToScreenshotsObjects(array $screenshotsArrays): array |
|
166
|
166
|
{ |
|
167
|
|
- return array_map(function (array $screenshotArray) { |
|
|
167
|
+ return array_map(function(array $screenshotArray) { |
|
168
|
168
|
return $this->themeScreenshotFactory->createFromArray($screenshotArray); |
|
169
|
169
|
}, $screenshotsArrays); |
|
170
|
170
|
} |
Please login to merge, or discard this patch.