@@ -54,7 +54,7 @@ |
||
54 | 54 | /** |
55 | 55 | * Returns a list of functions to add to the existing list. |
56 | 56 | * |
57 | - * @return array An array of functions |
|
57 | + * @return \Twig_SimpleFunction[] An array of functions |
|
58 | 58 | */ |
59 | 59 | public function getFunctions() |
60 | 60 | { |
@@ -76,6 +76,7 @@ |
||
76 | 76 | |
77 | 77 | /** |
78 | 78 | * {@inheritdoc} |
79 | + * @param integer $page |
|
79 | 80 | */ |
80 | 81 | public function getPager(array $criteria, $page, $limit = 10, array $sort = []) |
81 | 82 | { |
@@ -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 | { |
@@ -356,7 +356,7 @@ |
||
356 | 356 | * @param null $commentManager |
357 | 357 | * @param null $mailer |
358 | 358 | * @param null $formFactory |
359 | - * @param null $formatterPool |
|
359 | + * @param Pool $formatterPool |
|
360 | 360 | * |
361 | 361 | * @return PostController |
362 | 362 | */ |
@@ -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): void |
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, []); |