@@ -579,7 +579,7 @@ public function distinct(bool $val = true)
579579 */
580580 public function from ($ from , bool $ overwrite = false ): self
581581 {
582- if ($ overwrite === true ) {
582+ if ($ overwrite ) {
583583 $ this ->QBFrom = [];
584584 $ this ->db ->setAliasedTables ([]);
585585 }
@@ -769,7 +769,7 @@ protected function whereHaving(string $qbKey, $key, $value = null, string $type
769769 foreach ($ keyValue as $ k => $ v ) {
770770 $ prefix = empty ($ this ->{$ qbKey }) ? $ this ->groupGetType ('' ) : $ this ->groupGetType ($ type );
771771
772- if ($ rawSqlOnly === true ) {
772+ if ($ rawSqlOnly ) {
773773 $ k = '' ;
774774 $ op = '' ;
775775 } elseif ($ v !== null ) {
@@ -1150,7 +1150,7 @@ protected function _like($field, string $match = '', string $type = 'AND ', stri
11501150 $ keyValue = ! is_array ($ field ) ? [$ field => $ match ] : $ field ;
11511151
11521152 foreach ($ keyValue as $ k => $ v ) {
1153- if ($ insensitiveSearch === true ) {
1153+ if ($ insensitiveSearch ) {
11541154 $ v = strtolower ($ v );
11551155 }
11561156
@@ -1187,7 +1187,7 @@ protected function _like($field, string $match = '', string $type = 'AND ', stri
11871187 */
11881188 protected function _like_statement (?string $ prefix , string $ column , ?string $ not , string $ bind , bool $ insensitiveSearch = false ): string
11891189 {
1190- if ($ insensitiveSearch === true ) {
1190+ if ($ insensitiveSearch ) {
11911191 return "{$ prefix } LOWER( " . $ this ->db ->escapeIdentifiers ($ column ) . ") {$ not } LIKE : {$ bind }: " ;
11921192 }
11931193
@@ -1599,7 +1599,7 @@ public function getCompiledSelect(bool $reset = true): string
15991599 {
16001600 $ select = $ this ->compileSelect ();
16011601
1602- if ($ reset === true ) {
1602+ if ($ reset ) {
16031603 $ this ->resetSelect ();
16041604 }
16051605
@@ -1643,7 +1643,7 @@ public function get(?int $limit = null, int $offset = 0, bool $reset = true)
16431643 ? $ this ->getCompiledSelect ($ reset )
16441644 : $ this ->db ->query ($ this ->compileSelect (), $ this ->binds , false );
16451645
1646- if ($ reset === true ) {
1646+ if ($ reset ) {
16471647 $ this ->resetSelect ();
16481648
16491649 // Clear our binds so we don't eat up memory
@@ -1678,7 +1678,7 @@ public function countAll(bool $reset = true)
16781678
16791679 $ query = $ query ->getRow ();
16801680
1681- if ($ reset === true ) {
1681+ if ($ reset ) {
16821682 $ this ->resetSelect ();
16831683 }
16841684
@@ -1727,7 +1727,7 @@ public function countAllResults(bool $reset = true)
17271727
17281728 $ result = $ this ->db ->query ($ sql , $ this ->binds , false );
17291729
1730- if ($ reset === true ) {
1730+ if ($ reset ) {
17311731 $ this ->resetSelect ();
17321732 } elseif (! isset ($ this ->QBOrderBy )) {
17331733 $ this ->QBOrderBy = $ orderBy ;
@@ -1781,7 +1781,7 @@ public function getWhere($where = null, ?int $limit = null, ?int $offset = 0, bo
17811781 ? $ this ->getCompiledSelect ($ reset )
17821782 : $ this ->db ->query ($ this ->compileSelect (), $ this ->binds , false );
17831783
1784- if ($ reset === true ) {
1784+ if ($ reset ) {
17851785 $ this ->resetSelect ();
17861786
17871787 // Clear our binds so we don't eat up memory
@@ -2297,7 +2297,7 @@ public function getCompiledInsert(bool $reset = true)
22972297 array_values ($ this ->QBSet )
22982298 );
22992299
2300- if ($ reset === true ) {
2300+ if ($ reset ) {
23012301 $ this ->resetWrite ();
23022302 }
23032303
@@ -2466,7 +2466,7 @@ public function getCompiledUpdate(bool $reset = true)
24662466
24672467 $ sql = $ this ->_update ($ this ->QBFrom [0 ], $ this ->QBSet );
24682468
2469- if ($ reset === true ) {
2469+ if ($ reset ) {
24702470 $ this ->resetWrite ();
24712471 }
24722472
0 commit comments