@@ -27,10 +27,10 @@ class TicketController extends Controller
2727 */
2828 public function indexAction (Request $ request )
2929 {
30- $ userManager = $ this ->getUserManager ();
30+ $ userManager = $ this ->getUserManager ();
3131 $ ticketManager = $ this ->get ('hackzilla_ticket.ticket_manager ' );
3232
33- $ ticketState = $ request ->get ('state ' , $ this ->get ('translator ' )->trans ('STATUS_OPEN ' ));
33+ $ ticketState = $ request ->get ('state ' , $ this ->get ('translator ' )->trans ('STATUS_OPEN ' ));
3434 $ ticketPriority = $ request ->get ('priority ' , null );
3535
3636 $ query = $ ticketManager ->getTicketList (
@@ -67,7 +67,7 @@ public function createAction(Request $request)
6767 $ ticketManager = $ this ->get ('hackzilla_ticket.ticket_manager ' );
6868
6969 $ ticket = $ ticketManager ->createTicket ();
70- $ form = $ this ->createForm (TicketType::class, $ ticket );
70+ $ form = $ this ->createForm (TicketType::class, $ ticket );
7171 $ form ->handleRequest ($ request );
7272
7373 if ($ form ->isValid ()) {
@@ -96,7 +96,7 @@ public function createAction(Request $request)
9696 public function newAction ()
9797 {
9898 $ ticketManager = $ this ->get ('hackzilla_ticket.ticket_manager ' );
99- $ entity = $ ticketManager ->createTicket ();
99+ $ entity = $ ticketManager ->createTicket ();
100100
101101 $ form = $ this ->createForm (TicketType::class, $ entity );
102102
@@ -119,7 +119,7 @@ public function newAction()
119119 public function showAction ($ ticketId )
120120 {
121121 $ ticketManager = $ this ->get ('hackzilla_ticket.ticket_manager ' );
122- $ ticket = $ ticketManager ->getTicketById ($ ticketId );
122+ $ ticket = $ ticketManager ->getTicketById ($ ticketId );
123123
124124 if (!$ ticket ) {
125125 return $ this ->redirect ($ this ->generateUrl ('hackzilla_ticket ' ));
@@ -154,7 +154,7 @@ public function showAction($ticketId)
154154 public function replyAction (Request $ request , $ ticketId )
155155 {
156156 $ ticketManager = $ this ->get ('hackzilla_ticket.ticket_manager ' );
157- $ ticket = $ ticketManager ->getTicketById ($ ticketId );
157+ $ ticket = $ ticketManager ->getTicketById ($ ticketId );
158158
159159 if (!$ ticket ) {
160160 throw $ this ->createNotFoundException ($ this ->get ('translator ' )->trans ('ERROR_FIND_TICKET_ENTITY ' ));
@@ -196,7 +196,7 @@ public function replyAction(Request $request, $ticketId)
196196 public function deleteAction (Request $ request , $ ticketId )
197197 {
198198 $ userManager = $ this ->getUserManager ();
199- $ user = $ userManager ->getCurrentUser ();
199+ $ user = $ userManager ->getCurrentUser ();
200200
201201 if (!\is_object ($ user ) || !$ userManager ->hasRole ($ user , TicketRole::ADMIN )) {
202202 throw new \Symfony \Component \HttpKernel \Exception \HttpException (403 );
@@ -209,7 +209,7 @@ public function deleteAction(Request $request, $ticketId)
209209
210210 if ($ form ->isValid ()) {
211211 $ ticketManager = $ this ->get ('hackzilla_ticket.ticket_manager ' );
212- $ ticket = $ ticketManager ->getTicketById ($ ticketId );
212+ $ ticket = $ ticketManager ->getTicketById ($ ticketId );
213213
214214 if (!$ ticket ) {
215215 throw $ this ->createNotFoundException ($ this ->get ('translator ' )->trans ('ERROR_FIND_TICKET_ENTITY ' ));
0 commit comments