@@ -130,7 +130,7 @@ |
||
| 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 | { |
@@ -20,10 +20,16 @@ |
||
| 20 | 20 | { |
| 21 | 21 | public function getTitle(): string; |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @return string|null |
|
| 25 | + */ |
|
| 23 | 26 | public function getDescription(): ?string; |
| 24 | 27 | |
| 25 | 28 | public function getImage(): string; |
| 26 | 29 | |
| 30 | + /** |
|
| 31 | + * @return string|null |
|
| 32 | + */ |
|
| 27 | 33 | public function getDomain(): ?string; |
| 28 | 34 | |
| 29 | 35 | /** |
@@ -194,7 +194,7 @@ |
||
| 194 | 194 | } |
| 195 | 195 | |
| 196 | 196 | /** |
| 197 | - * @param mixed $media |
|
| 197 | + * @param MediaInterface $media |
|
| 198 | 198 | */ |
| 199 | 199 | private function getMedia($media): ?MediaInterface |
| 200 | 200 | { |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | /** |
| 62 | 62 | * NEXT_MAJOR: Remove `$templating` argument. |
| 63 | 63 | * |
| 64 | - * @param Environment|string $twigOrName |
|
| 64 | + * @param Environment $twigOrName |
|
| 65 | 65 | */ |
| 66 | 66 | public function __construct($twigOrName, ?EngineInterface $templating, ContainerInterface $container, ManagerInterface $galleryManager) |
| 67 | 67 | { |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | /** |
| 48 | 48 | * NEXT_MAJOR: Remove `$templating` argument. |
| 49 | 49 | * |
| 50 | - * @param Environment|string $twigOrName |
|
| 50 | + * @param Environment $twigOrName |
|
| 51 | 51 | */ |
| 52 | 52 | public function __construct($twigOrName, ?EngineInterface $templating, GalleryManagerInterface $galleryManager, Pool $pool) |
| 53 | 53 | { |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | /** |
| 60 | 60 | * NEXT_MAJOR: Remove `$templating` argument. |
| 61 | 61 | * |
| 62 | - * @param Environment|string $twigOrName |
|
| 62 | + * @param Environment $twigOrName |
|
| 63 | 63 | */ |
| 64 | 64 | public function __construct( |
| 65 | 65 | $twigOrName, |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | * |
| 155 | 155 | * @View(serializerGroups={"sonata_api_read"}, serializerEnableMaxDepthChecks=true) |
| 156 | 156 | * |
| 157 | - * @param $id |
|
| 157 | + * @param integer $id |
|
| 158 | 158 | * |
| 159 | 159 | * @return GalleryInterface |
| 160 | 160 | */ |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | * |
| 180 | 180 | * @View(serializerGroups={"sonata_api_read"}, serializerEnableMaxDepthChecks=true) |
| 181 | 181 | * |
| 182 | - * @param $id |
|
| 182 | + * @param integer $id |
|
| 183 | 183 | * |
| 184 | 184 | * @return MediaInterface[] |
| 185 | 185 | */ |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | * |
| 212 | 212 | * @View(serializerGroups={"sonata_api_read"}, serializerEnableMaxDepthChecks=true) |
| 213 | 213 | * |
| 214 | - * @param $id |
|
| 214 | + * @param integer $id |
|
| 215 | 215 | * |
| 216 | 216 | * @return GalleryItemInterface[] |
| 217 | 217 | */ |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | * |
| 334 | 334 | * @throws NotFoundHttpException |
| 335 | 335 | * |
| 336 | - * @return GalleryInterface |
|
| 336 | + * @return FormInterface |
|
| 337 | 337 | */ |
| 338 | 338 | public function putGalleryMediaGalleryItemAction($galleryId, $mediaId, Request $request) |
| 339 | 339 | { |
@@ -422,6 +422,7 @@ discard block |
||
| 422 | 422 | /** |
| 423 | 423 | * Write a GalleryItem, this method is used by both POST and PUT action methods. |
| 424 | 424 | * |
| 425 | + * @param GalleryItemInterface $galleryItem |
|
| 425 | 426 | * @return FormInterface |
| 426 | 427 | */ |
| 427 | 428 | protected function handleWriteGalleryItem(GalleryInterface $gallery, MediaInterface $media, ?GalleryItemInterface $galleryItem = null, Request $request) |
@@ -476,7 +477,7 @@ discard block |
||
| 476 | 477 | /** |
| 477 | 478 | * Retrieves media with id $id or throws an exception if it doesn't exist. |
| 478 | 479 | * |
| 479 | - * @param $id |
|
| 480 | + * @param integer $id |
|
| 480 | 481 | * |
| 481 | 482 | * @throws NotFoundHttpException |
| 482 | 483 | * |
@@ -47,6 +47,7 @@ |
||
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * {@inheritdoc} |
| 50 | + * @param string|null $view |
|
| 50 | 51 | */ |
| 51 | 52 | public function render($view, array $parameters = [], ?Response $response = null) |
| 52 | 53 | { |