MAPG-191 don't create separate variable for data where not necessary
This commit is contained in:
8 files changed
+170
-132
No files matched your search
@@ -24,7 +24,6 @@ class HomeController
|
||||
{
|
||||
// session starts with the request, this method just sends valid data to the client
|
||||
|
||||
$data = ['antiCsrfToken' => $this->request->session()->get('anti_csrf_token')];
|
||||
return new JsonContent($data);
|
||||
return new JsonContent(['antiCsrfToken' => $this->request->session()->get('anti_csrf_token')]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user