Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Jul 9, 2024
1 parent 3df2183 commit e9a4e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SearchCallbacks/Equals.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit e9a4e52

Please sign in to comment.