@@ -46,6 +46,9 @@ discard block |
||
46 | 46 | $manager->flush(); |
47 | 47 | } |
48 | 48 | |
49 | + /** |
|
50 | + * @param string $env |
|
51 | + */ |
|
49 | 52 | public function loadRoutes($env, ObjectManager $manager) |
50 | 53 | { |
51 | 54 | $routes = [ |
@@ -95,6 +98,10 @@ discard block |
||
95 | 98 | $manager->flush(); |
96 | 99 | } |
97 | 100 | |
101 | + /** |
|
102 | + * @param string $env |
|
103 | + * @param ObjectManager $manager |
|
104 | + */ |
|
98 | 105 | public function setRoutesContent($env, $manager) |
99 | 106 | { |
100 | 107 | $routes = [ |
@@ -118,6 +125,10 @@ discard block |
||
118 | 125 | } |
119 | 126 | } |
120 | 127 | |
128 | + /** |
|
129 | + * @param string $env |
|
130 | + * @param ObjectManager $manager |
|
131 | + */ |
|
121 | 132 | public function loadArticles($env, $manager) |
122 | 133 | { |
123 | 134 | $articles = [ |
@@ -61,7 +61,7 @@ |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
64 | - * @param $filePath |
|
64 | + * @param string $filePath |
|
65 | 65 | * |
66 | 66 | * @return Response |
67 | 67 | */ |
@@ -35,7 +35,6 @@ |
||
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
38 | - * @param Meta $meta |
|
39 | 38 | * |
40 | 39 | * @return string|void |
41 | 40 | */ |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
62 | - * @param $paths |
|
62 | + * @param string[] $paths |
|
63 | 63 | * |
64 | 64 | * @return mixed |
65 | 65 | */ |
@@ -108,6 +108,9 @@ discard block |
||
108 | 108 | return $this->getTenantPrefix(self::DEFAULT_TENANT_DOMAIN).'/'.ltrim($id, '/'); |
109 | 109 | } |
110 | 110 | |
111 | + /** |
|
112 | + * @return null|\SWP\Bundle\ContentBundle\Model\RouteInterface |
|
113 | + */ |
|
111 | 114 | public function getRouteByName($id) |
112 | 115 | { |
113 | 116 | return $this->container->get('swp.provider.route')->getRouteByName($id); |
@@ -116,7 +119,7 @@ discard block |
||
116 | 119 | /** |
117 | 120 | * Gets current tenant's prefix. |
118 | 121 | * |
119 | - * @param string $subdomain |
|
122 | + * @param string $domain |
|
120 | 123 | * |
121 | 124 | * @return string |
122 | 125 | */ |
@@ -194,6 +194,9 @@ |
||
194 | 194 | return $route; |
195 | 195 | } |
196 | 196 | |
197 | + /** |
|
198 | + * @param string $name |
|
199 | + */ |
|
197 | 200 | private function ensureRouteExists($name) |
198 | 201 | { |
199 | 202 | if (null !== $this->get('swp.repository.route')->findOneByName($name)) { |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | * @param InputInterface $input |
187 | 187 | * @param OutputInterface $output |
188 | 188 | * @param Tenant $tenant |
189 | - * @param $themeDir |
|
189 | + * @param string $themeDir |
|
190 | 190 | * @param $themeName |
191 | 191 | */ |
192 | 192 | protected function writeConfigFile(InputInterface $input, OutputInterface $output, Tenant $tenant, $themeDir, $themeName) |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | |
279 | 279 | /** |
280 | 280 | * @param Filesystem $filesystem |
281 | - * @param $baseDir |
|
281 | + * @param string $baseDir |
|
282 | 282 | * @param $fileName |
283 | 283 | * |
284 | 284 | * @return string |
@@ -268,6 +268,9 @@ |
||
268 | 268 | return $list; |
269 | 269 | } |
270 | 270 | |
271 | + /** |
|
272 | + * @param null|string $name |
|
273 | + */ |
|
271 | 274 | private function ensureContentListExists($name) |
272 | 275 | { |
273 | 276 | if (null !== $this->get('swp.repository.content_list')->findOneByName($name)) { |
@@ -61,6 +61,9 @@ discard block |
||
61 | 61 | return new ResourcesListResponse($items); |
62 | 62 | } |
63 | 63 | |
64 | + /** |
|
65 | + * @param string $id |
|
66 | + */ |
|
64 | 67 | private function findOr404($id): ?SlideshowInterface |
65 | 68 | { |
66 | 69 | if (null === $slideshow = $this->get('swp.repository.slideshow')->findOneById($id)) { |
@@ -70,6 +73,9 @@ discard block |
||
70 | 73 | return $slideshow; |
71 | 74 | } |
72 | 75 | |
76 | + /** |
|
77 | + * @param string $id |
|
78 | + */ |
|
73 | 79 | private function findArticleOr404($id) |
74 | 80 | { |
75 | 81 | if (null === $article = $this->get('swp.repository.article')->findOneById($id)) { |
@@ -75,6 +75,9 @@ discard block |
||
75 | 75 | */ |
76 | 76 | private $configurationCache = []; |
77 | 77 | |
78 | + /** |
|
79 | + * @param string $configsPath |
|
80 | + */ |
|
78 | 81 | public function __construct(EventDispatcherInterface $dispatcher, Cache $metadataCache, $configsPath = null) |
79 | 82 | { |
80 | 83 | $this->metadataCache = $metadataCache; |
@@ -312,7 +315,7 @@ discard block |
||
312 | 315 | } |
313 | 316 | |
314 | 317 | /** |
315 | - * @param array $keys |
|
318 | + * @param string[] $keys |
|
316 | 319 | * |
317 | 320 | * @return string |
318 | 321 | */ |
@@ -344,7 +347,7 @@ discard block |
||
344 | 347 | /** |
345 | 348 | * @param string $id |
346 | 349 | * |
347 | - * @return null|true |
|
350 | + * @return null|boolean |
|
348 | 351 | */ |
349 | 352 | public function restoreTemporaryUnset($id) |
350 | 353 | { |