Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot authored and liu21st committed Feb 3, 2023
1 parent bcd5614 commit b68e3bb
Show file tree
Hide file tree
Showing 25 changed files with 3,261 additions and 3,258 deletions.
2,138 changes: 1,069 additions & 1,069 deletions src/Model.php

Large diffs are not rendered by default.

2,626 changes: 1,313 additions & 1,313 deletions src/db/BaseQuery.php

Large diffs are not rendered by default.

22 changes: 13 additions & 9 deletions src/db/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -768,15 +768,14 @@ protected function parseIn(Query $query, string $key, string $exp, $value, $fiel
foreach ($value as $v) {
$name = $query->bindValue($v, $bindType);
$array[] = ':' . $name;
}
}
} else {
$array = $value;
$array = $value;
}


if (count($array) == 1) {
return $key . ('IN' == $exp ? ' = ' : ' <> ') . $array[0];
}
}

$value = implode(',', $array);

Expand Down Expand Up @@ -1146,7 +1145,8 @@ public function select(Query $query, bool $one = false): string
$this->parseComment($query, $options['comment']),
$this->parseForce($query, $options['force']),
],
$this->selectSql);
$this->selectSql
);
}

/**
Expand Down Expand Up @@ -1178,7 +1178,8 @@ public function insert(Query $query): string
implode(' , ', $values),
$this->parseComment($query, $options['comment']),
],
$this->insertSql);
$this->insertSql
);
}

/**
Expand Down Expand Up @@ -1229,7 +1230,8 @@ public function insertAll(Query $query, array $dataSet): string
implode(' UNION ALL ', $values),
$this->parseComment($query, $options['comment']),
],
$this->insertAllSql);
$this->insertAllSql
);
}

/**
Expand Down Expand Up @@ -1283,7 +1285,8 @@ public function update(Query $query): string
$this->parseLock($query, $options['lock']),
$this->parseComment($query, $options['comment']),
],
$this->updateSql);
$this->updateSql
);
}

/**
Expand All @@ -1309,6 +1312,7 @@ public function delete(Query $query): string
$this->parseLock($query, $options['lock']),
$this->parseComment($query, $options['comment']),
],
$this->deleteSql);
$this->deleteSql
);
}
}

0 comments on commit b68e3bb

Please sign in to comment.