@@ -38,13 +38,13 @@ discard block |
||
38 | 38 | [ |
39 | 39 | 'name' => $definition->getName(), |
40 | 40 | 'description' => $definition->getDescription(), |
41 | - 'fields' => function () { |
|
41 | + 'fields' => function() { |
|
42 | 42 | return $this->resolveFields(); |
43 | 43 | }, |
44 | - 'interfaces' => function () { |
|
44 | + 'interfaces' => function() { |
|
45 | 45 | return $this->resolveInterfaces(); |
46 | 46 | }, |
47 | - 'resolveField' => function ($root, array $args, $context, ResolveInfo $resolveInfo) { |
|
47 | + 'resolveField' => function($root, array $args, $context, ResolveInfo $resolveInfo) { |
|
48 | 48 | $resolver = new ObjectFieldResolver( |
49 | 49 | $this->container, |
50 | 50 | $this->endpoint, |
@@ -55,7 +55,7 @@ discard block |
||
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 | ] |
@@ -259,7 +259,7 @@ |
||
259 | 259 | |
260 | 260 | /** @var Response $response */ |
261 | 261 | $response = static::getClient()->getResponse(); |
262 | - $bg = $response->getStatusCode() >= 400 ? 41: 42; |
|
262 | + $bg = $response->getStatusCode() >= 400 ? 41 : 42; |
|
263 | 263 | print_r("\033[{$bg}m-------------------- RESPONSE ----------------------\n\n\033[0m"); |
264 | 264 | print_r(sprintf("STATUS: [%s] %s \n", $response->getStatusCode(), Response::$statusTexts[$response->getStatusCode()] ?? 'Unknown Status')); |
265 | 265 | print_r(sprintf("TIME: %s ms \n\n", self::$lastQueryExecutionTime)); |
@@ -38,7 +38,7 @@ |
||
38 | 38 | */ |
39 | 39 | public function __construct(ServiceProcessor $processor = null) |
40 | 40 | { |
41 | - $this->processor = $processor ? : new ServiceProcessor(); |
|
41 | + $this->processor = $processor ?: new ServiceProcessor(); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | public function getConfigKey() |
@@ -63,7 +63,7 @@ |
||
63 | 63 | //parse |
64 | 64 | array_walk_recursive( |
65 | 65 | $parsedValue, |
66 | - function (&$value) use ($definitionCall, $argumentIndex) { |
|
66 | + function(&$value) use ($definitionCall, $argumentIndex) { |
|
67 | 67 | foreach ($this->transformers as $transformer) { |
68 | 68 | if ($transformer->supportsDefinitionAndArgument($definitionCall, $argumentIndex, $value)) { |
69 | 69 | $value = $transformer->transformArgument($definitionCall, $argumentIndex, $value); |
@@ -30,15 +30,15 @@ |
||
30 | 30 | if (preg_match('/search\(/', $expression)) { |
31 | 31 | $el->register( |
32 | 32 | 'search', |
33 | - function ($expression, $data) { |
|
33 | + function($expression, $data) { |
|
34 | 34 | return sprintf('$search(%s, %s)', $expression, $data); |
35 | 35 | }, |
36 | - function (array $variables, $expression, $data) { |
|
36 | + function(array $variables, $expression, $data) { |
|
37 | 37 | return $variables['search']($expression, $data); |
38 | 38 | } |
39 | 39 | ); |
40 | 40 | |
41 | - $values['search'] = function ($expression, $data) { |
|
41 | + $values['search'] = function($expression, $data) { |
|
42 | 42 | return search($expression, $data); |
43 | 43 | }; |
44 | 44 | } |
@@ -224,7 +224,7 @@ |
||
224 | 224 | public function request($method, $uri, array $parameters = [], array $files = [], array $server = [], $content = null, $changeHistory = true) |
225 | 225 | { |
226 | 226 | set_error_handler( |
227 | - function ($level, $message, $errFile, $errLine) { |
|
227 | + function($level, $message, $errFile, $errLine) { |
|
228 | 228 | if ($this->deprecationAdviser) { |
229 | 229 | $this->deprecationAdviser->addWarning($message, $errFile, $errLine); |
230 | 230 | } |
@@ -55,7 +55,7 @@ |
||
55 | 55 | if (!empty($this->warnings)) { |
56 | 56 | uasort( |
57 | 57 | $this->warnings, |
58 | - function ($a, $b) { |
|
58 | + function($a, $b) { |
|
59 | 59 | if (count($a) === count($b)) { |
60 | 60 | return 0; |
61 | 61 | } |
@@ -68,7 +68,7 @@ |
||
68 | 68 | } |
69 | 69 | $this->definitionVisited[$key] = true; |
70 | 70 | |
71 | - $type = $endpoint->hasType($definition->getType()) ? $endpoint->getType($definition->getType()): null; |
|
71 | + $type = $endpoint->hasType($definition->getType()) ? $endpoint->getType($definition->getType()) : null; |
|
72 | 72 | |
73 | 73 | if (($roles = $definition->getRoles()) && !$this->authorizationChecker->isGranted($roles)) { |
74 | 74 | if ($parent) { |