Skip to content

Commit

Permalink
codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
peldax committed Nov 18, 2020
1 parent a9fc323 commit ff277cf
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/Spec/TestSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -1287,15 +1287,19 @@ protected function getFieldDefinition() : \Graphpinator\Field\ResolvableFieldSet
new \Graphpinator\Field\ResolvableField(
'fieldA',
\Graphpinator\Container\Container::Int(),
function (?int $parent) : ?int {
return $parent === 1 ? 1 : null;
static function (?int $parent) : ?int {
return $parent === 1
? 1
: null;
},
),
new \Graphpinator\Field\ResolvableField(
'fieldB',
\Graphpinator\Container\Container::Int(),
function (int $parent) : ?int {
return $parent === 0 ? 1 : null;
static function (int $parent) : ?int {
return $parent === 0
? 1
: null;
},
),
]);
Expand Down

0 comments on commit ff277cf

Please sign in to comment.