Skip to content

Commit afdaa6e

Browse files
committed
fix style
1 parent ab6db2b commit afdaa6e

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

src/Support/Field.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
abstract class Field
2222
{
2323
/**
24-
* The depth the SelectField and ResolveInfoFieldsAndArguments classes traverse
24+
* The depth the SelectField and ResolveInfoFieldsAndArguments classes traverse.
2525
*
26-
* @var integer
26+
* @var int
2727
*/
2828
protected $depth = 5;
2929

@@ -99,7 +99,6 @@ public function getRules(array $arguments = []): array
9999
*/
100100
public function validateFieldArguments(array $fieldsAndArgumentsSelection): void
101101
{
102-
103102
$argsRules = (new RulesInFields($this->type(), $fieldsAndArgumentsSelection))->get();
104103
if (count($argsRules)) {
105104
$validator = $this->getValidator($fieldsAndArgumentsSelection, $argsRules);
@@ -194,9 +193,8 @@ protected function getResolver(): ?Closure
194193
}
195194

196195
/**
197-
198196
* @param array<int,mixed> $arguments
199-
* @param integer $depth
197+
* @param int $depth
200198
* @param array<string,mixed> $fieldsAndArguments
201199
* @return SelectFields
202200
*/

src/Support/RulesInFields.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
namespace Rebing\GraphQL\Support;
66

7-
use GraphQL\Error\InvariantViolation;
8-
use GraphQL\Type\Definition\ResolveInfo;
97
use GraphQL\Type\Definition\Type;
108
use GraphQL\Type\Definition\WrappingType;
119

src/Support/SelectFields.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Closure;
88
use GraphQL\Error\InvariantViolation;
99
use GraphQL\Type\Definition\FieldDefinition;
10-
use GraphQL\Type\Definition\ResolveInfo;
1110
use GraphQL\Type\Definition\Type as GraphqlType;
1211
use GraphQL\Type\Definition\UnionType;
1312
use GraphQL\Type\Definition\WrappingType;
@@ -51,7 +50,7 @@ public function __construct(GraphqlType $parentType, array $queryArgs, $ctx, arr
5150
}
5251

5352
/**
54-
* Undocumented function
53+
* Undocumented function.
5554
*
5655
* @param array<string,mixed> $fieldsAndArguments
5756
* @param array<string,mixed> $args

0 commit comments

Comments
 (0)