Unverified Commit 790f93a5 authored by Viral Solani's avatar Viral Solani Committed by GitHub

Merge pull request #186 from viralsolani/analysis-zYmBlj

Apply fixes from StyleCI
parents 08fdc5a4 383ce7c3
...@@ -77,10 +77,10 @@ class Handler extends ExceptionHandler ...@@ -77,10 +77,10 @@ class Handler extends ExceptionHandler
return $this->setStatusCode(422)->respondWithError($exception->validator->messages()); return $this->setStatusCode(422)->respondWithError($exception->validator->messages());
} }
/* /*
* Redirect if token mismatch error * Redirect if token mismatch error
* Usually because user stayed on the same screen too long and their session expired * Usually because user stayed on the same screen too long and their session expired
*/ */
if ($exception instanceof UnauthorizedHttpException) { if ($exception instanceof UnauthorizedHttpException) {
switch (get_class($exception->getPrevious())) { switch (get_class($exception->getPrevious())) {
case \App\Exceptions\Handler::class: case \App\Exceptions\Handler::class:
......
...@@ -21,7 +21,7 @@ class RoleResource extends Resource ...@@ -21,7 +21,7 @@ class RoleResource extends Resource
'permission' => ($this->all) ? 'All' : optional($this->permissions)->pluck('display_name'), 'permission' => ($this->all) ? 'All' : optional($this->permissions)->pluck('display_name'),
'noofuses' => $this->users->count(), 'noofuses' => $this->users->count(),
'sort' => $this->sort, 'sort' => $this->sort,
'status' => $this->status 'status' => $this->status,
]; ];
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment