@@ -26,7 +26,6 @@ discard block |
||
| 26 | 26 | /** |
| 27 | 27 | * Convert a sex string to int type. |
| 28 | 28 | * |
| 29 | - * @param mixed $string |
|
| 30 | 29 | * @return int |
| 31 | 30 | */ |
| 32 | 31 | public static function type($sex) |
@@ -43,7 +42,7 @@ discard block |
||
| 43 | 42 | /** |
| 44 | 43 | * All sex types. |
| 45 | 44 | * |
| 46 | - * @return int[] |
|
| 45 | + * @return integer[] |
|
| 47 | 46 | */ |
| 48 | 47 | public static function allTypes() |
| 49 | 48 | { |
@@ -47,6 +47,6 @@ |
||
| 47 | 47 | */ |
| 48 | 48 | public static function allTypes() |
| 49 | 49 | { |
| 50 | - return [static::MALE, static::FEMALE]; |
|
| 50 | + return [ static::MALE, static::FEMALE ]; |
|
| 51 | 51 | } |
| 52 | 52 | } |
@@ -24,6 +24,6 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function setSexAttribute($value) |
| 26 | 26 | { |
| 27 | - $this->attributes['sex'] = Sex::type($value); |
|
| 27 | + $this->attributes[ 'sex' ] = Sex::type($value); |
|
| 28 | 28 | } |
| 29 | 29 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | protected static function bootFreshCreatedAt() |
| 28 | 28 | { |
| 29 | - static::creating(function ($model) { |
|
| 29 | + static::creating(function($model) { |
|
| 30 | 30 | $model->setCreatedAt($model->freshTimestamp()); |
| 31 | 31 | }); |
| 32 | 32 | } |