diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-13 09:43:14 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-13 09:43:14 +0200 |
commit | f2e5fdc3666a2a6525b4202ab48df05efeebaf5c (patch) | |
tree | f559474e248a33c472fe0b260641866be5c0def3 /src/Wallabag/CoreBundle/Controller/TagController.php | |
parent | a417b869237763ee115982d6367a82aa6174d74e (diff) | |
parent | 86732aa01cf0ad0fb5279f38ce75a9bedbbb66e1 (diff) | |
download | wallabag-f2e5fdc3666a2a6525b4202ab48df05efeebaf5c.tar.gz wallabag-f2e5fdc3666a2a6525b4202ab48df05efeebaf5c.tar.zst wallabag-f2e5fdc3666a2a6525b4202ab48df05efeebaf5c.zip |
Merge pull request #1916 from wallabag/cleanup
Convert array + phpDoc
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller/TagController.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/TagController.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/TagController.php b/src/Wallabag/CoreBundle/Controller/TagController.php index 1a1f8c3d..e8e9ecbe 100644 --- a/src/Wallabag/CoreBundle/Controller/TagController.php +++ b/src/Wallabag/CoreBundle/Controller/TagController.php | |||
@@ -13,6 +13,7 @@ class TagController extends Controller | |||
13 | { | 13 | { |
14 | /** | 14 | /** |
15 | * @param Request $request | 15 | * @param Request $request |
16 | * @param Entry $entry | ||
16 | * | 17 | * |
17 | * @Route("/new-tag/{entry}", requirements={"entry" = "\d+"}, name="new_tag") | 18 | * @Route("/new-tag/{entry}", requirements={"entry" = "\d+"}, name="new_tag") |
18 | * | 19 | * |
@@ -38,13 +39,13 @@ class TagController extends Controller | |||
38 | 'flashes.tag.notice.tag_added' | 39 | 'flashes.tag.notice.tag_added' |
39 | ); | 40 | ); |
40 | 41 | ||
41 | return $this->redirect($this->generateUrl('view', array('id' => $entry->getId()))); | 42 | return $this->redirect($this->generateUrl('view', ['id' => $entry->getId()])); |
42 | } | 43 | } |
43 | 44 | ||
44 | return $this->render('WallabagCoreBundle:Tag:new_form.html.twig', array( | 45 | return $this->render('WallabagCoreBundle:Tag:new_form.html.twig', [ |
45 | 'form' => $form->createView(), | 46 | 'form' => $form->createView(), |
46 | 'entry' => $entry, | 47 | 'entry' => $entry, |
47 | )); | 48 | ]); |
48 | } | 49 | } |
49 | 50 | ||
50 | /** | 51 | /** |
@@ -82,9 +83,9 @@ class TagController extends Controller | |||
82 | 83 | ||
83 | return $this->render( | 84 | return $this->render( |
84 | 'WallabagCoreBundle:Tag:tags.html.twig', | 85 | 'WallabagCoreBundle:Tag:tags.html.twig', |
85 | array( | 86 | [ |
86 | 'tags' => $tags, | 87 | 'tags' => $tags, |
87 | ) | 88 | ] |
88 | ); | 89 | ); |
89 | } | 90 | } |
90 | } | 91 | } |