We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | /** |
| 58 | 58 | * Related. |
| 59 | 59 | * |
| 60 | - * @return \Illuminate\Database\Eloquent\Relations\HasOne |
|
| 60 | + * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
|
| 61 | 61 | */ |
| 62 | 62 | public function user() |
| 63 | 63 | { |
@@ -15,10 +15,10 @@ |
||
| 15 | 15 | protected $table = 'blood_types'; |
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | - * Indicates if the IDs are auto-incrementing. |
|
| 19 | - * |
|
| 20 | - * @var bool |
|
| 21 | - */ |
|
| 18 | + * Indicates if the IDs are auto-incrementing. |
|
| 19 | + * |
|
| 20 | + * @var bool |
|
| 21 | + */ |
|
| 22 | 22 | public $incrementing = false; |
| 23 | 23 | |
| 24 | 24 | /** |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | { |
| 74 | 74 | parent::boot(); |
| 75 | 75 | self::creating( |
| 76 | - function ($model) { |
|
| 76 | + function($model) { |
|
| 77 | 77 | // Generate a version 4 Uuid. |
| 78 | 78 | $model->id = (string) Uuid::generate(4)->string; |
| 79 | 79 | } |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | /** |
| 94 | 94 | * Get user avatar or set default.png as default. |
| 95 | 95 | * |
| 96 | - * @return void |
|
| 96 | + * @return string |
|
| 97 | 97 | */ |
| 98 | 98 | public function getAvatarAttribute($avatar) |
| 99 | 99 | { |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | /** |
| 104 | 104 | * Returns the campaigns created by the user. |
| 105 | 105 | * |
| 106 | - * @return array relationship |
|
| 106 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany relationship |
|
| 107 | 107 | * @var array |
| 108 | 108 | */ |
| 109 | 109 | public function campaigns() |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | /** |
| 133 | 133 | * Returns the comments created by the user. |
| 134 | 134 | * |
| 135 | - * @return array relationship |
|
| 135 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany relationship |
|
| 136 | 136 | * @var array |
| 137 | 137 | */ |
| 138 | 138 | public function comments() |
@@ -174,7 +174,7 @@ |
||
| 174 | 174 | { |
| 175 | 175 | parent::boot(); |
| 176 | 176 | self::creating( |
| 177 | - function ($model) { |
|
| 177 | + function($model) { |
|
| 178 | 178 | // Generate a version 4 Uuid. |
| 179 | 179 | $model->id = (string) Uuid::generate(4)->string; |
| 180 | 180 | } |
@@ -21,10 +21,10 @@ discard block |
||
| 21 | 21 | protected $table = 'comments'; |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | - * Indicates if the IDs are auto-incrementing. |
|
| 25 | - * |
|
| 26 | - * @var bool |
|
| 27 | - */ |
|
| 24 | + * Indicates if the IDs are auto-incrementing. |
|
| 25 | + * |
|
| 26 | + * @var bool |
|
| 27 | + */ |
|
| 28 | 28 | public $incrementing = false; |
| 29 | 29 | |
| 30 | 30 | /** |
@@ -66,11 +66,11 @@ discard block |
||
| 66 | 66 | return $this->belongsTo(Campaign::class); |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | - /** |
|
| 70 | - * Generate automaticaly the Comment id(uuid). |
|
| 71 | - * |
|
| 72 | - * @return Webpatser\Uuid\Uuid::generate() |
|
| 73 | - */ |
|
| 69 | + /** |
|
| 70 | + * Generate automaticaly the Comment id(uuid). |
|
| 71 | + * |
|
| 72 | + * @return Webpatser\Uuid\Uuid::generate() |
|
| 73 | + */ |
|
| 74 | 74 | public static function boot() |
| 75 | 75 | { |
| 76 | 76 | parent::boot(); |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | { |
| 76 | 76 | parent::boot(); |
| 77 | 77 | self::creating( |
| 78 | - function ($model) { |
|
| 78 | + function($model) { |
|
| 79 | 79 | // Generate a version 4 Uuid. |
| 80 | 80 | $model->id = (string) Uuid::generate(4)->string; |
| 81 | 81 | } |
@@ -21,10 +21,10 @@ |
||
| 21 | 21 | protected $table = 'campaigns'; |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | - * Indicates if the IDs are auto-incrementing. |
|
| 25 | - * |
|
| 26 | - * @var bool |
|
| 27 | - */ |
|
| 24 | + * Indicates if the IDs are auto-incrementing. |
|
| 25 | + * |
|
| 26 | + * @var bool |
|
| 27 | + */ |
|
| 28 | 28 | public $incrementing = false; |
| 29 | 29 | |
| 30 | 30 | /** |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | { |
| 63 | 63 | parent::boot(); |
| 64 | 64 | self::creating( |
| 65 | - function ($model) { |
|
| 65 | + function($model) { |
|
| 66 | 66 | // Generate a version 4 Uuid. |
| 67 | 67 | $model->id = (string) Uuid::generate(4)->string; |
| 68 | 68 | } |