@@ -78,6 +78,8 @@ |
||
78 | 78 | |
79 | 79 | /** |
80 | 80 | * {@inheritdoc} |
81 | + * @param string $date |
|
82 | + * @param string $step |
|
81 | 83 | */ |
82 | 84 | public function getPublicationDateQueryParts($date, $step, $alias = 'p') |
83 | 85 | { |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | * |
156 | 156 | * @throws NotFoundHttpException |
157 | 157 | * |
158 | - * @return Post |
|
158 | + * @return FormInterface |
|
159 | 159 | */ |
160 | 160 | public function postPostAction(Request $request) |
161 | 161 | { |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | * |
186 | 186 | * @throws NotFoundHttpException |
187 | 187 | * |
188 | - * @return Post |
|
188 | + * @return FormInterface |
|
189 | 189 | */ |
190 | 190 | public function putPostAction($id, Request $request) |
191 | 191 | { |
@@ -64,7 +64,7 @@ |
||
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
67 | - * @param null $commentManager |
|
67 | + * @param \PHPUnit\Framework\MockObject\MockObject $commentManager |
|
68 | 68 | * |
69 | 69 | * @return CommentController |
70 | 70 | */ |
@@ -79,6 +79,9 @@ |
||
79 | 79 | ], 1); |
80 | 80 | } |
81 | 81 | |
82 | + /** |
|
83 | + * @param \Closure $qbCallback |
|
84 | + */ |
|
82 | 85 | protected function getCommentManager($qbCallback) |
83 | 86 | { |
84 | 87 | $em = EntityManagerMockFactory::create($this, $qbCallback, []); |
@@ -22,6 +22,7 @@ |
||
22 | 22 | * Update the number of comment for a comment. |
23 | 23 | * |
24 | 24 | * @param PostInterface|null $post |
25 | + * @return void |
|
25 | 26 | */ |
26 | 27 | public function updateCommentsCount(PostInterface $post = null); |
27 | 28 | } |
@@ -65,6 +65,9 @@ discard block |
||
65 | 65 | ; |
66 | 66 | } |
67 | 67 | |
68 | + /** |
|
69 | + * @param integer $flag |
|
70 | + */ |
|
68 | 71 | public function assertPostEnabled($qb, $flag) |
69 | 72 | { |
70 | 73 | $qb->expects($this->once())->method('andWhere')->with($this->equalTo('p.enabled = :enabled')); |
@@ -252,6 +255,9 @@ discard block |
||
252 | 255 | $this->assertSame('2010-03-10', $result['params']['endDate']->format('Y-m-d')); |
253 | 256 | } |
254 | 257 | |
258 | + /** |
|
259 | + * @param \Closure $qbCallback |
|
260 | + */ |
|
255 | 261 | protected function getPostManager($qbCallback) |
256 | 262 | { |
257 | 263 | $em = EntityManagerMockFactory::create($this, $qbCallback, []); |
@@ -311,6 +311,7 @@ |
||
311 | 311 | |
312 | 312 | /** |
313 | 313 | * {@inheritdoc} |
314 | + * @param \PHPUnit\Framework\MockObject\MockObject[] $tags |
|
314 | 315 | */ |
315 | 316 | public function setTags($tags) |
316 | 317 | { |
@@ -354,11 +354,11 @@ |
||
354 | 354 | } |
355 | 355 | |
356 | 356 | /** |
357 | - * @param null $postManager |
|
358 | - * @param null $commentManager |
|
359 | - * @param null $mailer |
|
360 | - * @param null $formFactory |
|
361 | - * @param null $formatterPool |
|
357 | + * @param \PHPUnit\Framework\MockObject\MockObject $postManager |
|
358 | + * @param \PHPUnit\Framework\MockObject\MockObject|null $commentManager |
|
359 | + * @param null|\PHPUnit\Framework\MockObject\MockObject $mailer |
|
360 | + * @param \PHPUnit\Framework\MockObject\MockObject $formFactory |
|
361 | + * @param Pool $formatterPool |
|
362 | 362 | * |
363 | 363 | * @return PostController |
364 | 364 | */ |
@@ -70,7 +70,7 @@ |
||
70 | 70 | /** |
71 | 71 | * Returns a list of functions to add to the existing list. |
72 | 72 | * |
73 | - * @return array An array of functions |
|
73 | + * @return TwigFunction[] An array of functions |
|
74 | 74 | */ |
75 | 75 | public function getFunctions() |
76 | 76 | { |