From 6a3e9e132f7413446fd186d257fabfaeb594a592 Mon Sep 17 00:00:00 2001 From: Mohit Panjwani Date: Wed, 16 Feb 2022 11:19:30 +0530 Subject: [PATCH] fix formatting --- app/Models/Expense.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Models/Expense.php b/app/Models/Expense.php index d5f69d0d1..bd0aa1e35 100644 --- a/app/Models/Expense.php +++ b/app/Models/Expense.php @@ -126,14 +126,14 @@ public function scopeWhereCategoryName($query, $search) { foreach (explode(' ', $search) as $term) { $query->whereHas('category', function ($query) use ($term) { - $query->where('name', 'LIKE', '%' . $term . '%'); + $query->where('name', 'LIKE', '%'.$term.'%'); }); } } public function scopeWhereNotes($query, $search) { - $query->where('notes', 'LIKE', '%' . $search . '%'); + $query->where('notes', 'LIKE', '%'.$search.'%'); } public function scopeWhereCategory($query, $categoryId) @@ -188,9 +188,9 @@ public function scopeWhereSearch($query, $search) { foreach (explode(' ', $search) as $term) { $query->whereHas('category', function ($query) use ($term) { - $query->where('name', 'LIKE', '%' . $term . '%'); + $query->where('name', 'LIKE', '%'.$term.'%'); }) - ->orWhere('notes', 'LIKE', '%' . $term . '%'); + ->orWhere('notes', 'LIKE', '%'.$term.'%'); } }