@@ -65,7 +65,7 @@ |
||
65 | 65 | /** |
66 | 66 | * @return null|string |
67 | 67 | */ |
68 | - public function getClientMutationId():?string |
|
68 | + public function getClientMutationId(): ?string |
|
69 | 69 | { |
70 | 70 | return $this->clientMutationId; |
71 | 71 | } |
@@ -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} |
@@ -93,7 +93,7 @@ |
||
93 | 93 | //sort by priority |
94 | 94 | usort( |
95 | 95 | $orderedSpecifications, |
96 | - function ($tagSpecification1, $tagSpecification2) { |
|
96 | + function($tagSpecification1, $tagSpecification2) { |
|
97 | 97 | list($priority1) = $tagSpecification1; |
98 | 98 | list($priority2) = $tagSpecification2; |
99 | 99 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | { |
25 | 25 | $defaults = [ |
26 | 26 | 'name' => 'Mutation', |
27 | - 'fields' => function () { |
|
27 | + 'fields' => function() { |
|
28 | 28 | $mutations = []; |
29 | 29 | foreach ($this->endpoint->allMutations() as $query) { |
30 | 30 | $mutations[$query->getName()] = $this->getQueryConfig($query); |
@@ -66,7 +66,7 @@ |
||
66 | 66 | |
67 | 67 | $config = [ |
68 | 68 | 'types' => TypeRegistry::all(), |
69 | - 'typeLoader' => function ($name) { |
|
69 | + 'typeLoader' => function($name) { |
|
70 | 70 | return TypeRegistry::get($name); |
71 | 71 | }, |
72 | 72 | ]; |
@@ -85,7 +85,7 @@ |
||
85 | 85 | return new TypeGuess(TextType::class, [], Guess::MEDIUM_CONFIDENCE); |
86 | 86 | case Type::SIMPLE_ARRAY: |
87 | 87 | case Type::JSON_ARRAY: |
88 | - return new TypeGuess(GraphQLType::class, ['graphql_type' => Types::listOf(Types::STRING) ], Guess::MEDIUM_CONFIDENCE); |
|
88 | + return new TypeGuess(GraphQLType::class, ['graphql_type' => Types::listOf(Types::STRING)], Guess::MEDIUM_CONFIDENCE); |
|
89 | 89 | case Type::TEXT: |
90 | 90 | return new TypeGuess(TextareaType::class, [], Guess::MEDIUM_CONFIDENCE); |
91 | 91 | default: |
@@ -82,7 +82,7 @@ |
||
82 | 82 | * |
83 | 83 | * @return TypeGuess|null |
84 | 84 | */ |
85 | - protected function resolveDoctrineEnumBundleType($class, $property):?TypeGuess |
|
85 | + protected function resolveDoctrineEnumBundleType($class, $property): ?TypeGuess |
|
86 | 86 | { |
87 | 87 | if (!class_exists('\Fresh\DoctrineEnumBundle\DBAL\Types\AbstractEnumType')) { |
88 | 88 | return null; |
@@ -27,9 +27,9 @@ |
||
27 | 27 | public function buildForm(FormBuilderInterface $builder, array $options) |
28 | 28 | { |
29 | 29 | $transformer = new CallbackTransformer( |
30 | - function ($value) { |
|
30 | + function($value) { |
|
31 | 31 | }, |
32 | - function ($value) { |
|
32 | + function($value) { |
|
33 | 33 | } |
34 | 34 | ); |
35 | 35 | $builder->addModelTransformer($transformer); |
@@ -84,8 +84,8 @@ |
||
84 | 84 | |
85 | 85 | $qb = $repo->createQueryBuilder('o', $findBy); |
86 | 86 | $entities = $qb->where($qb->expr()->in($findBy, $searchValues)) |
87 | - ->getQuery() |
|
88 | - ->getResult(); |
|
87 | + ->getQuery() |
|
88 | + ->getResult(); |
|
89 | 89 | |
90 | 90 | foreach ($entities as $searchValue => $entity) { |
91 | 91 | $expectedResultsOrder[md5($type.$searchValue)] = $entity; |