Add trailing array entry comma

This commit is contained in:
Jonny Barnes 2016-09-23 16:58:50 +01:00
parent 5ffcee06c0
commit d8f5293a73

View file

@ -64,7 +64,7 @@ class MicropubController extends Controller
}
return response()->json([
'response' => 'created',
'location' => $note->longurl
'location' => $note->longurl,
], 201)->header('Location', $note->longurl);
}
if ($request->input('h') == 'card' || $request->input('type')[0] == 'h-card') {
@ -76,7 +76,7 @@ class MicropubController extends Controller
return response()->json([
'response' => 'created',
'location' => $place->longurl
'location' => $place->longurl,
], 201)->header('Location', $place->longurl);
}
}
@ -85,14 +85,14 @@ class MicropubController extends Controller
return response()->json([
'response' => 'error',
'error' => 'invalid_token',
'error_description' => 'The token provided is not valid or does not have the necessary scope'
'error_description' => 'The token provided is not valid or does not have the necessary scope',
], 400);
}
return response()->json([
'response' => 'error',
'error' => 'no_token',
'error_description' => 'No OAuth token sent with request'
'error_description' => 'No OAuth token sent with request',
], 400);
}