aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller/TagController.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-04-12 11:36:01 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-04-12 12:25:29 +0200
commit4094ea47712efbe58624ff74daeb1f77c9b0edcf (patch)
tree3d2c168092d0208e6ba888de969252a54bf0c6c1 /src/Wallabag/CoreBundle/Controller/TagController.php
parent7eccbda99f16dc39ee01a0c81ab88293e9b268fd (diff)
downloadwallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.tar.gz
wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.tar.zst
wallabag-4094ea47712efbe58624ff74daeb1f77c9b0edcf.zip
Convert array + phpDoc
Thanks for https://github.com/thomasbachem/php-short-array-syntax-converter
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller/TagController.php')
-rw-r--r--src/Wallabag/CoreBundle/Controller/TagController.php11
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}