@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | - * @return array |
|
| 66 | + * @return string[] |
|
| 67 | 67 | */ |
| 68 | 68 | public function getHosts() |
| 69 | 69 | { |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | } |
| 166 | 166 | |
| 167 | 167 | /** |
| 168 | - * @param string|int $id |
|
| 168 | + * @param integer $id |
|
| 169 | 169 | */ |
| 170 | 170 | public function getFullHostById($id) |
| 171 | 171 | { |
@@ -35,6 +35,9 @@ discard block |
||
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | 37 | * @param ContainerInterface|string $multilanguage |
| 38 | + * @param \PHPUnit\Framework\MockObject\MockObject $requestStack |
|
| 39 | + * @param string $defaultLocale |
|
| 40 | + * @param string $requiredLocales |
|
| 38 | 41 | */ |
| 39 | 42 | public function __construct(/*ContainerInterface|RequestStack*/ $requestStack, $multilanguage = null, $defaultLocale = null, $requiredLocales = null, AdminRouteHelper $adminRouteHelper = null, EntityManagerInterface $em = null, array $hosts = null) |
| 40 | 43 | { |
@@ -291,7 +294,7 @@ discard block |
||
| 291 | 294 | } |
| 292 | 295 | |
| 293 | 296 | /** |
| 294 | - * @param string|int $id |
|
| 297 | + * @param integer $id |
|
| 295 | 298 | * |
| 296 | 299 | * @return array |
| 297 | 300 | */ |
@@ -120,7 +120,7 @@ |
||
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | /** |
| 123 | - * @return array|mixed|\Traversable |
|
| 123 | + * @return \Pagerfanta\iterable|null |
|
| 124 | 124 | */ |
| 125 | 125 | public function getItems() |
| 126 | 126 | { |
@@ -84,6 +84,10 @@ discard block |
||
| 84 | 84 | } |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | + /** |
|
| 88 | + * @param string $locale |
|
| 89 | + * @param string $title |
|
| 90 | + */ |
|
| 87 | 91 | public function clonePage(Node $originalNode, $locale, $title = null) |
| 88 | 92 | { |
| 89 | 93 | $originalNodeTranslations = $originalNode->getNodeTranslation($locale, true); |
@@ -123,6 +127,10 @@ discard block |
||
| 123 | 127 | return $nodeNewPage; |
| 124 | 128 | } |
| 125 | 129 | |
| 130 | + /** |
|
| 131 | + * @param Node $originalNode |
|
| 132 | + * @param Node $nodeNewPage |
|
| 133 | + */ |
|
| 126 | 134 | private function updateAcl($originalNode, $nodeNewPage): void |
| 127 | 135 | { |
| 128 | 136 | $originalIdentity = $this->identityRetrievalStrategy->getObjectIdentity($originalNode); |
@@ -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 | { |
@@ -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 | { |
@@ -17,6 +17,7 @@ |
||
| 17 | 17 | * @param MenuItem[] $children The current children |
| 18 | 18 | * @param MenuItem|null $parent The parent Menu item |
| 19 | 19 | * @param Request|null $request The Request |
| 20 | + * @return void |
|
| 20 | 21 | */ |
| 21 | 22 | public function adaptChildren(MenuBuilder $menu, array &$children, MenuItem $parent = null, Request $request = null); |
| 22 | 23 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | class KunstmaanAdminExtensionTest extends AbstractExtensionTestCase |
| 13 | 13 | { |
| 14 | 14 | /** |
| 15 | - * @return ExtensionInterface[] |
|
| 15 | + * @return KunstmaanAdminExtension[] |
|
| 16 | 16 | */ |
| 17 | 17 | protected function getContainerExtensions() |
| 18 | 18 | { |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | /** |
| 147 | 147 | * Return entity manager mock |
| 148 | 148 | * |
| 149 | - * @return EntityManager |
|
| 149 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
| 150 | 150 | */ |
| 151 | 151 | public function getEntityManager() |
| 152 | 152 | { |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | /** |
| 159 | 159 | * Return alc provider mock |
| 160 | 160 | * |
| 161 | - * @return AclProviderInterface |
|
| 161 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
| 162 | 162 | */ |
| 163 | 163 | public function getAclProvider() |
| 164 | 164 | { |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | /** |
| 169 | 169 | * Return security token storage |
| 170 | 170 | * |
| 171 | - * @return TokenStorageInterface |
|
| 171 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
| 172 | 172 | */ |
| 173 | 173 | public function getTokenStorage() |
| 174 | 174 | { |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | /** |
| 179 | 179 | * Return oid retrieval strategy mock |
| 180 | 180 | * |
| 181 | - * @return ObjectIdentityRetrievalStrategyInterface |
|
| 181 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
| 182 | 182 | */ |
| 183 | 183 | public function getOidRetrievalStrategy() |
| 184 | 184 | { |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | } |
| 205 | 205 | |
| 206 | 206 | /** |
| 207 | - * @return KernelInterface |
|
| 207 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
| 208 | 208 | */ |
| 209 | 209 | public function getKernel() |
| 210 | 210 | { |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | /** |
| 267 | 267 | * Return entity mock |
| 268 | 268 | * |
| 269 | - * @return AbstractEntity |
|
| 269 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
| 270 | 270 | */ |
| 271 | 271 | public function getEntity() |
| 272 | 272 | { |