Skip to content

Commit

Permalink
wip: suppress excessive class complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Oct 11, 2023
1 parent 66de02b commit f4c10de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Query/SqlQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use PDOStatement;
use Gt\Database\Result\ResultSet;

/** @SuppressWarnings(PHPMD.ExcessiveClassComplexity) */
class SqlQuery extends Query {
const SPECIAL_BINDINGS = [
"limit",
Expand Down Expand Up @@ -204,7 +205,7 @@ private function injectDynamicOr(string $sql, array &$data):string {
}

$replacementString = "";
foreach($data["__dynamicOr"] as $i => $kvp) {
foreach($data["__dynamicOr"] as $kvp) {
$conditionString = "";
foreach($kvp as $key => $value) {
if(is_string($value)) {
Expand Down

0 comments on commit f4c10de

Please sign in to comment.