From 1593b7b451d3734ea299cfa60b53f01d0eb8d26f Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sat, 16 Jun 2018 17:27:28 +0100 Subject: [PATCH] Use standard "not equal" operator --- app/Models/Metric.php | 2 +- app/Models/Schedule.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Metric.php b/app/Models/Metric.php index e1b6641f1..54c1b43f7 100644 --- a/app/Models/Metric.php +++ b/app/Models/Metric.php @@ -194,7 +194,7 @@ class Metric extends Model implements HasPresenter */ public function scopeDisplayable(Builder $query) { - return $query->where('display_chart', '=', true)->where('visible', '!=', self::VISIBLE_HIDDEN); + return $query->where('display_chart', '=', true)->where('visible', '<>', self::VISIBLE_HIDDEN); } /** diff --git a/app/Models/Schedule.php b/app/Models/Schedule.php index e119ff159..3f857cbd8 100644 --- a/app/Models/Schedule.php +++ b/app/Models/Schedule.php @@ -162,7 +162,7 @@ class Schedule extends Model implements HasPresenter */ public function scopeInProgress(Builder $query) { - return $query->where('scheduled_at', '<=', Carbon::now())->where('status', '!=', self::COMPLETE)->where(function ($query) { + return $query->where('scheduled_at', '<=', Carbon::now())->where('status', '<>', self::COMPLETE)->where(function ($query) { $query->whereNull('completed_at')->orWhere('completed_at', '>', Carbon::now()); }); }