@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | /** |
23 | 23 | * Constructor |
24 | 24 | * |
25 | - * @param object $em entity manager |
|
25 | + * @param EntityManager $em entity manager |
|
26 | 26 | */ |
27 | 27 | public function __construct(EntityManager $em) |
28 | 28 | { |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * |
35 | 35 | * @param Event $event event |
36 | 36 | * |
37 | - * @return Repository |
|
37 | + * @return \Doctrine\Persistence\ObjectRepository|null |
|
38 | 38 | */ |
39 | 39 | public function getRepositoryForEvent($event) |
40 | 40 | { |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * |
69 | 69 | * @param string $name name |
70 | 70 | * |
71 | - * @return Repository |
|
71 | + * @return \Doctrine\Persistence\ObjectRepository |
|
72 | 72 | */ |
73 | 73 | protected function getRepository($name) |
74 | 74 | { |
@@ -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 | { |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | /** |
60 | 60 | * Return the url to edit the given $item |
61 | 61 | * |
62 | - * @param object $item |
|
62 | + * @param \Kunstmaan\AdminListBundle\Tests\AdminList\Configurator\anonymous//src/Kunstmaan/AdminListBundle/Tests/AdminList/Configurator/AbstractDoctrineORMAdminListConfiguratorTest.php$0 $item |
|
63 | 63 | * |
64 | 64 | * @return array |
65 | 65 | */ |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | /** |
78 | 78 | * Get the delete url for the given $item |
79 | 79 | * |
80 | - * @param object $item |
|
80 | + * @param \Kunstmaan\AdminListBundle\Tests\AdminList\Configurator\anonymous//src/Kunstmaan/AdminListBundle/Tests/AdminList/Configurator/AbstractDoctrineORMAdminListConfiguratorTest.php$1 $item |
|
81 | 81 | * |
82 | 82 | * @return array |
83 | 83 | */ |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | } |
126 | 126 | |
127 | 127 | /** |
128 | - * @return array|Traversable |
|
128 | + * @return \Pagerfanta\iterable|null |
|
129 | 129 | */ |
130 | 130 | public function getItems() |
131 | 131 | { |
@@ -12,7 +12,7 @@ |
||
12 | 12 | class KunstmaanAdminListExtensionTest extends AbstractExtensionTestCase |
13 | 13 | { |
14 | 14 | /** |
15 | - * @return ExtensionInterface[] |
|
15 | + * @return KunstmaanAdminListExtension[] |
|
16 | 16 | */ |
17 | 17 | protected function getContainerExtensions() |
18 | 18 | { |