@@ -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 | { |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
29 | - * @param mixed $node |
|
29 | + * @param \Kunstmaan\NodeBundle\Entity\Node $node |
|
30 | 30 | */ |
31 | 31 | public function setNode($node) |
32 | 32 | { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
47 | - * @param mixed $nodeTranslation |
|
47 | + * @param \Kunstmaan\NodeBundle\Entity\NodeTranslation $nodeTranslation |
|
48 | 48 | */ |
49 | 49 | public function setNodeTranslation($nodeTranslation) |
50 | 50 | { |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
83 | - * @param mixed $request |
|
83 | + * @param \Symfony\Component\HttpFoundation\Request $request |
|
84 | 84 | */ |
85 | 85 | public function setRequest($request) |
86 | 86 | { |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | class MediaTokenTransformer implements DataTransformerInterface |
12 | 12 | { |
13 | 13 | /** |
14 | - * @param mixed $content |
|
14 | + * @param string $content |
|
15 | 15 | * |
16 | 16 | * @return string |
17 | 17 | */ |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
47 | - * @param mixed $content |
|
47 | + * @param string $content |
|
48 | 48 | * |
49 | 49 | * @return string |
50 | 50 | */ |
@@ -10,7 +10,6 @@ |
||
10 | 10 | use Symfony\Component\Form\FormEvent; |
11 | 11 | use Symfony\Component\Form\FormEvents; |
12 | 12 | use Symfony\Component\Validator\Constraints\Email; |
13 | -use Symfony\Component\Validator\Constraints\Url; |
|
14 | 13 | |
15 | 14 | class URLChooserFormSubscriber implements EventSubscriberInterface |
16 | 15 | { |
@@ -9,7 +9,6 @@ |
||
9 | 9 | use Symfony\Component\Form\FormEvent; |
10 | 10 | use Symfony\Component\Form\FormEvents; |
11 | 11 | use Symfony\Component\Validator\Constraints\Email; |
12 | -use Symfony\Component\Validator\Constraints\Url; |
|
13 | 12 | |
14 | 13 | /** |
15 | 14 | * Class URLChooserLinkTypeSubscriber |
@@ -24,7 +24,7 @@ |
||
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
27 | - * @return ExtensionInterface[] |
|
27 | + * @return KunstmaanSeoExtension[] |
|
28 | 28 | */ |
29 | 29 | protected function getContainerExtensions() |
30 | 30 | { |
@@ -138,6 +138,9 @@ discard block |
||
138 | 138 | $object->onKernelResponse($event); |
139 | 139 | } |
140 | 140 | |
141 | + /** |
|
142 | + * @param \PHPUnit\Framework\MockObject\MockObject $flashBag |
|
143 | + */ |
|
141 | 144 | private function getHostOverrideListener($flashBag) |
142 | 145 | { |
143 | 146 | $session = $this->getMockBuilder('Symfony\Component\HttpFoundation\Session\Session') |
@@ -172,6 +175,9 @@ discard block |
||
172 | 175 | return $listener; |
173 | 176 | } |
174 | 177 | |
178 | + /** |
|
179 | + * @param \PHPUnit\Framework\MockObject\MockObject $response |
|
180 | + */ |
|
175 | 181 | private function getFilterResponseEvent($request, $response, $requestType = HttpKernelInterface::MASTER_REQUEST) |
176 | 182 | { |
177 | 183 | $event = $this->getMockBuilder('Symfony\Component\HttpKernel\Event\FilterResponseEvent') |
@@ -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 null|Request $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 null|Request $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 null|Request $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 null|Request $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') |
@@ -17,7 +17,7 @@ |
||
17 | 17 | /** |
18 | 18 | * You can override this method to return the correct entity manager when using multiple databases ... |
19 | 19 | * |
20 | - * @return \Doctrine\Common\Persistence\ObjectManager|object |
|
20 | + * @return \Doctrine\Persistence\ObjectManager |
|
21 | 21 | */ |
22 | 22 | protected function getEntityManager() |
23 | 23 | { |