We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -94,8 +94,8 @@ |
||
| 94 | 94 | $user = JWTAuth::parseToken()->authenticate(); |
| 95 | 95 | |
| 96 | 96 | // If the token is invalid |
| 97 | - if (! $user) { |
|
| 98 | - return response()->json(['invalid_user'], 401); |
|
| 97 | + if (!$user) { |
|
| 98 | + return response()->json([ 'invalid_user' ], 401); |
|
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | return response()->json( |
@@ -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 | [ |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | $camp = Campaign::find($campaign); |
| 33 | 33 | $comment = new Comment(); |
| 34 | 34 | $comment->id = str_random(); |
| 35 | - $comment->comment = $request['comment']; |
|
| 35 | + $comment->comment = $request[ 'comment' ]; |
|
| 36 | 36 | $comment->user_id = $user->id; |
| 37 | 37 | $comment->campaign_id = $camp->id; |
| 38 | 38 | // $comment->created_at = Carbon::now(); |
@@ -63,9 +63,9 @@ discard block |
||
| 63 | 63 | ); |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - $comment->comment = $request['comment']; |
|
| 66 | + $comment->comment = $request[ 'comment' ]; |
|
| 67 | 67 | |
| 68 | - if (! $comment) { |
|
| 68 | + if (!$comment) { |
|
| 69 | 69 | return response()->json( |
| 70 | 70 | [ |
| 71 | 71 | 'error_code' => 404, |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Illuminate\Http\Request; |
| 6 | 6 | use DoeSangue\Http\Controllers\Controller; |
| 7 | 7 | use Tymon\JWTAuth\Facades\JWTAuth; |
| 8 | -use DoeSangue\Repositories\Invites; |
|
| 9 | 8 | use DoeSangue\Models\Invite; |
| 10 | 9 | use Hash; |
| 11 | 10 | |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | $user = JWTAuth::parseToken()->authenticate(); |
| 23 | 23 | |
| 24 | 24 | $invite = new Invite(); |
| 25 | - $invite->invite_code = Hash::make($request['invite_code']); |
|
| 25 | + $invite->invite_code = Hash::make($request[ 'invite_code' ]); |
|
| 26 | 26 | $invite->user_id = $user->id; |
| 27 | 27 | $invite->save(); |
| 28 | 28 | |
@@ -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( |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | [ |
| 65 | 65 | 'middleware' => 'api', |
| 66 | 66 | 'namespace' => $this->namespace, |
| 67 | - ], function ($router) { |
|
| 67 | + ], function($router) { |
|
| 68 | 68 | include base_path('routes/api.php'); |
| 69 | 69 | } |
| 70 | 70 | ); |