| @@ -20,6 +20,7 @@ discard block | ||
| 20 | 20 |  { | 
| 21 | 21 | /** | 
| 22 | 22 | * @param string $name | 
| 23 | + * @return void | |
| 23 | 24 | */ | 
| 24 | 25 | public function setName($name); | 
| 25 | 26 | |
| @@ -50,6 +51,7 @@ discard block | ||
| 50 | 51 | |
| 51 | 52 | /** | 
| 52 | 53 | * @param array $settings | 
| 54 | + * @return void | |
| 53 | 55 | */ | 
| 54 | 56 | public function setSettings(array $settings): void; | 
| 55 | 57 | |
| @@ -60,6 +62,7 @@ discard block | ||
| 60 | 62 | |
| 61 | 63 | /** | 
| 62 | 64 | * @param \SplFileInfo|null $file | 
| 65 | + * @return void | |
| 63 | 66 | */ | 
| 64 | 67 | public function setLogo(?\SplFileInfo $file): void; | 
| 65 | 68 | |
| @@ -75,8 +78,12 @@ discard block | ||
| 75 | 78 | |
| 76 | 79 | /** | 
| 77 | 80 | * @param string|null $path | 
| 81 | + * @return void | |
| 78 | 82 | */ | 
| 79 | 83 | public function setLogoPath(?string $path): void; | 
| 80 | 84 | |
| 85 | + /** | |
| 86 | + * @return void | |
| 87 | + */ | |
| 81 | 88 | public function setGeneratedData(array $data): void; | 
| 82 | 89 | } | 
| @@ -33,7 +33,7 @@ | ||
| 33 | 33 | AssetsInstaller::class | 
| 34 | 34 | ); | 
| 35 | 35 | |
| 36 | -        if($newDefinition = $this->getDefinitionIfExists($container, AssetsInstallerInterface::class)) { | |
| 36 | +        if ($newDefinition = $this->getDefinitionIfExists($container, AssetsInstallerInterface::class)) { | |
| 37 | 37 | $newDefinition->setArgument(4, new Reference(ThemeHierarchyProviderInterface::class)); | 
| 38 | 38 | } | 
| 39 | 39 | } | 
| @@ -145,7 +145,7 @@ discard block | ||
| 145 | 145 | } | 
| 146 | 146 | $themes[$themeName] = $theme; | 
| 147 | 147 | |
| 148 | -            if(isset($configuration['generatedData'])) { | |
| 148 | +            if (isset($configuration['generatedData'])) { | |
| 149 | 149 | $theme->setGeneratedData($configuration['generatedData']); | 
| 150 | 150 | } | 
| 151 | 151 | //$themes[$themeName] = $this->themeHydrator->hydrate($configuration, $themes[$themeName]); | 
| @@ -179,7 +179,7 @@ discard block | ||
| 179 | 179 |      { | 
| 180 | 180 | $tenantCode = substr($themeName, strpos($themeName, '@') + 1); | 
| 181 | 181 | |
| 182 | -        return array_map(function ($parentName) use ($themeName, $existingThemes, $tenantCode) { | |
| 182 | +        return array_map(function($parentName) use ($themeName, $existingThemes, $tenantCode) { | |
| 183 | 183 | $parentName .= '@'.$tenantCode; | 
| 184 | 184 |              if (!isset($existingThemes[$parentName])) { | 
| 185 | 185 | throw new ThemeLoadingFailedException(sprintf( | 
| @@ -200,7 +200,7 @@ discard block | ||
| 200 | 200 | */ | 
| 201 | 201 | private function convertAuthorsArraysToAuthorsObjects(array $authorsArrays) | 
| 202 | 202 |      { | 
| 203 | -        return array_map(function (array $authorArray) { | |
| 203 | +        return array_map(function(array $authorArray) { | |
| 204 | 204 | return $this->themeAuthorFactory->createFromArray($authorArray); | 
| 205 | 205 | }, $authorsArrays); | 
| 206 | 206 | } | 
| @@ -212,7 +212,7 @@ discard block | ||
| 212 | 212 | */ | 
| 213 | 213 | private function convertScreenshotsArraysToScreenshotsObjects(array $screenshotsArrays) | 
| 214 | 214 |      { | 
| 215 | -        return array_map(function (array $screenshotArray) { | |
| 215 | +        return array_map(function(array $screenshotArray) { | |
| 216 | 216 | return $this->themeScreenshotFactory->createFromArray($screenshotArray); | 
| 217 | 217 | }, $screenshotsArrays); | 
| 218 | 218 | } | 
| @@ -56,7 +56,7 @@ | ||
| 56 | 56 | $tenantCode = $tenant->getCode(); | 
| 57 | 57 | $themes = array_filter( | 
| 58 | 58 | $themeRepository->findAll(), | 
| 59 | -            static function ($element) use (&$tenantCode) { | |
| 59 | +            static function($element) use (&$tenantCode) { | |
| 60 | 60 |                  if (strpos($element->getName(), ThemeHelper::SUFFIX_SEPARATOR.$tenantCode)) { | 
| 61 | 61 | return true; | 
| 62 | 62 | } |