@@ -52,9 +52,9 @@ public function __construct(EventDispatcherInterface $eventDispatcher, FactoryIn
5252 */
5353 public function listAction ()
5454 {
55- return $ this ->render ('@FOSUser/Group/list.html.twig ' , array (
55+ return $ this ->render ('@FOSUser/Group/list.html.twig ' , [
5656 'groups ' => $ this ->groupManager ->findGroups (),
57- ) );
57+ ] );
5858 }
5959
6060 /**
@@ -66,16 +66,15 @@ public function listAction()
6666 */
6767 public function showAction ($ groupName )
6868 {
69- return $ this ->render ('@FOSUser/Group/show.html.twig ' , array (
69+ return $ this ->render ('@FOSUser/Group/show.html.twig ' , [
7070 'group ' => $ this ->findGroupBy ('name ' , $ groupName ),
71- ) );
71+ ] );
7272 }
7373
7474 /**
7575 * Edit one group, show the edit form.
7676 *
77- * @param Request $request
78- * @param string $groupName
77+ * @param string $groupName
7978 *
8079 * @return Response
8180 */
@@ -102,7 +101,7 @@ public function editAction(Request $request, $groupName)
102101 $ this ->groupManager ->updateGroup ($ group );
103102
104103 if (null === $ response = $ event ->getResponse ()) {
105- $ url = $ this ->generateUrl ('fos_user_group_show ' , array ( 'groupName ' => $ group ->getName ()) );
104+ $ url = $ this ->generateUrl ('fos_user_group_show ' , [ 'groupName ' => $ group ->getName ()] );
106105 $ response = new RedirectResponse ($ url );
107106 }
108107
@@ -111,17 +110,15 @@ public function editAction(Request $request, $groupName)
111110 return $ response ;
112111 }
113112
114- return $ this ->render ('@FOSUser/Group/edit.html.twig ' , array (
113+ return $ this ->render ('@FOSUser/Group/edit.html.twig ' , [
115114 'form ' => $ form ->createView (),
116115 'group_name ' => $ group ->getName (),
117- ) );
116+ ] );
118117 }
119118
120119 /**
121120 * Show the new form.
122121 *
123- * @param Request $request
124- *
125122 * @return Response
126123 */
127124 public function newAction (Request $ request )
@@ -142,7 +139,7 @@ public function newAction(Request $request)
142139 $ this ->groupManager ->updateGroup ($ group );
143140
144141 if (null === $ response = $ event ->getResponse ()) {
145- $ url = $ this ->generateUrl ('fos_user_group_show ' , array ( 'groupName ' => $ group ->getName ()) );
142+ $ url = $ this ->generateUrl ('fos_user_group_show ' , [ 'groupName ' => $ group ->getName ()] );
146143 $ response = new RedirectResponse ($ url );
147144 }
148145
@@ -151,16 +148,15 @@ public function newAction(Request $request)
151148 return $ response ;
152149 }
153150
154- return $ this ->render ('@FOSUser/Group/new.html.twig ' , array (
151+ return $ this ->render ('@FOSUser/Group/new.html.twig ' , [
155152 'form ' => $ form ->createView (),
156- ) );
153+ ] );
157154 }
158155
159156 /**
160157 * Delete one group.
161158 *
162- * @param Request $request
163- * @param string $groupName
159+ * @param string $groupName
164160 *
165161 * @return RedirectResponse
166162 */
0 commit comments