StyleCI fixes
This commit is contained in:
parent
668dc9216a
commit
2d90187c83
3 changed files with 7 additions and 9 deletions
|
@ -42,16 +42,15 @@ class ServiceVariable extends Model
|
|||
*/
|
||||
protected $guarded = ['id', 'created_at', 'updated_at'];
|
||||
|
||||
/**
|
||||
* Cast values to correct type.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
/**
|
||||
* Cast values to correct type.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $casts = [
|
||||
'option_id' => 'integer',
|
||||
'user_viewable' => 'integer',
|
||||
'user_editable' => 'integer',
|
||||
'required' => 'integer',
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -62,7 +61,7 @@ class ServiceVariable extends Model
|
|||
*/
|
||||
public function getRequiredAttribute($value)
|
||||
{
|
||||
return ($this->rules === 'required' || str_contains($this->rules, ['required|', '|required']));
|
||||
return $this->rules === 'required' || str_contains($this->rules, ['required|', '|required']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue