@@ -287,6 +287,10 @@ discard block |
||
287 | 287 | return $response; |
288 | 288 | } |
289 | 289 | |
290 | + /** |
|
291 | + * @param string $code |
|
292 | + * @param string $message |
|
293 | + */ |
|
290 | 294 | private function returnJsonError($code, $message) |
291 | 295 | { |
292 | 296 | |
@@ -471,7 +475,7 @@ discard block |
||
471 | 475 | * @Route("move/", name="KunstmaanMediaBundle_media_move") |
472 | 476 | * @Method({"POST"}) |
473 | 477 | * |
474 | - * @return string |
|
478 | + * @return JsonResponse |
|
475 | 479 | */ |
476 | 480 | public function moveMedia(Request $request) |
477 | 481 | { |
@@ -3,9 +3,7 @@ |
||
3 | 3 | namespace Kunstmaan\NodeBundle\Form\EventListener; |
4 | 4 | |
5 | 5 | use Kunstmaan\NodeBundle\Form\Type\URLChooserType; |
6 | -use Kunstmaan\NodeBundle\Validation\URLValidator; |
|
7 | 6 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
8 | -use Symfony\Component\Form\Extension\Core\Type\CheckboxType; |
|
9 | 7 | use Symfony\Component\Form\Extension\Core\Type\TextType; |
10 | 8 | use Symfony\Component\Form\FormEvent; |
11 | 9 | use Symfony\Component\Form\FormEvents; |
@@ -12,7 +12,7 @@ |
||
12 | 12 | class KunstmaanNodeExtensionTest extends AbstractPrependableExtensionTestCase |
13 | 13 | { |
14 | 14 | /** |
15 | - * @return ExtensionInterface[] |
|
15 | + * @return KunstmaanNodeExtension[] |
|
16 | 16 | */ |
17 | 17 | protected function getContainerExtensions() |
18 | 18 | { |
@@ -65,6 +65,10 @@ |
||
65 | 65 | $object->match('/en/some-uri'); |
66 | 66 | } |
67 | 67 | |
68 | + /** |
|
69 | + * @param Request|null $request |
|
70 | + * @param NodeTranslation $nodeTranslation |
|
71 | + */ |
|
68 | 72 | private function getContainer($request, $multiLanguage = false, $nodeTranslation = null) |
69 | 73 | { |
70 | 74 | $container = $this->createMock('Symfony\Component\DependencyInjection\ContainerInterface'); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | } |
22 | 22 | |
23 | 23 | /** |
24 | - * @return array |
|
24 | + * @return string[] |
|
25 | 25 | */ |
26 | 26 | public function getAccessRoles() |
27 | 27 | { |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | /** |
186 | 186 | * @param string $title |
187 | 187 | * |
188 | - * @return string |
|
188 | + * @return Seo |
|
189 | 189 | */ |
190 | 190 | public function setMetaTitle($title) |
191 | 191 | { |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | } |
288 | 288 | |
289 | 289 | /** |
290 | - * @return mixed |
|
290 | + * @return string |
|
291 | 291 | */ |
292 | 292 | public function getOgDescription() |
293 | 293 | { |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | } |
308 | 308 | |
309 | 309 | /** |
310 | - * @return mixed |
|
310 | + * @return Media |
|
311 | 311 | */ |
312 | 312 | public function getOgImage() |
313 | 313 | { |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | } |
328 | 328 | |
329 | 329 | /** |
330 | - * @return mixed |
|
330 | + * @return string |
|
331 | 331 | */ |
332 | 332 | public function getOgTitle() |
333 | 333 | { |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | } |
348 | 348 | |
349 | 349 | /** |
350 | - * @return mixed |
|
350 | + * @return string |
|
351 | 351 | */ |
352 | 352 | public function getOgType() |
353 | 353 | { |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | } |
364 | 364 | |
365 | 365 | /** |
366 | - * @param mixed $ogArticleAuthor |
|
366 | + * @param string $ogArticleAuthor |
|
367 | 367 | */ |
368 | 368 | public function setOgArticleAuthor($ogArticleAuthor) |
369 | 369 | { |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | } |
380 | 380 | |
381 | 381 | /** |
382 | - * @param mixed $ogArticlePublisher |
|
382 | + * @param string $ogArticlePublisher |
|
383 | 383 | */ |
384 | 384 | public function setOgArticlePublisher($ogArticlePublisher) |
385 | 385 | { |
@@ -395,7 +395,7 @@ discard block |
||
395 | 395 | } |
396 | 396 | |
397 | 397 | /** |
398 | - * @param mixed $ogArticleSection |
|
398 | + * @param string $ogArticleSection |
|
399 | 399 | */ |
400 | 400 | public function setOgArticleSection($ogArticleSection) |
401 | 401 | { |
@@ -4,5 +4,8 @@ |
||
4 | 4 | |
5 | 5 | interface LazyLoadingTaggableInterface extends Taggable |
6 | 6 | { |
7 | + /** |
|
8 | + * @return void |
|
9 | + */ |
|
7 | 10 | public function setTagLoader(\Closure $loader); |
8 | 11 | } |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace Kunstmaan\TranslatorBundle\Service\Command; |
3 | 3 | |
4 | -use Doctrine\DBAL\Migrations\Configuration\Configuration, |
|
5 | - Doctrine\DBAL\Migrations\Tools\Console\Command\GenerateCommand, |
|
6 | - Symfony\Component\Console\Input\InputInterface, |
|
7 | - Symfony\Component\Console\Output\OutputInterface; |
|
4 | +use Doctrine\DBAL\Migrations\Configuration\Configuration; |
|
5 | +use Doctrine\DBAL\Migrations\Tools\Console\Command\GenerateCommand; |
|
6 | +use Symfony\Component\Console\Input\InputInterface; |
|
7 | +use Symfony\Component\Console\Output\OutputInterface; |
|
8 | 8 | |
9 | 9 | class DiffCommand extends GenerateCommand |
10 | 10 | { |
@@ -21,7 +21,7 @@ |
||
21 | 21 | } |
22 | 22 | |
23 | 23 | /** |
24 | - * @return array |
|
24 | + * @return string[] |
|
25 | 25 | */ |
26 | 26 | public function getAccessRoles() |
27 | 27 | { |