Skip to content

Commit 77dcdec

Browse files
authored
Apply suggestions from code review
1 parent 23d0522 commit 77dcdec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/Database/BaseBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ protected function whereHaving(string $qbKey, $key, $value = null, string $type
659659
$op = trim(current($op));
660660

661661
if (substr($k, -1 * strlen($op)) === $op) {
662-
$k = rtrim(substr($k, 0, -1 * strlen($op)));
662+
$k = rtrim(substr($k, 0, -strlen($op)));
663663
$op = " {$op}";
664664
} else {
665665
$op = '';
@@ -680,7 +680,7 @@ protected function whereHaving(string $qbKey, $key, $value = null, string $type
680680
$op = ' IS NULL';
681681
} elseif (preg_match('/\s*(!?=|<>|IS(?:\s+NOT)?)\s*$/i', $k, $match, PREG_OFFSET_CAPTURE)) {
682682
$k = substr($k, 0, $match[0][1]);
683-
$op = ($match[1][0] === '=' ? ' IS NULL' : ' IS NOT NULL');
683+
$op = $match[1][0] === '=' ? ' IS NULL' : ' IS NOT NULL';
684684
} else {
685685
$op = '';
686686
}

0 commit comments

Comments
 (0)