Skip to content

Commit

Permalink
refactor: break long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Aug 28, 2024
1 parent 694b031 commit 9e97a0c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions system/Database/BaseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3164,8 +3164,14 @@ protected function compileWhereHaving(string $qbKey): string
);

foreach ($conditions as &$condition) {
if (($op = $this->getOperator($condition)) === false
|| ! preg_match('/^(\(?)(.*)(' . preg_quote($op, '/') . ')\s*(.*(?<!\)))?(\)?)$/i', $condition, $matches)
$op = $this->getOperator($condition);
if (
$op === false
|| ! preg_match(
'/^(\(?)(.*)(' . preg_quote($op, '/') . ')\s*(.*(?<!\)))?(\)?)$/i',
$condition,
$matches
)
) {
continue;
}
Expand Down

0 comments on commit 9e97a0c

Please sign in to comment.