Skip to content

Commit 9a0142e

Browse files
committed
[codestyle] Fix codestyles (missing newline, superfluous space)
1 parent 3044088 commit 9a0142e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Annotations/Assertion.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use BadMethodCallException;
88
use Symfony\Component\Validator\Constraint;
99
use TheCodingMachine\GraphQLite\Annotations\ParameterAnnotationInterface;
10+
1011
use function is_array;
1112
use function ltrim;
1213

@@ -41,7 +42,7 @@ public function __construct(array $values)
4142
}
4243

4344
$this->for = ltrim($values['for'], '$');
44-
$this->constraint = is_array($values['constraint']) ? $values['constraint'] : [ $values['constraint'] ];
45+
$this->constraint = is_array($values['constraint']) ? $values['constraint'] : [$values['constraint']];
4546
}
4647

4748
public function getTarget(): string

src/Mappers/Parameters/AssertParameterMiddleware.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use TheCodingMachine\GraphQLite\Parameters\InputTypeParameterInterface;
1717
use TheCodingMachine\GraphQLite\Parameters\ParameterInterface;
1818
use TheCodingMachine\GraphQLite\Validator\Annotations\Assertion;
19+
1920
use function array_map;
2021
use function array_merge;
2122

0 commit comments

Comments
 (0)