We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -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 |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | |
22 | 22 | $guestExist = DB::table('invitation_requests') |
23 | - ->where('guest_email', $request['guest_email'])->first(); |
|
23 | + ->where('guest_email', $request[ 'guest_email' ])->first(); |
|
24 | 24 | |
25 | 25 | if (!$guestExist) { |
26 | 26 | $guest = [ |
@@ -22,38 +22,38 @@ |
||
22 | 22 | public function args() |
23 | 23 | { |
24 | 24 | return [ |
25 | - 'first_name' => ['name' => 'firs_tname', 'type' => Type::string()], |
|
26 | - 'last_name' => ['name' => 'last_name', 'type' => Type::string()], |
|
27 | - 'email' => ['name' => 'email', 'type' => Type::string()], |
|
28 | - 'username' => ['name' => 'username', 'type' => Type::string()], |
|
29 | - 'phone' => ['name' => 'phone', 'type' => Type::string()], |
|
30 | - 'country_code' => ['name' => 'country_code', 'type' => Type::string()], |
|
31 | - 'bio' => ['name' => 'bio', 'type' => Type::string()], |
|
32 | - 'birthdate' => ['name' => 'birthdate', 'type' => Type::string()], |
|
33 | - 'active' => ['name' => 'active', 'type' => Type::string()], |
|
34 | - 'password' => ['name' => 'password', 'type' => Type::string()], |
|
35 | - 'blood_type_id' => ['name' => 'blood_type_id', 'type' => Type::string()], |
|
36 | - 'first' => ['name' => 'first', 'type' => Type::int()], |
|
25 | + 'first_name' => [ 'name' => 'firs_tname', 'type' => Type::string() ], |
|
26 | + 'last_name' => [ 'name' => 'last_name', 'type' => Type::string() ], |
|
27 | + 'email' => [ 'name' => 'email', 'type' => Type::string() ], |
|
28 | + 'username' => [ 'name' => 'username', 'type' => Type::string() ], |
|
29 | + 'phone' => [ 'name' => 'phone', 'type' => Type::string() ], |
|
30 | + 'country_code' => [ 'name' => 'country_code', 'type' => Type::string() ], |
|
31 | + 'bio' => [ 'name' => 'bio', 'type' => Type::string() ], |
|
32 | + 'birthdate' => [ 'name' => 'birthdate', 'type' => Type::string() ], |
|
33 | + 'active' => [ 'name' => 'active', 'type' => Type::string() ], |
|
34 | + 'password' => [ 'name' => 'password', 'type' => Type::string() ], |
|
35 | + 'blood_type_id' => [ 'name' => 'blood_type_id', 'type' => Type::string() ], |
|
36 | + 'first' => [ 'name' => 'first', 'type' => Type::int() ], |
|
37 | 37 | ]; |
38 | 38 | } |
39 | 39 | |
40 | - public function resolve($root,$args) |
|
40 | + public function resolve($root, $args) |
|
41 | 41 | { |
42 | 42 | $donor = new User; |
43 | 43 | |
44 | 44 | // Limit |
45 | - if (isset($args['first'])) { |
|
46 | - $donor = $donor->limit($args['first'])->latest('id'); |
|
45 | + if (isset($args[ 'first' ])) { |
|
46 | + $donor = $donor->limit($args[ 'first' ])->latest('id'); |
|
47 | 47 | } |
48 | 48 | |
49 | - if (isset($args['id'])) |
|
49 | + if (isset($args[ 'id' ])) |
|
50 | 50 | { |
51 | - $donor = $donor->where('id', $args['id']); |
|
51 | + $donor = $donor->where('id', $args[ 'id' ]); |
|
52 | 52 | } |
53 | 53 | |
54 | - if (isset($args['email'])) |
|
54 | + if (isset($args[ 'email' ])) |
|
55 | 55 | { |
56 | - $donor = $donor->where('email', $args['email']); |
|
56 | + $donor = $donor->where('email', $args[ 'email' ]); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | return $donor->get(); |