We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * Authenticate the user's personal channel... |
| 21 | 21 | */ |
| 22 | 22 | Broadcast::channel( |
| 23 | - 'App.User.*', function ($user, $userId) { |
|
| 23 | + 'App.User.*', function($user, $userId) { |
|
| 24 | 24 | return (int) $user->id === (int) $userId; |
| 25 | 25 | } |
| 26 | 26 | ); |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | [ |
| 56 | 56 | 'middleware' => 'web', |
| 57 | 57 | 'namespace' => $this->namespace, |
| 58 | - ], function ($router) { |
|
| 58 | + ], function($router) { |
|
| 59 | 59 | include base_path('routes/web.php'); |
| 60 | 60 | } |
| 61 | 61 | ); |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | 'middleware' => 'api', |
| 76 | 76 | 'namespace' => $this->namespace, |
| 77 | 77 | 'prefix' => 'api', |
| 78 | - ], function ($router) { |
|
| 78 | + ], function($router) { |
|
| 79 | 79 | include base_path('routes/api.php'); |
| 80 | 80 | } |
| 81 | 81 | ); |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace DoeSangue\Http\Controllers; |
| 4 | 4 | |
| 5 | -use Illuminate\Http\Request; |
|
| 6 | - |
|
| 7 | 5 | class HomeController extends Controller |
| 8 | 6 | { |
| 9 | 7 | /** |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | { |
| 27 | 27 | $name = str_replace_first($this->rootNamespace(), '', $name); |
| 28 | 28 | |
| 29 | - return $this->laravel['path'].'/Models/'.str_replace('\\', '/', $name).'.php'; |
|
| 29 | + return $this->laravel[ 'path' ].'/Models/'.str_replace('\\', '/', $name).'.php'; |
|
| 30 | 30 | } |
| 31 | 31 | /** |
| 32 | 32 | * Get the root namespace for the class. |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | */ |
| 35 | 35 | protected function rootNamespace() |
| 36 | 36 | { |
| 37 | - return $this->laravel->getNamespace() . 'Models'; |
|
| 37 | + return $this->laravel->getNamespace().'Models'; |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
@@ -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 | } |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use DoeSangue\Http\Requests\CreateCampaignRequest; |
| 7 | 7 | use DoeSangue\Http\Controllers\Controller; |
| 8 | 8 | use Illuminate\Support\Facades\Mail; |
| 9 | -use DoeSangue\Models\Donor; |
|
| 10 | 9 | use DoeSangue\Models\Campaign; |
| 11 | 10 | use Carbon\Carbon; |
| 12 | 11 | use Tymon\JWTAuth\Facades\JWTAuth; |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | |
| 33 | 33 | $campaign = new Campaign(); |
| 34 | 34 | $campaign->title = $request[ 'title' ]; |
| 35 | - $campaign->description = $request['description']; |
|
| 35 | + $campaign->description = $request[ 'description' ]; |
|
| 36 | 36 | /* $imageName = sprintf('%s.%s', hash_file('sha256', $request->file->getPathname()), $request->file->getExtension()); |
| 37 | 37 | if ($request->has('image') && $filesystem->has("uploads/{$imageName}")) { |
| 38 | 38 | $image->storePubliclyAs($imageName, 'uploads/'); |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace DoeSangue\Http\Controllers\API\V1; |
| 4 | 4 | |
| 5 | -use Illuminate\Http\Request; |
|
| 6 | 5 | use DoeSangue\Http\Controllers\Controller; |
| 7 | 6 | use DoeSangue\Models\Donor; |
| 8 | 7 | |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | |
| 26 | 26 | $donor = Donor::find($id); |
| 27 | 27 | |
| 28 | - if (! $donor) { |
|
| 28 | + if (!$donor) { |
|
| 29 | 29 | return response()->json( |
| 30 | 30 | [ |
| 31 | 31 | 'error_code' => 404, |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace DoeSangue\Http\Controllers\API\V1; |
| 4 | 4 | |
| 5 | -use Illuminate\Http\Request; |
|
| 6 | 5 | use DoeSangue\Http\Controllers\Controller; |
| 7 | 6 | use DoeSangue\Repositories\Users; |
| 8 | 7 | |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | /** |
| 70 | 70 | * Returns the campaigns created by the user. |
| 71 | 71 | * |
| 72 | - * @return array relationship |
|
| 72 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany relationship |
|
| 73 | 73 | * @var array |
| 74 | 74 | */ |
| 75 | 75 | public function campaigns() |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | /** |
| 86 | 86 | * Returns the comments created by the user. |
| 87 | 87 | * |
| 88 | - * @return array relationship |
|
| 88 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany relationship |
|
| 89 | 89 | * @var array |
| 90 | 90 | */ |
| 91 | 91 | public function comments() |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | public function getFullNameAttribute($value) |
| 65 | 65 | { |
| 66 | - return ucfirst($this->first_name) . ' ' . ucfirst($this->last_name); |
|
| 66 | + return ucfirst($this->first_name).' '.ucfirst($this->last_name); |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
@@ -95,6 +95,6 @@ discard block |
||
| 95 | 95 | |
| 96 | 96 | public function getIsActiveAttribute() |
| 97 | 97 | { |
| 98 | - return $this->attributes['active'] == true; |
|
| 98 | + return $this->attributes[ 'active' ] == true; |
|
| 99 | 99 | } |
| 100 | 100 | } |
@@ -16,6 +16,9 @@ |
||
| 16 | 16 | return User::whereUsername($username)->get(); |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | + /** |
|
| 20 | + * @return string |
|
| 21 | + */ |
|
| 19 | 22 | public function filterActive() |
| 20 | 23 | { |
| 21 | 24 | // |