@@ -93,6 +93,11 @@ |
||
93 | 93 | $this->fileHandler->saveMedia($media); |
94 | 94 | } |
95 | 95 | |
96 | + /** |
|
97 | + * @param string $pathName |
|
98 | + * |
|
99 | + * @return string |
|
100 | + */ |
|
96 | 101 | private function guessMimeType($pathName): ?string |
97 | 102 | { |
98 | 103 | if ($this->mimeTypeGuesser instanceof MimeTypeGuesserInterface) { |
@@ -70,6 +70,9 @@ discard block |
||
70 | 70 | } |
71 | 71 | } |
72 | 72 | |
73 | + /** |
|
74 | + * @param string $pathName |
|
75 | + */ |
|
73 | 76 | private function guessMimeType($pathName) |
74 | 77 | { |
75 | 78 | if ($this->mimeTypeGuesser !== null) { |
@@ -79,6 +82,9 @@ discard block |
||
79 | 82 | return $this->mimeTypes->guessMimeType($pathName); |
80 | 83 | } |
81 | 84 | |
85 | + /** |
|
86 | + * @param string|null $mimeType |
|
87 | + */ |
|
82 | 88 | private function getExtension($mimeType) |
83 | 89 | { |
84 | 90 | if ($this->extensionGuesser !== null) { |
@@ -379,6 +379,9 @@ |
||
379 | 379 | return $this->mimeTypes->guessMimeType($pathName); |
380 | 380 | } |
381 | 381 | |
382 | + /** |
|
383 | + * @param string|null $mimeType |
|
384 | + */ |
|
382 | 385 | private function getExtensions($mimeType) |
383 | 386 | { |
384 | 387 | // NEXT_MAJOR: remove method and inline getExtensions call |
@@ -18,8 +18,7 @@ |
||
18 | 18 | |
19 | 19 | /** |
20 | 20 | * @param int $priority |
21 | - * @param MimeTypeGuesserFactoryInterface|MimeTypesInterface $mimeTypeGuesserFactory |
|
22 | - * @param ExtensionGuesserFactoryInterface|null $extensionGuesserFactoryInterface |
|
21 | + * @param \Symfony\Component\Mime\MimeTypes $mimeTypeGuesser |
|
23 | 22 | * @param string $aviaryApiKey |
24 | 23 | */ |
25 | 24 | public function __construct($priority, $mimeTypeGuesser, $extensionGuesser, $aviaryApiKey) |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | /** |
149 | 149 | * Return entity manager mock |
150 | 150 | * |
151 | - * @return EntityManager |
|
151 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
152 | 152 | */ |
153 | 153 | public function getEntityManager() |
154 | 154 | { |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | /** |
161 | 161 | * Return alc provider mock |
162 | 162 | * |
163 | - * @return AclProviderInterface |
|
163 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
164 | 164 | */ |
165 | 165 | public function getAclProvider() |
166 | 166 | { |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | /** |
171 | 171 | * Return security token storage |
172 | 172 | * |
173 | - * @return TokenStorageInterface |
|
173 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
174 | 174 | */ |
175 | 175 | public function getTokenStorage() |
176 | 176 | { |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | /** |
181 | 181 | * Return oid retrieval strategy mock |
182 | 182 | * |
183 | - * @return ObjectIdentityRetrievalStrategyInterface |
|
183 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
184 | 184 | */ |
185 | 185 | public function getOidRetrievalStrategy() |
186 | 186 | { |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | } |
199 | 199 | |
200 | 200 | /** |
201 | - * @return Shell |
|
201 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
202 | 202 | */ |
203 | 203 | public function getShell() |
204 | 204 | { |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | } |
212 | 212 | |
213 | 213 | /** |
214 | - * @return KernelInterface |
|
214 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
215 | 215 | */ |
216 | 216 | public function getKernel() |
217 | 217 | { |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | /** |
277 | 277 | * Return entity mock |
278 | 278 | * |
279 | - * @return AbstractEntity |
|
279 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
280 | 280 | */ |
281 | 281 | public function getEntity() |
282 | 282 | { |
@@ -52,7 +52,7 @@ |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
55 | - * @param object $event |
|
55 | + * @param DeepCloneAndSaveEvent $event |
|
56 | 56 | * @param string $eventName |
57 | 57 | * |
58 | 58 | * @return object |
@@ -93,7 +93,7 @@ |
||
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
96 | - * @param object $event |
|
96 | + * @param SubmissionEvent $event |
|
97 | 97 | * @param string $eventName |
98 | 98 | * |
99 | 99 | * @return object |
@@ -536,7 +536,7 @@ |
||
536 | 536 | } |
537 | 537 | |
538 | 538 | /** |
539 | - * @param object $event |
|
539 | + * @param ConfigureActionMenuEvent $event |
|
540 | 540 | * @param string $eventName |
541 | 541 | * |
542 | 542 | * @return object |
@@ -322,7 +322,7 @@ |
||
322 | 322 | } |
323 | 323 | |
324 | 324 | /** |
325 | - * @param object $event |
|
325 | + * @param NodeEvent $event |
|
326 | 326 | * @param string $eventName |
327 | 327 | * |
328 | 328 | * @return object |