@@ -177,6 +177,9 @@ |
||
177 | 177 | return ArticleEventInterface::PAGEVIEW_SOURCE_EXTERNAL; |
178 | 178 | } |
179 | 179 | |
180 | + /** |
|
181 | + * @return string |
|
182 | + */ |
|
180 | 183 | private function getFragmentFromUrl(string $url, string $fragment): ?string |
181 | 184 | { |
182 | 185 | $fragments = \parse_url($url); |
@@ -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)) { |
@@ -234,6 +234,9 @@ |
||
234 | 234 | return new SingleResourceResponse($container, new ResponseContext(201)); |
235 | 235 | } |
236 | 236 | |
237 | + /** |
|
238 | + * @param string $uuid |
|
239 | + */ |
|
237 | 240 | private function getContainerForUpdate($uuid) |
238 | 241 | { |
239 | 242 | $revisionContext = $this->get('swp_revision.context.revision'); |
@@ -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)) { |
@@ -216,6 +216,9 @@ |
||
216 | 216 | return new SingleResourceResponse($form, new ResponseContext(400)); |
217 | 217 | } |
218 | 218 | |
219 | + /** |
|
220 | + * @param ContentListInterface $listId |
|
221 | + */ |
|
219 | 222 | private function findByContentOr404($listId, $contentId): ContentListItemInterface |
220 | 223 | { |
221 | 224 | $listItem = $this->get('swp.repository.content_list_item')->findOneBy([ |
@@ -85,6 +85,10 @@ |
||
85 | 85 | return new SingleResourceResponse($form, new ResponseContext(400)); |
86 | 86 | } |
87 | 87 | |
88 | + /** |
|
89 | + * @param \SWP\Bundle\CoreBundle\Model\ContentListInterface $contentBucket |
|
90 | + * @param \SWP\Bundle\FacebookInstantArticlesBundle\Model\PageInterface $facebookPage |
|
91 | + */ |
|
88 | 92 | private function checkIfFeedExists($contentBucket, $facebookPage) |
89 | 93 | { |
90 | 94 | if (null !== $this->get('swp.repository.facebook_instant_articles_feed')->findOneBy([ |
@@ -147,7 +147,7 @@ |
||
147 | 147 | } |
148 | 148 | |
149 | 149 | /** |
150 | - * @param $id |
|
150 | + * @param integer $id |
|
151 | 151 | * |
152 | 152 | * @throws NotFoundHttpException |
153 | 153 | * |
@@ -82,6 +82,9 @@ |
||
82 | 82 | return $list; |
83 | 83 | } |
84 | 84 | |
85 | + /** |
|
86 | + * @param string $id |
|
87 | + */ |
|
85 | 88 | private function findArticleOr404($id) |
86 | 89 | { |
87 | 90 | if (null === $article = $this->get('swp.repository.article')->findOneById($id)) { |
@@ -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)) { |