Replace intVal() with casting to int (int)
This commit is contained in:
@@ -199,10 +199,10 @@ class Incident extends Model implements HasPresenter
|
|||||||
public function getIsResolvedAttribute()
|
public function getIsResolvedAttribute()
|
||||||
{
|
{
|
||||||
if ($updates = $this->updates->first()) {
|
if ($updates = $this->updates->first()) {
|
||||||
return intVal($updates->status) === self::FIXED;
|
return (int) $updates->status === self::FIXED;
|
||||||
}
|
}
|
||||||
|
|
||||||
return intVal($this->status) === self::FIXED;
|
return (int) $this->status === self::FIXED;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user