Completed
Pull Request — master (#1348)
by Jordi Sala
14:01
created
src/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.
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/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.
tests/Controller/MediaControllerTest.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -123,6 +123,9 @@  discard block
 block discarded – undo
123 123
         $this->assertSame('renderResponse', $response->getContent());
124 124
     }
125 125
 
126
+    /**
127
+     * @param boolean $isGranted
128
+     */
126 129
     private function configureDownloadSecurity($pool, $media, $request, $isGranted)
127 130
     {
128 131
         $strategy = $this->prophesize('Sonata\MediaBundle\Security\DownloadStrategyInterface');
@@ -131,6 +134,9 @@  discard block
 block discarded – undo
131 134
         $strategy->isGranted($media, $request)->willReturn($isGranted);
132 135
     }
133 136
 
137
+    /**
138
+     * @param integer $id
139
+     */
134 140
     private function configureGetMedia($id, $media)
135 141
     {
136 142
         $mediaManager = $this->prophesize('Sonata\CoreBundle\Model\BaseEntityManager');
@@ -145,6 +151,10 @@  discard block
 block discarded – undo
145 151
         $media->getProviderName()->willReturn('provider');
146 152
     }
147 153
 
154
+    /**
155
+     * @param string $template
156
+     * @param string $rendered
157
+     */
148 158
     private function configureRender($template, $data, $rendered)
149 159
     {
150 160
         $templating = $this->prophesize('Symfony\Bundle\FrameworkBundle\Templating\EngineInterface');
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
@@ -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.
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.