@@ -228,6 +228,9 @@ |
||
| 228 | 228 | ]); |
| 229 | 229 | } |
| 230 | 230 | |
| 231 | + /** |
|
| 232 | + * @param null|string $token |
|
| 233 | + */ |
|
| 231 | 234 | private function generateOrGetApiKey(UserInterface $user, $token): ?ApiKeyInterface |
| 232 | 235 | { |
| 233 | 236 | $apiKey = null; |
@@ -64,10 +64,10 @@ |
||
| 64 | 64 | |
| 65 | 65 | $builder->get('filters') |
| 66 | 66 | ->addModelTransformer(new CallbackTransformer( |
| 67 | - static function ($value) { |
|
| 67 | + static function($value) { |
|
| 68 | 68 | return json_encode($value); |
| 69 | 69 | }, |
| 70 | - static function ($value) { |
|
| 70 | + static function($value) { |
|
| 71 | 71 | if (is_array($value)) { |
| 72 | 72 | return $value; |
| 73 | 73 | } |
@@ -97,6 +97,9 @@ |
||
| 97 | 97 | } |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | + /** |
|
| 101 | + * @param string $logicalName |
|
| 102 | + */ |
|
| 100 | 103 | private function findTemplate($logicalName): string |
| 101 | 104 | { |
| 102 | 105 | $logicalName = (string) $logicalName; |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | foreach ($this->paths as $path) { |
| 38 | 38 | $files = $this->filesystem->listContents($path, true); |
| 39 | 39 | try { |
| 40 | - $filteredFiles = \array_filter($files, static function ($value) use ($name) { |
|
| 40 | + $filteredFiles = \array_filter($files, static function($value) use ($name) { |
|
| 41 | 41 | return 'file' === $value['type'] && $value['filename'].'.'.$value['extension'] === $name; |
| 42 | 42 | }); |
| 43 | 43 | |
@@ -158,7 +158,7 @@ |
||
| 158 | 158 | { |
| 159 | 159 | $themes = array_filter( |
| 160 | 160 | $loadedThemes, |
| 161 | - static function ($element) use (&$themeName) { |
|
| 161 | + static function($element) use (&$themeName) { |
|
| 162 | 162 | return $element->getName() === $themeName; |
| 163 | 163 | } |
| 164 | 164 | ); |