@@ -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 | { |
@@ -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'); |
@@ -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( |
@@ -302,8 +302,8 @@ |
||
| 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) |
@@ -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 | */ |
@@ -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 |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Sonata\MediaBundle\Provider\FileProvider; |
| 15 | 15 | use Sonata\MediaBundle\Provider\MediaProviderInterface; |
| 16 | -use Sonata\MediaBundle\Provider\Pool; |
|
| 17 | 16 | use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; |
| 18 | 17 | use Symfony\Component\Console\Input\InputInterface; |
| 19 | 18 | use Symfony\Component\Console\Input\InputOption; |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | * |
| 157 | 157 | * @View(serializerGroups="sonata_api_read", serializerEnableMaxDepthChecks=true) |
| 158 | 158 | * |
| 159 | - * @param $id |
|
| 159 | + * @param integer $id |
|
| 160 | 160 | * |
| 161 | 161 | * @return GalleryInterface |
| 162 | 162 | */ |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | * |
| 182 | 182 | * @View(serializerGroups="sonata_api_read", serializerEnableMaxDepthChecks=true) |
| 183 | 183 | * |
| 184 | - * @param $id |
|
| 184 | + * @param integer $id |
|
| 185 | 185 | * |
| 186 | 186 | * @return MediaInterface[] |
| 187 | 187 | */ |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | * |
| 214 | 214 | * @View(serializerGroups="sonata_api_read", serializerEnableMaxDepthChecks=true) |
| 215 | 215 | * |
| 216 | - * @param $id |
|
| 216 | + * @param integer $id |
|
| 217 | 217 | * |
| 218 | 218 | * @return GalleryItemInterface[] |
| 219 | 219 | */ |
@@ -490,7 +490,7 @@ discard block |
||
| 490 | 490 | /** |
| 491 | 491 | * Retrieves media with id $id or throws an exception if it doesn't exist. |
| 492 | 492 | * |
| 493 | - * @param $id |
|
| 493 | + * @param integer $id |
|
| 494 | 494 | * |
| 495 | 495 | * @return MediaInterface |
| 496 | 496 | * |
@@ -33,6 +33,7 @@ |
||
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * {@inheritdoc} |
| 36 | + * @param integer $page |
|
| 36 | 37 | */ |
| 37 | 38 | public function getPager(array $criteria, $page, $limit = 10, array $sort = array()) |
| 38 | 39 | { |