@@ -23,10 +23,10 @@ |
||
23 | 23 | public function __construct($config = []) |
24 | 24 | { |
25 | 25 | if (!array_key_exists('query', $config)) { |
26 | - $config['query'] = new InternalSchemaQueryObject(['name' => $this->getName() . 'Query']); |
|
26 | + $config['query'] = new InternalSchemaQueryObject(['name' => $this->getName().'Query']); |
|
27 | 27 | } |
28 | 28 | if (!array_key_exists('mutation', $config)) { |
29 | - $config['mutation'] = new InternalSchemaMutationObject(['name' => $this->getName() . 'Mutation']); |
|
29 | + $config['mutation'] = new InternalSchemaMutationObject(['name' => $this->getName().'Mutation']); |
|
30 | 30 | } |
31 | 31 | if (!array_key_exists('types', $config)) { |
32 | 32 | $config['types'] = []; |
@@ -49,7 +49,7 @@ |
||
49 | 49 | return $this->getConfig()->get($propertyName); |
50 | 50 | } |
51 | 51 | |
52 | - throw new \Exception('Call to undefined method ' . $method); |
|
52 | + throw new \Exception('Call to undefined method '.$method); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | } |
@@ -129,7 +129,7 @@ |
||
129 | 129 | if (is_object($data)) { |
130 | 130 | $getter = $path; |
131 | 131 | if (substr($path, 0, 2) != 'is') { |
132 | - $getter = 'get' . self::classify($path); |
|
132 | + $getter = 'get'.self::classify($path); |
|
133 | 133 | } |
134 | 134 | |
135 | 135 | return is_callable([$data, $getter]) ? $data->$getter() : (isset($data->$path) ? $data->$path : null); |
@@ -34,13 +34,13 @@ |
||
34 | 34 | $name = $name == 'Datetime' ? 'DateTime' : $name; |
35 | 35 | $name = $name == 'Datetimetz' ? 'DateTimeTz' : $name; |
36 | 36 | |
37 | - $className = 'Youshido\GraphQL\Type\Scalar\\' . $name . 'Type'; |
|
37 | + $className = 'Youshido\GraphQL\Type\Scalar\\'.$name.'Type'; |
|
38 | 38 | self::$objectsHash[$type] = new $className(); |
39 | 39 | } |
40 | 40 | |
41 | 41 | return self::$objectsHash[$type]; |
42 | 42 | } else { |
43 | - throw new ConfigurationException('Configuration problem with type ' . $type); |
|
43 | + throw new ConfigurationException('Configuration problem with type '.$type); |
|
44 | 44 | } |
45 | 45 | } |
46 | 46 |
@@ -62,7 +62,7 @@ |
||
62 | 62 | public function getValue() |
63 | 63 | { |
64 | 64 | if (null === $this->value) { |
65 | - throw new \LogicException('Value is not set for variable "' . $this->name . '"'); |
|
65 | + throw new \LogicException('Value is not set for variable "'.$this->name.'"'); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | return $this->value; |
@@ -53,7 +53,7 @@ |
||
53 | 53 | public function assertValidConfig(AbstractConfig $config) |
54 | 54 | { |
55 | 55 | if (!$this->isValidConfig($config)) { |
56 | - throw new ConfigurationException('Config is not valid for ' . ($config->getContextObject() ? get_class($config->getContextObject()) : null) . "\n" . implode("\n", $this->getErrorsArray(false))); |
|
56 | + throw new ConfigurationException('Config is not valid for '.($config->getContextObject() ? get_class($config->getContextObject()) : null)."\n".implode("\n", $this->getErrorsArray(false))); |
|
57 | 57 | } |
58 | 58 | } |
59 | 59 |
@@ -33,7 +33,7 @@ |
||
33 | 33 | |
34 | 34 | public function assertValidArguments(FieldInterface $field, AstFieldInterface $query, Request $request) |
35 | 35 | { |
36 | - $requiredArguments = array_filter($field->getArguments(), function (InputField $argument) { |
|
36 | + $requiredArguments = array_filter($field->getArguments(), function(InputField $argument) { |
|
37 | 37 | return $argument->getType()->getKind() === TypeMap::KIND_NON_NULL; |
38 | 38 | }); |
39 | 39 |
@@ -22,7 +22,7 @@ |
||
22 | 22 | |
23 | 23 | self::assertTrue(isset($res['data']['items'])); |
24 | 24 | |
25 | - foreach($res['data']['items'] as $item) { |
|
25 | + foreach ($res['data']['items'] as $item) { |
|
26 | 26 | self::assertTrue(isset($item['custom']['value'])); |
27 | 27 | self::assertEquals(self::BUG_NOT_EXISTS_VALUE, $item['custom']['value']); |
28 | 28 | } |
@@ -52,7 +52,7 @@ |
||
52 | 52 | 'args' => [ |
53 | 53 | 'example' => new StringType() |
54 | 54 | ], |
55 | - 'resolve' => function () { |
|
55 | + 'resolve' => function() { |
|
56 | 56 | return [ |
57 | 57 | ['id' => 1], |
58 | 58 | ['id' => 2], |