| @@ -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 |      { | 
| @@ -132,7 +132,7 @@ discard block | ||
| 132 | 132 | * | 
| 133 | 133 | * @View(serializerGroups="sonata_api_read", serializerEnableMaxDepthChecks=true) | 
| 134 | 134 | * | 
| 135 | - * @param $id | |
| 135 | + * @param integer $id | |
| 136 | 136 | * | 
| 137 | 137 | * @return GalleryInterface | 
| 138 | 138 | */ | 
| @@ -157,7 +157,7 @@ discard block | ||
| 157 | 157 | * | 
| 158 | 158 | * @View(serializerGroups="sonata_api_read", serializerEnableMaxDepthChecks=true) | 
| 159 | 159 | * | 
| 160 | - * @param $id | |
| 160 | + * @param integer $id | |
| 161 | 161 | * | 
| 162 | 162 | * @return MediaInterface[] | 
| 163 | 163 | */ | 
| @@ -189,7 +189,7 @@ discard block | ||
| 189 | 189 | * | 
| 190 | 190 | * @View(serializerGroups="sonata_api_read", serializerEnableMaxDepthChecks=true) | 
| 191 | 191 | * | 
| 192 | - * @param $id | |
| 192 | + * @param integer $id | |
| 193 | 193 | * | 
| 194 | 194 | * @return GalleryHasMediaInterface[] | 
| 195 | 195 | */ | 
| @@ -212,7 +212,7 @@ discard block | ||
| 212 | 212 | * | 
| 213 | 213 | * @param Request $request A Symfony request | 
| 214 | 214 | * | 
| 215 | - * @return GalleryInterface | |
| 215 | + * @return FormInterface | |
| 216 | 216 | * | 
| 217 | 217 | * @throws NotFoundHttpException | 
| 218 | 218 | */ | 
| @@ -240,7 +240,7 @@ discard block | ||
| 240 | 240 | * @param int $id User id | 
| 241 | 241 | * @param Request $request A Symfony request | 
| 242 | 242 | * | 
| 243 | - * @return GalleryInterface | |
| 243 | + * @return FormInterface | |
| 244 | 244 | * | 
| 245 | 245 | * @throws NotFoundHttpException | 
| 246 | 246 | */ | 
| @@ -309,7 +309,7 @@ discard block | ||
| 309 | 309 | * @param int $mediaId A media identifier | 
| 310 | 310 | * @param Request $request A Symfony request | 
| 311 | 311 | * | 
| 312 | - * @return GalleryInterface | |
| 312 | + * @return FormInterface | |
| 313 | 313 | * | 
| 314 | 314 | * @throws NotFoundHttpException | 
| 315 | 315 | */ | 
| @@ -457,7 +457,7 @@ discard block | ||
| 457 | 457 | /** | 
| 458 | 458 | * Retrieves media with id $id or throws an exception if it doesn't exist. | 
| 459 | 459 | * | 
| 460 | - * @param $id | |
| 460 | + * @param integer $id | |
| 461 | 461 | * | 
| 462 | 462 | * @return MediaInterface | 
| 463 | 463 | * | 
| @@ -131,7 +131,7 @@ discard block | ||
| 131 | 131 | * | 
| 132 | 132 | * @View(serializerGroups="sonata_api_read", serializerEnableMaxDepthChecks=true) | 
| 133 | 133 | * | 
| 134 | - * @param $id | |
| 134 | + * @param integer $id | |
| 135 | 135 | * | 
| 136 | 136 | * @return MediaInterface | 
| 137 | 137 | */ | 
| @@ -153,7 +153,7 @@ discard block | ||
| 153 | 153 | * } | 
| 154 | 154 | * ) | 
| 155 | 155 | * | 
| 156 | - * @param $id | |
| 156 | + * @param integer $id | |
| 157 | 157 | * | 
| 158 | 158 | * @return array | 
| 159 | 159 | */ | 
| @@ -258,7 +258,7 @@ discard block | ||
| 258 | 258 | * @param int $id A Medium identifier | 
| 259 | 259 | * @param Request $request A Symfony request | 
| 260 | 260 | * | 
| 261 | - * @return MediaInterface | |
| 261 | + * @return FormInterface | |
| 262 | 262 | * | 
| 263 | 263 | * @throws NotFoundHttpException | 
| 264 | 264 | */ | 
| @@ -298,7 +298,7 @@ discard block | ||
| 298 | 298 | * @param string $provider A media provider | 
| 299 | 299 | * @param Request $request A Symfony request | 
| 300 | 300 | * | 
| 301 | - * @return MediaInterface | |
| 301 | + * @return FormInterface | |
| 302 | 302 | * | 
| 303 | 303 | * @throws NotFoundHttpException | 
| 304 | 304 | */ | 
| @@ -332,7 +332,7 @@ discard block | ||
| 332 | 332 | * | 
| 333 | 333 | * @View(serializerGroups="sonata_api_read", serializerEnableMaxDepthChecks=true) | 
| 334 | 334 | * | 
| 335 | - * @param $id | |
| 335 | + * @param integer $id | |
| 336 | 336 | * @param Request $request A Symfony request | 
| 337 | 337 | * | 
| 338 | 338 | * @return MediaInterface | 
| @@ -41,6 +41,7 @@ | ||
| 41 | 41 | |
| 42 | 42 | /** | 
| 43 | 43 |       * {@inheritdoc} | 
| 44 | + * @param string|null $view | |
| 44 | 45 | */ | 
| 45 | 46 | public function render($view, array $parameters = array(), Response $response = null, Request $request = null) | 
| 46 | 47 |      { | 
| @@ -628,7 +628,7 @@ | ||
| 628 | 628 | } | 
| 629 | 629 | |
| 630 | 630 | /** | 
| 631 | - * @param CategoryInterface $category|null | |
| 631 | + * @param CategoryInterface $category | |
| 632 | 632 | */ | 
| 633 | 633 | public function setCategory(CategoryInterface $category = null) | 
| 634 | 634 |      { | 
| @@ -22,6 +22,9 @@ | ||
| 22 | 22 | */ | 
| 23 | 23 | class MediaManagerTest extends \PHPUnit_Framework_TestCase | 
| 24 | 24 |  { | 
| 25 | + /** | |
| 26 | + * @param \Closure $qbCallback | |
| 27 | + */ | |
| 25 | 28 | protected function getMediaManager($qbCallback) | 
| 26 | 29 |      { | 
| 27 | 30 | $em = EntityManagerMockFactory::create($this, $qbCallback, array( | 
| @@ -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'); | 
| @@ -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 |      { | 
| @@ -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 |      { |