From e9a4e5263e4d2062f6e0552087065baa43da1488 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Tue, 9 Jul 2024 12:24:37 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/SearchCallbacks/Equals.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SearchCallbacks/Equals.php b/src/SearchCallbacks/Equals.php index ce87d2a..0a18b12 100644 --- a/src/SearchCallbacks/Equals.php +++ b/src/SearchCallbacks/Equals.php @@ -50,7 +50,7 @@ public function execute(Builder $builder, string $column, CategorizedValues $val foreach ($values->and as $andValue) { $dateTimeValue = new \DateTime($andValue); $formattedDateTime = $dateTimeValue->format('Y-m-d H:i:s'); - + if ($dateTimeValue->format('s') === '00') { $builder->orWhere(function ($query) use ($column, $formattedDateTime) { $query->whereDate($column, '=', date('Y-m-d', strtotime($formattedDateTime)))