Skip to content

Commit

Permalink
Flatten Db::parseParam()
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Jun 2, 2018
1 parent fd24f63 commit 1e132be
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/helpers/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,10 @@ public static function parseParam(string $column, $value, string $defaultOperato
];
}
}
} else if (is_string($val)) {
continue;
}

if (is_string($val)) {
// Trim any whitespace from the value
$val = trim($val);

Expand All @@ -515,12 +518,11 @@ public static function parseParam(string $column, $value, string $defaultOperato
$val,
false
];
} else {
$condition[] = [$operator, $column, $val];
continue;
}
} else {
$condition[] = [$operator, $column, $val];
}

$condition[] = [$operator, $column, $val];
}

return $condition;
Expand Down

0 comments on commit 1e132be

Please # to comment.