From d8615e1caeebb75c8f446b064996f0fa800802e2 Mon Sep 17 00:00:00 2001 From: Tim Davies Date: Wed, 1 Mar 2017 22:11:25 +0000 Subject: [PATCH] Replace intVal() with casting to int (int) --- app/Models/Incident.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Incident.php b/app/Models/Incident.php index da7c6c4e..1816f850 100644 --- a/app/Models/Incident.php +++ b/app/Models/Incident.php @@ -199,10 +199,10 @@ class Incident extends Model implements HasPresenter public function getIsResolvedAttribute() { 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; } /**