Skip to content

Commit d23c22c

Browse files
author
Daniel Abbey
committed
Adjusted formatting
1 parent b6bf037 commit d23c22c

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

app/models/Report.php

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,9 @@ public function getMatchAttribute() {
5656
$instructorMatch['$or'][] = $this->constructOr($key, $value);
5757
} else {
5858
if (is_array($value)) {
59-
if($value[0] != '<>')
60-
{
59+
if($value[0] != '<>') {
6160
$match[$key] = ['$in' => $value];
62-
}
63-
else
64-
{
61+
} else {
6562
$match[$key] = ['$lte' => $value[2], '$gte' => $value[1]];
6663
}
6764
} else {
@@ -107,12 +104,9 @@ public function getWhereAttribute() {
107104
array_push($instructorArray, [$key, $query[$key]]);
108105
} else {
109106
if (is_array($query[$key])) {
110-
if($query[$key][0] != '<>')
111-
{
107+
if($query[$key][0] != '<>') {
112108
array_push($wheres, [$key, 'in', $query[$key]]);
113-
}
114-
else
115-
{
109+
} else {
116110
array_push($wheres, [$key, 'between', $query[$key][1], $query[$key][2]]);
117111
}
118112
} else {

0 commit comments

Comments
 (0)