Some issues fixed for scrutiniser.

This commit is contained in:
James Cole
2016-09-25 08:24:03 +02:00
parent bb7c26b77c
commit 3323c31765
6 changed files with 2 additions and 12 deletions

View File

@@ -107,11 +107,9 @@ class Handler extends ExceptionHandler
* Convert an authentication exception into an unauthenticated response.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Auth\AuthenticationException $exception
*
* @return \Illuminate\Http\Response
*/
protected function unauthenticated($request, AuthenticationException $exception)
protected function unauthenticated($request)
{
if ($request->expectsJson()) {
return response()->json(['error' => 'Unauthenticated.'], 401);