Skip to content

Commit

Permalink
chore: Unused use statements
Browse files Browse the repository at this point in the history
  • Loading branch information
roadiz-ci committed Mar 8, 2024
1 parent b113f19 commit 516dbf3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Controllers/SearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ protected function appendDateTimeCriteria(array &$data, string $fieldName): arra
protected function processCriteria($data, string $prefix = ""): mixed
{
if (!empty($data[$prefix . "nodeName"])) {
if (isset($data[$prefix . "nodeName_exact"]) && $data[$prefix . "nodeName_exact"] === true) {
$data[$prefix . "nodeName"] = $data[$prefix . "nodeName"];
} else {
if (!isset($data[$prefix . "nodeName_exact"]) || $data[$prefix . "nodeName_exact"] !== true) {
$data[$prefix . "nodeName"] = ["LIKE", "%" . $data[$prefix . "nodeName"] . "%"];
}
}
Expand Down

0 comments on commit 516dbf3

Please sign in to comment.