Completed
Pull Request — master (#1558)
by
unknown
25:09
created
src/Controller/Api/GalleryController.php 2 patches
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      *
149 149
      * @param ParamFetcherInterface $paramFetcher
150 150
      *
151
-     * @return PagerInterface
151
+     * @return \Sonata\DatagridBundle\Pager\PagerInterface
152 152
      */
153 153
     public function getGalleriesAction(ParamFetcherInterface $paramFetcher)
154 154
     {
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      *
204 204
      * @View(serializerGroups={"sonata_api_read"}, serializerEnableMaxDepthChecks=true)
205 205
      *
206
-     * @param $id
206
+     * @param integer $id
207 207
      *
208 208
      * @return GalleryInterface
209 209
      */
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
      *
240 240
      * @View(serializerGroups={"sonata_api_read"}, serializerEnableMaxDepthChecks=true)
241 241
      *
242
-     * @param $id
242
+     * @param integer $id
243 243
      *
244 244
      * @return MediaInterface[]
245 245
      */
@@ -282,9 +282,9 @@  discard block
 block discarded – undo
282 282
      *
283 283
      * @View(serializerGroups={"sonata_api_read"}, serializerEnableMaxDepthChecks=true)
284 284
      *
285
-     * @param $id
285
+     * @param integer $id
286 286
      *
287
-     * @return GalleryItemInterface[]
287
+     * @return \Sonata\MediaBundle\Model\GalleryItemInterface[]
288 288
      */
289 289
     public function getGalleryGalleryItemAction($id)
290 290
     {
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
      *
488 488
      * @throws NotFoundHttpException
489 489
      *
490
-     * @return GalleryInterface
490
+     * @return FormInterface
491 491
      */
492 492
     public function putGalleryMediaGalleryItemAction($galleryId, $mediaId, Request $request)
493 493
     {
@@ -669,7 +669,7 @@  discard block
 block discarded – undo
669 669
     /**
670 670
      * Retrieves media with id $id or throws an exception if it doesn't exist.
671 671
      *
672
-     * @param $id
672
+     * @param integer $id
673 673
      *
674 674
      * @throws NotFoundHttpException
675 675
      *
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -15,11 +15,8 @@
 block discarded – undo
15 15
 
16 16
 use FOS\RestBundle\Controller\Annotations\QueryParam;
17 17
 use FOS\RestBundle\Controller\Annotations\View;
18
-use JMS\Serializer\SerializationContext;
19 18
 use FOS\RestBundle\Request\ParamFetcherInterface;
20 19
 use Sonata\MediaBundle\Model\Gallery;
21
-use Sonata\MediaBundle\Model\GalleryHasMedia;
22
-use Sonata\MediaBundle\Model\GalleryHasMediaInterface;
23 20
 use Sonata\MediaBundle\Model\GalleryInterface;
24 21
 use Sonata\MediaBundle\Model\GalleryManagerInterface;
25 22
 use Symfony\Component\Form\FormInterface;
Please login to merge, or discard this patch.