@@ -41,6 +41,7 @@ |
||
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 | { |
@@ -98,6 +98,9 @@ |
||
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, [ |
@@ -94,6 +94,9 @@ |
||
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, [ |
@@ -160,7 +160,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | * |
@@ -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 | { |
@@ -65,7 +65,7 @@ |
||
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 | { |
@@ -65,6 +65,9 @@ discard block |
||
65 | 65 | } |
66 | 66 | } |
67 | 67 | |
68 | + /** |
|
69 | + * @param string $propertyName |
|
70 | + */ |
|
68 | 71 | protected function getMediaPropertyReflection($propertyName) |
69 | 72 | { |
70 | 73 | $rc = new \ReflectionClass(Media::class); |
@@ -74,6 +77,9 @@ discard block |
||
74 | 77 | return $property; |
75 | 78 | } |
76 | 79 | |
80 | + /** |
|
81 | + * @param integer $id |
|
82 | + */ |
|
77 | 83 | protected function getMedia($id) |
78 | 84 | { |
79 | 85 | $media = $this->getMockForAbstractClass(Media::class); |
@@ -65,7 +65,7 @@ |
||
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 | { |
@@ -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 | /** |