@@ -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)) { |
@@ -107,6 +107,9 @@ |
||
107 | 107 | return new SingleResourceResponse($form, new ResponseContext(400)); |
108 | 108 | } |
109 | 109 | |
110 | + /** |
|
111 | + * @param UserInterface $requestedUser |
|
112 | + */ |
|
110 | 113 | private function checkIfCanAccess($requestedUser) |
111 | 114 | { |
112 | 115 | /** @var UserInterface $currentUser */ |
@@ -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 | { |
@@ -23,7 +23,7 @@ |
||
23 | 23 | class ContainerExtension extends AbstractExtension |
24 | 24 | { |
25 | 25 | /** |
26 | - * @return array|\Twig\TokenParser\TokenParserInterface[] |
|
26 | + * @return ContainerTokenParser[] |
|
27 | 27 | */ |
28 | 28 | public function getTokenParsers() |
29 | 29 | { |
@@ -93,6 +93,9 @@ |
||
93 | 93 | return new SingleResourceResponse($list); |
94 | 94 | } |
95 | 95 | |
96 | + /** |
|
97 | + * @param string $id |
|
98 | + */ |
|
96 | 99 | private function findArticleOr404($id) |
97 | 100 | { |
98 | 101 | if (null === $article = $this->get('swp.repository.article')->findOneById($id)) { |
@@ -62,6 +62,9 @@ |
||
62 | 62 | return $result; |
63 | 63 | } |
64 | 64 | |
65 | + /** |
|
66 | + * @return string |
|
67 | + */ |
|
65 | 68 | private function getFragmentFromUrl(string $url, string $fragment): ?string |
66 | 69 | { |
67 | 70 | $fragments = \parse_url($url); |
@@ -29,6 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | /** |
31 | 31 | * @param string $about |
32 | + * @return void |
|
32 | 33 | */ |
33 | 34 | public function setAbout(string $about); |
34 | 35 | |
@@ -39,6 +40,7 @@ discard block |
||
39 | 40 | |
40 | 41 | /** |
41 | 42 | * @param string $firstName |
43 | + * @return void |
|
42 | 44 | */ |
43 | 45 | public function setFirstName(string $firstName); |
44 | 46 | |
@@ -49,6 +51,7 @@ discard block |
||
49 | 51 | |
50 | 52 | /** |
51 | 53 | * @param string $lastName |
54 | + * @return void |
|
52 | 55 | */ |
53 | 56 | public function setLastName(string $lastName); |
54 | 57 | |
@@ -59,6 +62,7 @@ discard block |
||
59 | 62 | |
60 | 63 | /** |
61 | 64 | * @param string $externalId |
65 | + * @return void |
|
62 | 66 | */ |
63 | 67 | public function setExternalId(string $externalId); |
64 | 68 | } |
@@ -120,6 +120,9 @@ |
||
120 | 120 | return ConsumerInterface::MSG_ACK; |
121 | 121 | } |
122 | 122 | |
123 | + /** |
|
124 | + * @param ImageInterface $image |
|
125 | + */ |
|
123 | 126 | private function markArticlesMediaAsUpdated($image) |
124 | 127 | { |
125 | 128 | /** @var ImageRenditionInterface[] $articleMedia */ |