Completed
Pull Request — master (#1132)
by David
03:18
created
Command/UpdateCdnStatusCommand.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
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 = array(), Response $response = null, Request $request = null)
46 47
     {
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
@@ -22,6 +22,9 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
Tests/Model/MediaTest.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -60,6 +60,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.
Tests/PHPCR/MediaManagerTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
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
     {
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
@@ -56,7 +56,7 @@
 block discarded – undo
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
     {
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
@@ -22,6 +22,9 @@
 block discarded – undo
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(
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
@@ -302,8 +302,8 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
Controller/Api/GalleryController.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      *
156 156
      * @View(serializerGroups="sonata_api_read", serializerEnableMaxDepthChecks=true)
157 157
      *
158
-     * @param $id
158
+     * @param integer $id
159 159
      *
160 160
      * @return GalleryInterface
161 161
      */
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      *
181 181
      * @View(serializerGroups="sonata_api_read", serializerEnableMaxDepthChecks=true)
182 182
      *
183
-     * @param $id
183
+     * @param integer $id
184 184
      *
185 185
      * @return MediaInterface[]
186 186
      */
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      *
213 213
      * @View(serializerGroups="sonata_api_read", serializerEnableMaxDepthChecks=true)
214 214
      *
215
-     * @param $id
215
+     * @param integer $id
216 216
      *
217 217
      * @return GalleryItemInterface[]
218 218
      */
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
      * @param int     $mediaId   A media identifier
333 333
      * @param Request $request   A Symfony request
334 334
      *
335
-     * @return GalleryInterface
335
+     * @return FormInterface
336 336
      *
337 337
      * @throws NotFoundHttpException
338 338
      */
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
     /**
481 481
      * Retrieves media with id $id or throws an exception if it doesn't exist.
482 482
      *
483
-     * @param $id
483
+     * @param integer $id
484 484
      *
485 485
      * @return MediaInterface
486 486
      *
Please login to merge, or discard this patch.