@@ -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 | */ |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | * @Route("/add", name="kunstmaantaggingbundle_admin_tag_add", methods={"GET", "POST"}) |
| 42 | 42 | * @Template("@KunstmaanAdminList/Default/add.html.twig") |
| 43 | 43 | * |
| 44 | - * @return array |
|
| 44 | + * @return \Symfony\Component\HttpFoundation\Response |
|
| 45 | 45 | */ |
| 46 | 46 | public function addAction(Request $request) |
| 47 | 47 | { |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | /** |
| 28 | 28 | * @param Swift_Mailer $mailer |
| 29 | 29 | * @param EngineInterface $twig |
| 30 | - * @param ContainerInterface|RequestStack $requestStack |
|
| 30 | + * @param \PHPUnit\Framework\MockObject\MockObject $requestStack |
|
| 31 | 31 | */ |
| 32 | 32 | public function __construct(Swift_Mailer $mailer, /*Environment*/ $twig, /*RequestStack*/ $requestStack) |
| 33 | 33 | { |
@@ -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 |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | /** |
| 61 | 61 | * onKernelRequest |
| 62 | 62 | * |
| 63 | - * @param GetResponseEvent|ResponseEvent $event |
|
| 63 | + * @param \PHPUnit\Framework\MockObject\MockObject $event |
|
| 64 | 64 | */ |
| 65 | 65 | public function onKernelRequest($event) |
| 66 | 66 | { |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | 86 | * @param TokenInterface $token |
| 87 | - * @param $providerKey |
|
| 87 | + * @param string $providerKey |
|
| 88 | 88 | * |
| 89 | 89 | * @return bool |
| 90 | 90 | */ |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | - * @param GetResponseEvent|ResponseEvent $event |
|
| 70 | + * @param \PHPUnit\Framework\MockObject\MockObject $event |
|
| 71 | 71 | **/ |
| 72 | 72 | public function onKernelRequest($event) |
| 73 | 73 | { |
@@ -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') |
@@ -338,6 +338,9 @@ |
||
| 338 | 338 | return Request::create('http://single-alias.tld/'); |
| 339 | 339 | } |
| 340 | 340 | |
| 341 | + /** |
|
| 342 | + * @param string $uri |
|
| 343 | + */ |
|
| 341 | 344 | private function getRequestWithOverride($uri) |
| 342 | 345 | { |
| 343 | 346 | $session = new Session(new MockArraySessionStorage()); |