| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 8 | class SheduleEmail extends Model |
||
| 9 | { |
||
| 10 | use SoftDeletes; |
||
| 11 | |||
| 12 | protected $fillable = ['date' , 'email_id', 'mode_id', 'status_action']; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The attributes that should be cast to native types. |
||
| 16 | * |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | protected $casts = [ |
||
| 20 | 'status_action' => 'boolean', |
||
| 21 | ]; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Get the status action. |
||
| 25 | * |
||
| 26 | * @param string $value |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | 1 | public function getStatusActionAttribute($value) : string |
|
| 30 | { |
||
| 31 | 1 | return $value; |
|
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param $value |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | 1 | public function getStatusActionHumanAttribute($value) : string |
|
|
|
|||
| 39 | { |
||
| 40 | 1 | return trans("postman::dashboard.status_action." . $this->status_action); |
|
| 41 | } |
||
| 42 | |||
| 43 | 3 | public function email() |
|
| 46 | } |
||
| 47 | |||
| 48 | 1 | public function mode() |
|
| 51 | } |
||
| 52 | } |
||
| 53 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.