@@ -45,10 +45,10 @@ |
||
45 | 45 | [ |
46 | 46 | 'name' => $definition->getName(), |
47 | 47 | 'description' => $definition->getDescription(), |
48 | - 'fields' => function () { |
|
48 | + 'fields' => function() { |
|
49 | 49 | return $this->resolveFields(); |
50 | 50 | }, |
51 | - 'resolveField' => function ($root, array $args, $context, ResolveInfo $resolveInfo) { |
|
51 | + 'resolveField' => function($root, array $args, $context, ResolveInfo $resolveInfo) { |
|
52 | 52 | $resolver = new ObjectFieldResolver($this->container, $this->manager, $this->definition); |
53 | 53 | |
54 | 54 | return $resolver($root, $args, $context, $resolveInfo); |
@@ -44,18 +44,18 @@ |
||
44 | 44 | [ |
45 | 45 | 'name' => $definition->getName(), |
46 | 46 | 'description' => $definition->getDescription(), |
47 | - 'fields' => function () { |
|
47 | + 'fields' => function() { |
|
48 | 48 | return $this->resolveFields(); |
49 | 49 | }, |
50 | - 'interfaces' => function () { |
|
50 | + 'interfaces' => function() { |
|
51 | 51 | return $this->resolveInterfaces(); |
52 | 52 | }, |
53 | - 'resolveField' => function ($root, array $args, $context, ResolveInfo $resolveInfo) { |
|
53 | + 'resolveField' => function($root, array $args, $context, ResolveInfo $resolveInfo) { |
|
54 | 54 | $resolver = new ObjectFieldResolver($this->container, $this->manager, $this->definition); |
55 | 55 | |
56 | 56 | return $resolver($root, $args, $context, $resolveInfo); |
57 | 57 | }, |
58 | - 'isTypeOf' => function ($value, $context, ResolveInfo $info) { |
|
58 | + 'isTypeOf' => function($value, $context, ResolveInfo $info) { |
|
59 | 59 | //TODO: implement this |
60 | 60 | }, |
61 | 61 | ] |
@@ -99,7 +99,7 @@ |
||
99 | 99 | |
100 | 100 | $paramName = 'root'.mt_rand(); |
101 | 101 | $qb->andWhere(sprintf('%s.%s = :%s', $this->queryAlias, $parentField, $paramName)) |
102 | - ->setParameter($paramName, $root); |
|
102 | + ->setParameter($paramName, $root); |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | /** |
@@ -20,7 +20,7 @@ |
||
20 | 20 | /** |
21 | 21 | * {@inheritDoc} |
22 | 22 | */ |
23 | - public function getResolver():?string; |
|
23 | + public function getResolver(): ?string; |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * {@inheritDoc} |
@@ -99,7 +99,7 @@ |
||
99 | 99 | * |
100 | 100 | * @return string |
101 | 101 | */ |
102 | - protected function getNormalizedType(?string $type):?string |
|
102 | + protected function getNormalizedType(?string $type) : ?string |
|
103 | 103 | { |
104 | 104 | switch ($type) { |
105 | 105 | case DoctrineType::BOOLEAN: |
@@ -291,7 +291,7 @@ |
||
291 | 291 | //sort by priority |
292 | 292 | usort( |
293 | 293 | $decorators, |
294 | - function ($service1, $service2) { |
|
294 | + function($service1, $service2) { |
|
295 | 295 | list($priority1) = $service1; |
296 | 296 | list($priority2) = $service2; |
297 | 297 |
@@ -77,7 +77,7 @@ |
||
77 | 77 | //sort by priority |
78 | 78 | usort( |
79 | 79 | $resolvers, |
80 | - function ($service1, $service2) { |
|
80 | + function($service1, $service2) { |
|
81 | 81 | list($priority1) = $service1; |
82 | 82 | list($priority2) = $service2; |
83 | 83 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * @return null|string |
28 | 28 | */ |
29 | - public function getResolver():?string |
|
29 | + public function getResolver(): ?string |
|
30 | 30 | { |
31 | 31 | return $this->resolver; |
32 | 32 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * |
26 | 26 | * @return DefinitionInterface |
27 | 27 | */ |
28 | - public function setName(?string $name): DefinitionInterface; |
|
28 | + public function setName(?string $name) : DefinitionInterface; |
|
29 | 29 | |
30 | 30 | /** |
31 | 31 | * @return string |
@@ -37,5 +37,5 @@ discard block |
||
37 | 37 | * |
38 | 38 | * @return DefinitionInterface |
39 | 39 | */ |
40 | - public function setDescription(?string $description): DefinitionInterface; |
|
40 | + public function setDescription(?string $description) : DefinitionInterface; |
|
41 | 41 | } |