@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | * |
| 160 | 160 | * @param Request $request A Symfony request |
| 161 | 161 | * |
| 162 | - * @return Post |
|
| 162 | + * @return FormInterface |
|
| 163 | 163 | * |
| 164 | 164 | * @throws NotFoundHttpException |
| 165 | 165 | */ |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | * @param int $id A Post identifier |
| 190 | 190 | * @param Request $request A Symfony request |
| 191 | 191 | * |
| 192 | - * @return Post |
|
| 192 | + * @return FormInterface |
|
| 193 | 193 | * |
| 194 | 194 | * @throws NotFoundHttpException |
| 195 | 195 | */ |
@@ -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 | { |
@@ -63,6 +63,9 @@ discard block |
||
| 63 | 63 | ; |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | + /** |
|
| 67 | + * @param integer $flag |
|
| 68 | + */ |
|
| 66 | 69 | public function assertPostEnabled($qb, $flag) |
| 67 | 70 | { |
| 68 | 71 | $qb->expects($this->once())->method('andWhere')->with($this->equalTo('p.enabled = :enabled')); |
@@ -199,6 +202,9 @@ discard block |
||
| 199 | 202 | $this->assertEquals(new \DateTime('2010-03-10'), $result['params']['endDate']); |
| 200 | 203 | } |
| 201 | 204 | |
| 205 | + /** |
|
| 206 | + * @param \Closure $qbCallback |
|
| 207 | + */ |
|
| 202 | 208 | protected function getPostManager($qbCallback) |
| 203 | 209 | { |
| 204 | 210 | $em = EntityManagerMockFactory::create($this, $qbCallback, array()); |
@@ -333,8 +333,8 @@ |
||
| 333 | 333 | |
| 334 | 334 | /** |
| 335 | 335 | * @param null $postManager |
| 336 | - * @param null $commentManager |
|
| 337 | - * @param null $mailer |
|
| 336 | + * @param \PHPUnit_Framework_MockObject_MockObject|null $commentManager |
|
| 337 | + * @param null|\PHPUnit_Framework_MockObject_MockObject $mailer |
|
| 338 | 338 | * @param null $formFactory |
| 339 | 339 | * @param null $formatterPool |
| 340 | 340 | * |
@@ -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 = array()) |
| 81 | 82 | { |