Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Dec 4, 2023
1 parent acd5298 commit 00ed330
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Driver/Compiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ protected function condition(QueryParameters $params, Quoter $q, array $context)

$placeholder = '?';
if ($value->isArray()) {
return $this->arrayToInOperator($params, $q, $value->getValue(), match(\strtoupper($operator)) {
return $this->arrayToInOperator($params, $q, $value->getValue(), match (\strtoupper($operator)) {
'IN', '=' => true,
'NOT IN', '!=' => false,
default => throw CompilerException\UnexpectedOperatorException::sequence($operator),
Expand Down
2 changes: 1 addition & 1 deletion src/Query/Traits/WhereTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ abstract protected function registerToken(
*/
protected function whereWrapper(): Closure
{
return static fn($parameter) => $parameter instanceof Parameter || $parameter instanceof Fragment
return static fn ($parameter) => $parameter instanceof Parameter || $parameter instanceof Fragment
? $parameter
: new \Cycle\Database\Injection\Parameter($parameter);
}
Expand Down

0 comments on commit 00ed330

Please sign in to comment.