@@ -25,16 +25,19 @@ |
||
25 | 25 | |
26 | 26 | /** |
27 | 27 | * @param array $configuration |
28 | + * @return void |
|
28 | 29 | */ |
29 | 30 | public function add(array $configuration): void; |
30 | 31 | |
31 | 32 | /** |
32 | 33 | * @param string $themeName |
34 | + * @return void |
|
33 | 35 | */ |
34 | 36 | public function remove(string $themeName): void; |
35 | 37 | |
36 | 38 | /** |
37 | 39 | * Clear currently used configurations storage. |
40 | + * @return void |
|
38 | 41 | */ |
39 | 42 | public function clear(): void; |
40 | 43 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | interface ThemeHierarchyProviderInterface |
22 | 22 | { |
23 | 23 | /** |
24 | - * @param ThemeInterface|null $theme |
|
24 | + * @param ThemeInterface $theme |
|
25 | 25 | * |
26 | 26 | * @return array|ThemeInterface[] |
27 | 27 | * |
@@ -24,6 +24,7 @@ |
||
24 | 24 | * @param ThemeInterface $theme |
25 | 25 | * |
26 | 26 | * @throws CircularDependencyFoundException |
27 | + * @return void |
|
27 | 28 | */ |
28 | 29 | public function check(ThemeInterface $theme): void; |
29 | 30 | } |
@@ -35,6 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | /** |
37 | 37 | * @param string|null $title |
38 | + * @return void |
|
38 | 39 | */ |
39 | 40 | public function setTitle(?string $title): void; |
40 | 41 | |
@@ -45,6 +46,7 @@ discard block |
||
45 | 46 | |
46 | 47 | /** |
47 | 48 | * @param string|null $description |
49 | + * @return void |
|
48 | 50 | */ |
49 | 51 | public function setDescription(?string $description): void; |
50 | 52 | |
@@ -55,11 +57,13 @@ discard block |
||
55 | 57 | |
56 | 58 | /** |
57 | 59 | * @param ThemeAuthor $author |
60 | + * @return void |
|
58 | 61 | */ |
59 | 62 | public function addAuthor(ThemeAuthor $author): void; |
60 | 63 | |
61 | 64 | /** |
62 | 65 | * @param ThemeAuthor $author |
66 | + * @return void |
|
63 | 67 | */ |
64 | 68 | public function removeAuthor(ThemeAuthor $author): void; |
65 | 69 | |
@@ -70,11 +74,13 @@ discard block |
||
70 | 74 | |
71 | 75 | /** |
72 | 76 | * @param ThemeInterface $theme |
77 | + * @return void |
|
73 | 78 | */ |
74 | 79 | public function addParent(ThemeInterface $theme): void; |
75 | 80 | |
76 | 81 | /** |
77 | 82 | * @param ThemeInterface $theme |
83 | + * @return void |
|
78 | 84 | */ |
79 | 85 | public function removeParent(ThemeInterface $theme): void; |
80 | 86 | |
@@ -85,11 +91,13 @@ discard block |
||
85 | 91 | |
86 | 92 | /** |
87 | 93 | * @param ThemeScreenshot $screenshot |
94 | + * @return void |
|
88 | 95 | */ |
89 | 96 | public function addScreenshot(ThemeScreenshot $screenshot): void; |
90 | 97 | |
91 | 98 | /** |
92 | 99 | * @param ThemeScreenshot $screenshot |
100 | + * @return void |
|
93 | 101 | */ |
94 | 102 | public function removeScreenshot(ThemeScreenshot $screenshot): void; |
95 | 103 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\ThemeBundle\Model; |
15 | 15 | |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | /** |
37 | 37 | * @param string|null $title |
38 | 38 | */ |
39 | - public function setTitle(?string $title): void; |
|
39 | + public function setTitle(?string $title) : void; |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * @return string|null |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | /** |
47 | 47 | * @param string|null $description |
48 | 48 | */ |
49 | - public function setDescription(?string $description): void; |
|
49 | + public function setDescription(?string $description) : void; |
|
50 | 50 | |
51 | 51 | /** |
52 | 52 | * @return array|ThemeAuthor[] |
@@ -14,7 +14,6 @@ |
||
14 | 14 | namespace spec\Sylius\Bundle\ThemeBundle\Factory; |
15 | 15 | |
16 | 16 | use PhpSpec\ObjectBehavior; |
17 | -use Sylius\Bundle\ThemeBundle\Factory\ThemeScreenshotFactory; |
|
18 | 17 | use Sylius\Bundle\ThemeBundle\Factory\ThemeScreenshotFactoryInterface; |
19 | 18 | use Sylius\Bundle\ThemeBundle\Model\ThemeScreenshot; |
20 | 19 |
@@ -14,7 +14,6 @@ |
||
14 | 14 | namespace spec\Sylius\Bundle\ThemeBundle\Translation\Finder; |
15 | 15 | |
16 | 16 | use PhpSpec\ObjectBehavior; |
17 | -use Sylius\Bundle\ThemeBundle\Translation\Finder\OrderingTranslationFilesFinder; |
|
18 | 17 | use Sylius\Bundle\ThemeBundle\Translation\Finder\TranslationFilesFinderInterface; |
19 | 18 | |
20 | 19 | /** |
@@ -58,7 +58,7 @@ |
||
58 | 58 | /** |
59 | 59 | * @param string $path |
60 | 60 | * |
61 | - * @return iterable|SplFileInfo[] |
|
61 | + * @return \Symfony\Component\Finder\Finder |
|
62 | 62 | */ |
63 | 63 | private function getFiles(string $path): iterable |
64 | 64 | { |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\ThemeBundle\Collector; |
15 | 15 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | /** |
90 | 90 | * {@inheritdoc} |
91 | 91 | */ |
92 | - public function collect(Request $request, Response $response, ?\Exception $exception = null): void |
|
92 | + public function collect(Request $request, Response $response, ?\Exception $exception = null) : void |
|
93 | 93 | { |
94 | 94 | $this->data['used_theme'] = $this->themeContext->getTheme(); |
95 | 95 | $this->data['used_themes'] = $this->themeHierarchyProvider->getThemeHierarchy($this->themeContext->getTheme()); |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\ThemeBundle\Translation; |
15 | 15 | |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * |
122 | 122 | * @return string|null |
123 | 123 | */ |
124 | - private function transformLocale(?string $locale): ?string |
|
124 | + private function transformLocale(?string $locale) : ?string |
|
125 | 125 | { |
126 | 126 | $theme = $this->themeContext->getTheme(); |
127 | 127 |