@@ -155,7 +155,7 @@ |
||
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | /** |
| 158 | - * @return array |
|
| 158 | + * @return string[] |
|
| 159 | 159 | */ |
| 160 | 160 | protected function getCurrentUserRoles() |
| 161 | 161 | { |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * You can override this method to return the correct entity manager when using multiple databases ... |
| 35 | 35 | * |
| 36 | - * @return \Doctrine\Common\Persistence\ObjectManager|object |
|
| 36 | + * @return \Doctrine\Persistence\ObjectManager |
|
| 37 | 37 | */ |
| 38 | 38 | protected function getEntityManager() |
| 39 | 39 | { |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * Shows the list of entities |
| 45 | 45 | * |
| 46 | 46 | * @param AbstractAdminListConfigurator $configurator |
| 47 | - * @param Request|null $request |
|
| 47 | + * @param Request $request |
|
| 48 | 48 | * |
| 49 | 49 | * @return Response |
| 50 | 50 | */ |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | * |
| 94 | 94 | * @param AbstractAdminListConfigurator $configurator The adminlist configurator |
| 95 | 95 | * @param string $type The type to add |
| 96 | - * @param Request|null $request |
|
| 96 | + * @param Request $request |
|
| 97 | 97 | * |
| 98 | 98 | * @throws AccessDeniedHttpException |
| 99 | 99 | * |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | * |
| 189 | 189 | * @param AbstractAdminListConfigurator $configurator The adminlist configurator |
| 190 | 190 | * @param string $entityId The id of the entity that will be edited |
| 191 | - * @param Request|null $request |
|
| 191 | + * @param Request $request |
|
| 192 | 192 | * |
| 193 | 193 | * @throws NotFoundHttpException |
| 194 | 194 | * @throws AccessDeniedHttpException |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | * |
| 343 | 343 | * @param AbstractAdminListConfigurator $configurator The adminlist configurator |
| 344 | 344 | * @param int $entityId The id to delete |
| 345 | - * @param Request|null $request |
|
| 345 | + * @param Request $request |
|
| 346 | 346 | * |
| 347 | 347 | * @throws NotFoundHttpException |
| 348 | 348 | * @throws AccessDeniedHttpException |
@@ -469,6 +469,9 @@ discard block |
||
| 469 | 469 | ); |
| 470 | 470 | } |
| 471 | 471 | |
| 472 | + /** |
|
| 473 | + * @param \Doctrine\Persistence\ObjectRepository $repo |
|
| 474 | + */ |
|
| 472 | 475 | private function getMaxSortableField($repo, $sort) |
| 473 | 476 | { |
| 474 | 477 | $maxWeight = $repo->createQueryBuilder('i') |
@@ -156,7 +156,7 @@ |
||
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | /** |
| 159 | - * @param NodeMenuItem|false|null $parent |
|
| 159 | + * @param NodeMenuItem $parent |
|
| 160 | 160 | */ |
| 161 | 161 | public function setParent($parent = false) |
| 162 | 162 | { |
@@ -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 | { |
@@ -503,7 +503,7 @@ discard block |
||
| 503 | 503 | /** |
| 504 | 504 | * Add type to the index document |
| 505 | 505 | * |
| 506 | - * @param object $page |
|
| 506 | + * @param HasNodeInterface $page |
|
| 507 | 507 | * @param array $doc |
| 508 | 508 | * |
| 509 | 509 | * @return array |
@@ -730,7 +730,7 @@ discard block |
||
| 730 | 730 | * |
| 731 | 731 | * @deprecated This method is deprecated since KunstmaanNodeSearchBundle 5.7 and will be removed in KunstmaanNodeSearchBundle 6.0. Use the "removeHtml" method of the "Kunstmaan\NodeSearchBundle\Services\SearchViewRenderer" instead. |
| 732 | 732 | * |
| 733 | - * @param $text |
|
| 733 | + * @param string $text |
|
| 734 | 734 | * |
| 735 | 735 | * @return string |
| 736 | 736 | */ |
@@ -746,7 +746,7 @@ discard block |
||
| 746 | 746 | /** |
| 747 | 747 | * Fetch ACL permissions for the specified entity |
| 748 | 748 | * |
| 749 | - * @param object $object |
|
| 749 | + * @param Node $object |
|
| 750 | 750 | * |
| 751 | 751 | * @return array |
| 752 | 752 | */ |
@@ -782,7 +782,7 @@ discard block |
||
| 782 | 782 | /** |
| 783 | 783 | * @param $publicNodeVersion |
| 784 | 784 | * |
| 785 | - * @return mixed |
|
| 785 | + * @return HasNodeInterface |
|
| 786 | 786 | */ |
| 787 | 787 | private function getNodeRefPage(NodeVersion $publicNodeVersion) |
| 788 | 788 | { |