From 8ce32af61229eec8f4cc34b207273d47f60adc48 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Thu, 20 Aug 2015 07:53:55 +0200 Subject: CS We shouldn't forget to run `php-cs-fixer` time to time --- .../CoreBundle/Controller/EntryController.php | 22 +++++++++++----------- .../CoreBundle/Controller/SecurityController.php | 2 +- .../CoreBundle/Controller/StaticController.php | 15 ++++++++------- .../CoreBundle/Controller/TagController.php | 3 +-- 4 files changed, 21 insertions(+), 21 deletions(-) (limited to 'src/Wallabag/CoreBundle/Controller') diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php index 93ce650e..006fa396 100644 --- a/src/Wallabag/CoreBundle/Controller/EntryController.php +++ b/src/Wallabag/CoreBundle/Controller/EntryController.php @@ -136,9 +136,9 @@ class EntryController extends Controller return $this->render( 'WallabagCoreBundle:Entry:entries.html.twig', array( - 'form' => $form->createView(), - 'entries' => $entries, - 'currentPage' => $page + 'form' => $form->createView(), + 'entries' => $entries, + 'currentPage' => $page, ) ); } @@ -178,9 +178,9 @@ class EntryController extends Controller return $this->render( 'WallabagCoreBundle:Entry:entries.html.twig', array( - 'form' => $form->createView(), - 'entries' => $entries, - 'currentPage' => $page + 'form' => $form->createView(), + 'entries' => $entries, + 'currentPage' => $page, ) ); } @@ -220,9 +220,9 @@ class EntryController extends Controller return $this->render( 'WallabagCoreBundle:Entry:entries.html.twig', array( - 'form' => $form->createView(), - 'entries' => $entries, - 'currentPage' => $page + 'form' => $form->createView(), + 'entries' => $entries, + 'currentPage' => $page, ) ); } @@ -265,7 +265,7 @@ class EntryController extends Controller $this->get('session')->getFlashBag()->add( 'notice', - 'Entry ' . ($entry->isArchived() ? 'archived' : 'unarchived') + 'Entry '.($entry->isArchived() ? 'archived' : 'unarchived') ); return $this->redirect($request->headers->get('referer')); @@ -290,7 +290,7 @@ class EntryController extends Controller $this->get('session')->getFlashBag()->add( 'notice', - 'Entry ' . ($entry->isStarred() ? 'starred' : 'unstarred') + 'Entry '.($entry->isStarred() ? 'starred' : 'unstarred') ); return $this->redirect($request->headers->get('referer')); diff --git a/src/Wallabag/CoreBundle/Controller/SecurityController.php b/src/Wallabag/CoreBundle/Controller/SecurityController.php index a61a898b..f0a7ab6d 100644 --- a/src/Wallabag/CoreBundle/Controller/SecurityController.php +++ b/src/Wallabag/CoreBundle/Controller/SecurityController.php @@ -25,7 +25,7 @@ class SecurityController extends Controller return $this->render('WallabagCoreBundle:Security:login.html.twig', array( // last username entered by the user 'last_username' => $session->get(SecurityContext::LAST_USERNAME), - 'error' => $error, + 'error' => $error, )); } diff --git a/src/Wallabag/CoreBundle/Controller/StaticController.php b/src/Wallabag/CoreBundle/Controller/StaticController.php index 09be1b74..3b844b44 100644 --- a/src/Wallabag/CoreBundle/Controller/StaticController.php +++ b/src/Wallabag/CoreBundle/Controller/StaticController.php @@ -10,13 +10,14 @@ class StaticController extends Controller /** * @Route("/howto", name="howto") */ - public function howtoAction() - { - return $this->render( - 'WallabagCoreBundle:Static:howto.html.twig', - array() - ); - } + public function howtoAction() + { + return $this->render( + 'WallabagCoreBundle:Static:howto.html.twig', + array() + ); + } + /** * @Route("/about", name="about") */ diff --git a/src/Wallabag/CoreBundle/Controller/TagController.php b/src/Wallabag/CoreBundle/Controller/TagController.php index e448cea1..a342ec0b 100644 --- a/src/Wallabag/CoreBundle/Controller/TagController.php +++ b/src/Wallabag/CoreBundle/Controller/TagController.php @@ -23,9 +23,8 @@ class TagController extends Controller return $this->render( 'WallabagCoreBundle:Tag:tags.html.twig', array( - 'tags' => $tags + 'tags' => $tags, ) ); } - } -- cgit v1.2.3