Completed
Pull Request — master (#1358)
by Grégoire
02:24
created
src/Controller/MediaAdminController.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -41,6 +41,7 @@
 block discarded – undo
41 41
 
42 42
     /**
43 43
      * {@inheritdoc}
44
+     * @param string|null $view
44 45
      */
45 46
     public function render($view, array $parameters = [], Response $response = null)
46 47
     {
Please login to merge, or discard this patch.
tests/Entity/GalleryManagerTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -98,6 +98,9 @@
 block discarded – undo
98 98
             ->getPager(['enabled' => false], 1);
99 99
     }
100 100
 
101
+    /**
102
+     * @param \Closure $qbCallback
103
+     */
101 104
     protected function getGalleryManager($qbCallback)
102 105
     {
103 106
         $em = EntityManagerMockFactory::create($this, $qbCallback, [
Please login to merge, or discard this patch.
tests/Entity/MediaManagerTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -94,6 +94,9 @@
 block discarded – undo
94 94
             ->getPager(['enabled' => false], 1);
95 95
     }
96 96
 
97
+    /**
98
+     * @param \Closure $qbCallback
99
+     */
97 100
     protected function getMediaManager($qbCallback)
98 101
     {
99 102
         $em = EntityManagerMockFactory::create($this, $qbCallback, [
Please login to merge, or discard this patch.
src/Controller/Api/GalleryController.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
      */
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
      *
340 340
      * @throws NotFoundHttpException
341 341
      *
342
-     * @return GalleryInterface
342
+     * @return FormInterface
343 343
      */
344 344
     public function putGalleryMediaGalleryItemAction($galleryId, $mediaId, Request $request)
345 345
     {
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
     /**
501 501
      * Retrieves media with id $id or throws an exception if it doesn't exist.
502 502
      *
503
-     * @param $id
503
+     * @param integer $id
504 504
      *
505 505
      * @throws NotFoundHttpException
506 506
      *
Please login to merge, or discard this patch.
src/Controller/Api/MediaController.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
      * @throws NotFoundHttpException
Please login to merge, or discard this patch.
src/Command/UpdateCdnStatusCommand.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
      * Write a message to the output.
131 131
      *
132 132
      * @param string    $message
133
-     * @param bool|true $newLine
133
+     * @param boolean $newLine
134 134
      */
135 135
     protected function log($message, $newLine = true): void
136 136
     {
Please login to merge, or discard this patch.
tests/Command/CleanMediaCommandTest.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -294,8 +294,8 @@
 block discarded – undo
294 294
     /**
295 295
      * Asserts whether all expected texts can be found in the output within a given context.
296 296
      *
297
-     * @param string $extract  PCRE regex expected to have a single matching group, extracting the content of a context
298
-     * @param array  $expected Excerpts of text expected to be found in the output
297
+     * @param string $extractor  PCRE regex expected to have a single matching group, extracting the content of a context
298
+     * @param string[]  $expected Excerpts of text expected to be found in the output
299 299
      * @param string $output   Searched output
300 300
      */
301 301
     private function assertOutputFoundInContext($extractor, $expected, $output): void
Please login to merge, or discard this patch.
tests/Controller/MediaControllerTest.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -137,6 +137,9 @@  discard block
 block discarded – undo
137 137
         $this->assertSame('renderResponse', $response->getContent());
138 138
     }
139 139
 
140
+    /**
141
+     * @param boolean $isGranted
142
+     */
140 143
     private function configureDownloadSecurity($pool, $media, $request, $isGranted): void
141 144
     {
142 145
         $strategy = $this->prophesize(DownloadStrategyInterface::class);
@@ -145,6 +148,9 @@  discard block
 block discarded – undo
145 148
         $strategy->isGranted($media, $request)->willReturn($isGranted);
146 149
     }
147 150
 
151
+    /**
152
+     * @param integer $id
153
+     */
148 154
     private function configureGetMedia($id, $media): void
149 155
     {
150 156
         $mediaManager = $this->prophesize(BaseEntityManager::class);
@@ -159,6 +165,10 @@  discard block
 block discarded – undo
159 165
         $media->getProviderName()->willReturn('provider');
160 166
     }
161 167
 
168
+    /**
169
+     * @param string $template
170
+     * @param string $rendered
171
+     */
162 172
     private function configureRender($template, $data, $rendered): void
163 173
     {
164 174
         $templating = $this->prophesize(EngineInterface::class);
Please login to merge, or discard this patch.
tests/Document/MediaManagerTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
     /**
66 66
      * Returns mock of doctrine document manager.
67 67
      *
68
-     * @return \Sonata\DoctrinePHPCRAdminBundle\Model\ModelManager
68
+     * @return ManagerRegistry
69 69
      */
70 70
     protected function createRegistryMock()
71 71
     {
Please login to merge, or discard this patch.