We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -99,7 +99,7 @@ |
||
99 | 99 | ); |
100 | 100 | } |
101 | 101 | |
102 | - // Notify error in not found |
|
102 | + // Notify error in not found |
|
103 | 103 | if (!$comment) { |
104 | 104 | return response()->json( |
105 | 105 | [ |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | { |
48 | 48 | parent::__construct(); |
49 | 49 | } |
50 | - */ |
|
50 | + */ |
|
51 | 51 | |
52 | 52 | /** |
53 | 53 | * Execute the console command. |
@@ -58,5 +58,5 @@ discard block |
||
58 | 58 | { |
59 | 59 | // |
60 | 60 | } |
61 | - */ |
|
61 | + */ |
|
62 | 62 | } |
@@ -39,7 +39,7 @@ |
||
39 | 39 | * |
40 | 40 | * These routes all receive session state, CSRF protection, etc. |
41 | 41 | */ |
42 | - /* |
|
42 | + /* |
|
43 | 43 | protected function mapWebRoutes() |
44 | 44 | { |
45 | 45 | Route::group( |
@@ -2,14 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace DoeSangue\Http\Controllers\API\V1; |
4 | 4 | |
5 | -use DoeSangue\Http\Requests\UpdateCampaignRequest; |
|
6 | -use DoeSangue\Http\Requests\CreateCampaignRequest; |
|
7 | 5 | use DoeSangue\Http\Controllers\Controller; |
8 | -use Illuminate\Support\Facades\Mail; |
|
9 | -use DoeSangue\Models\Donor; |
|
10 | 6 | use DoeSangue\Models\Campaign; |
11 | -use Carbon\Carbon; |
|
12 | -use Tymon\JWTAuth\Facades\JWTAuth; |
|
13 | 7 | |
14 | 8 | class CampaignController extends Controller |
15 | 9 | { |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace DoeSangue\Http\Controllers\API\V1\User; |
4 | 4 | |
5 | -use Illuminate\Http\Request; |
|
6 | 5 | use DoeSangue\Http\Controllers\Controller; |
7 | 6 | |
8 | 7 | use DoeSangue\Models\Campaign; |
@@ -111,7 +111,7 @@ |
||
111 | 111 | |
112 | 112 | } |
113 | 113 | |
114 | - // return redirect()->guest('login'); |
|
114 | + // return redirect()->guest('login'); |
|
115 | 115 | } |
116 | 116 | |
117 | 117 |
@@ -57,24 +57,24 @@ discard block |
||
57 | 57 | public function render($request, Exception $exception) |
58 | 58 | { |
59 | 59 | // Validate 404 exceptions. |
60 | - if($exception instanceof NotFoundHttpException) { |
|
60 | + if ($exception instanceof NotFoundHttpException) { |
|
61 | 61 | return response()->json( |
62 | 62 | [ |
63 | 63 | 'error' => [ |
64 | 64 | 'description' => 'Invalid URI', |
65 | - 'messages' => [] |
|
65 | + 'messages' => [ ] |
|
66 | 66 | ] |
67 | 67 | ], 404 |
68 | 68 | ); |
69 | 69 | } |
70 | 70 | |
71 | 71 | // Method not allowed exception handler |
72 | - if($exception instanceof MethodNotAllowedHttpException) { |
|
72 | + if ($exception instanceof MethodNotAllowedHttpException) { |
|
73 | 73 | return response()->json( |
74 | 74 | [ |
75 | 75 | 'error' => [ |
76 | 76 | 'description' => 'Method Not Allowed', |
77 | - 'messages' => [] |
|
77 | + 'messages' => [ ] |
|
78 | 78 | ] |
79 | 79 | ], 405 |
80 | 80 | ); |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | { |
108 | 108 | if ($request->expectsJson()) { |
109 | 109 | |
110 | - return response()->json(['error' => 'Unauthenticated.'], 401); |
|
110 | + return response()->json([ 'error' => 'Unauthenticated.' ], 401); |
|
111 | 111 | |
112 | 112 | } |
113 | 113 |