@@ -126,7 +126,7 @@ |
||
126 | 126 | * Write a message to the output. |
127 | 127 | * |
128 | 128 | * @param string $message |
129 | - * @param bool|true $newLine |
|
129 | + * @param boolean $newLine |
|
130 | 130 | */ |
131 | 131 | protected function log($message, $newLine = true) |
132 | 132 | { |
@@ -56,7 +56,7 @@ |
||
56 | 56 | /** |
57 | 57 | * Returns mock of doctrine document manager. |
58 | 58 | * |
59 | - * @return \Sonata\DoctrinePHPCRAdminBundle\Model\ModelManager |
|
59 | + * @return \Doctrine\Common\Persistence\ManagerRegistry |
|
60 | 60 | */ |
61 | 61 | protected function createRegistryMock() |
62 | 62 | { |
@@ -60,6 +60,9 @@ discard block |
||
60 | 60 | } |
61 | 61 | } |
62 | 62 | |
63 | + /** |
|
64 | + * @param string $propertyName |
|
65 | + */ |
|
63 | 66 | protected function getMediaPropertyReflection($propertyName) |
64 | 67 | { |
65 | 68 | $rc = new \ReflectionClass('Sonata\MediaBundle\Model\Media'); |
@@ -69,6 +72,9 @@ discard block |
||
69 | 72 | return $property; |
70 | 73 | } |
71 | 74 | |
75 | + /** |
|
76 | + * @param integer $id |
|
77 | + */ |
|
72 | 78 | protected function getMedia($id) |
73 | 79 | { |
74 | 80 | $media = $this->getMockForAbstractClass('Sonata\MediaBundle\Model\Media'); |
@@ -302,8 +302,8 @@ |
||
302 | 302 | /** |
303 | 303 | * Asserts whether all expected texts can be found in the output within a given context. |
304 | 304 | * |
305 | - * @param string $extract PCRE regex expected to have a single matching group, extracting the content of a context |
|
306 | - * @param array $expected Excerpts of text expected to be found in the output |
|
305 | + * @param string $extractor PCRE regex expected to have a single matching group, extracting the content of a context |
|
306 | + * @param string[] $expected Excerpts of text expected to be found in the output |
|
307 | 307 | * @param string $output Searched output |
308 | 308 | */ |
309 | 309 | private function assertOutputFoundInContext($extractor, $expected, $output) |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | * |
161 | 161 | * @View(serializerGroups={"sonata_api_read"}, serializerEnableMaxDepthChecks=true) |
162 | 162 | * |
163 | - * @param $id |
|
163 | + * @param integer $id |
|
164 | 164 | * |
165 | 165 | * @return GalleryInterface |
166 | 166 | */ |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | * |
186 | 186 | * @View(serializerGroups={"sonata_api_read"}, serializerEnableMaxDepthChecks=true) |
187 | 187 | * |
188 | - * @param $id |
|
188 | + * @param integer $id |
|
189 | 189 | * |
190 | 190 | * @return MediaInterface[] |
191 | 191 | */ |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | * |
218 | 218 | * @View(serializerGroups={"sonata_api_read"}, serializerEnableMaxDepthChecks=true) |
219 | 219 | * |
220 | - * @param $id |
|
220 | + * @param integer $id |
|
221 | 221 | * |
222 | 222 | * @return GalleryItemInterface[] |
223 | 223 | */ |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | * @param int $mediaId A media identifier |
338 | 338 | * @param Request $request A Symfony request |
339 | 339 | * |
340 | - * @return GalleryInterface |
|
340 | + * @return FormInterface |
|
341 | 341 | * |
342 | 342 | * @throws NotFoundHttpException |
343 | 343 | */ |
@@ -494,7 +494,7 @@ discard block |
||
494 | 494 | /** |
495 | 495 | * Retrieves media with id $id or throws an exception if it doesn't exist. |
496 | 496 | * |
497 | - * @param $id |
|
497 | + * @param integer $id |
|
498 | 498 | * |
499 | 499 | * @return MediaInterface |
500 | 500 | * |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | * |
143 | 143 | * @View(serializerGroups={"sonata_api_read"}, serializerEnableMaxDepthChecks=true) |
144 | 144 | * |
145 | - * @param $id |
|
145 | + * @param integer $id |
|
146 | 146 | * |
147 | 147 | * @return MediaInterface |
148 | 148 | */ |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | * } |
165 | 165 | * ) |
166 | 166 | * |
167 | - * @param $id |
|
167 | + * @param integer $id |
|
168 | 168 | * |
169 | 169 | * @return array |
170 | 170 | */ |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | * |
344 | 344 | * @View(serializerGroups={"sonata_api_read"}, serializerEnableMaxDepthChecks=true) |
345 | 345 | * |
346 | - * @param $id |
|
346 | + * @param integer $id |
|
347 | 347 | * @param Request $request A Symfony request |
348 | 348 | * |
349 | 349 | * @return MediaInterface |
@@ -93,6 +93,9 @@ |
||
93 | 93 | ->getPager(array('enabled' => false), 1); |
94 | 94 | } |
95 | 95 | |
96 | + /** |
|
97 | + * @param \Closure $qbCallback |
|
98 | + */ |
|
96 | 99 | protected function getGalleryManager($qbCallback) |
97 | 100 | { |
98 | 101 | $em = EntityManagerMockFactory::create($this, $qbCallback, array( |
@@ -89,6 +89,9 @@ |
||
89 | 89 | ->getPager(array('enabled' => false), 1); |
90 | 90 | } |
91 | 91 | |
92 | + /** |
|
93 | + * @param \Closure $qbCallback |
|
94 | + */ |
|
92 | 95 | protected function getMediaManager($qbCallback) |
93 | 96 | { |
94 | 97 | $em = EntityManagerMockFactory::create($this, $qbCallback, array( |
@@ -56,7 +56,7 @@ |
||
56 | 56 | /** |
57 | 57 | * Returns mock of doctrine document manager. |
58 | 58 | * |
59 | - * @return \Sonata\DoctrinePHPCRAdminBundle\Model\ModelManager |
|
59 | + * @return \Doctrine\Common\Persistence\ManagerRegistry |
|
60 | 60 | */ |
61 | 61 | protected function createRegistryMock() |
62 | 62 | { |