Skip to content

Commit c8fc439

Browse files
formatting changes
1 parent 5195a4b commit c8fc439

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Storage/EntryModel.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function getSqlWithBindings($query)
9292
*/
9393
protected function whereSearch($query, EntryQueryOptions $options)
9494
{
95-
$query->where('content', 'like', '%' . $options->searchData . '%');
95+
$query->where('content', 'like', '%'.$options->searchData.'%');
9696

9797
return $this;
9898
}
@@ -106,13 +106,12 @@ protected function whereSearch($query, EntryQueryOptions $options)
106106
*/
107107
protected function whereDate($query, EntryQueryOptions $options)
108108
{
109-
if ($options->fromDate != "" && $options->toDate != "") {
109+
if ($options->fromDate != '' && $options->toDate != '') {
110110
$fromDate = date($options->fromDate);
111111
$toDate = date($options->toDate);
112112
$query->whereBetween('created_at', [$fromDate, $toDate]);
113113
}
114114

115-
116115
return $this;
117116
}
118117

src/Storage/EntryQueryOptions.php

+1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ public function fromDate(?string $fromDate)
114114

115115
return $this;
116116
}
117+
117118
/**
118119
* Set the tag that must belong to retrieved entries.
119120
*

0 commit comments

Comments
 (0)