@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of graphql-youshido project. |
| 15 | 15 | * |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | return; |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - return (float) $value; |
|
| 35 | + return (float)$value; |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | public function isValidValue($value) |
@@ -42,8 +42,8 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | public function getDescription() |
| 44 | 44 | { |
| 45 | - return 'The `Float` scalar type represents signed double-precision fractional ' . |
|
| 46 | - 'values as specified by ' . |
|
| 45 | + return 'The `Float` scalar type represents signed double-precision fractional '. |
|
| 46 | + 'values as specified by '. |
|
| 47 | 47 | '[IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).'; |
| 48 | 48 | } |
| 49 | 49 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of graphql-youshido project. |
| 15 | 15 | * |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | return false; |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | - return (bool) $value; |
|
| 39 | + return (bool)$value; |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | public function isValidValue($value) |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of graphql-youshido project. |
| 15 | 15 | * |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | if (\is_int($value)) { |
| 36 | 36 | return $value; |
| 37 | 37 | } |
| 38 | - $value = (int) $value; |
|
| 38 | + $value = (int)$value; |
|
| 39 | 39 | |
| 40 | 40 | return 0 !== $value ? $value : null; |
| 41 | 41 | } |
@@ -47,9 +47,9 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | public function getDescription() |
| 49 | 49 | { |
| 50 | - return 'The `Int` scalar type represents non-fractional signed whole numeric ' . |
|
| 51 | - 'values. Int can represent values between -(2^53 - 1) and 2^53 - 1 since ' . |
|
| 52 | - 'represented in JSON as double-precision floating point numbers specified' . |
|
| 50 | + return 'The `Int` scalar type represents non-fractional signed whole numeric '. |
|
| 51 | + 'values. Int can represent values between -(2^53 - 1) and 2^53 - 1 since '. |
|
| 52 | + 'represented in JSON as double-precision floating point numbers specified'. |
|
| 53 | 53 | 'by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).'; |
| 54 | 54 | } |
| 55 | 55 | } |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of graphql-youshido project. |
| 15 | 15 | * |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of GraphQL project. |
| 15 | 15 | * |
@@ -32,15 +32,15 @@ discard block |
||
| 32 | 32 | return; |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - return (string) $value; |
|
| 35 | + return (string)$value; |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | public function getDescription() |
| 39 | 39 | { |
| 40 | - return 'The `ID` scalar type represents a unique identifier, often used to ' . |
|
| 41 | - 'refetch an object or as key for a cache. The ID type appears in a JSON ' . |
|
| 42 | - 'response as a String; however, it is not intended to be human-readable. ' . |
|
| 43 | - 'When expected as an input type, any string (such as `"4"`) or integer ' . |
|
| 40 | + return 'The `ID` scalar type represents a unique identifier, often used to '. |
|
| 41 | + 'refetch an object or as key for a cache. The ID type appears in a JSON '. |
|
| 42 | + 'response as a String; however, it is not intended to be human-readable. '. |
|
| 43 | + 'When expected as an input type, any string (such as `"4"`) or integer '. |
|
| 44 | 44 | '(such as `4`) input value will be accepted as an ID.'; |
| 45 | 45 | } |
| 46 | 46 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of graphql-youshido project. |
| 15 | 15 | * |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | return ''; |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - return (string) $value; |
|
| 47 | + return (string)$value; |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | public function isValidValue($value) |
@@ -54,8 +54,8 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | public function getDescription() |
| 56 | 56 | { |
| 57 | - return 'The `String` scalar type represents textual data, represented as UTF-8 ' . |
|
| 58 | - 'character sequences. The String type is most often used by GraphQL to ' . |
|
| 57 | + return 'The `String` scalar type represents textual data, represented as UTF-8 '. |
|
| 58 | + 'character sequences. The String type is most often used by GraphQL to '. |
|
| 59 | 59 | 'represent free-form human-readable text.'; |
| 60 | 60 | } |
| 61 | 61 | } |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of GraphQL project. |
| 15 | 15 | * |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of GraphQL project. |
| 15 | 15 | * |
@@ -43,17 +43,17 @@ discard block |
||
| 43 | 43 | if (empty(self::$objectsHash[$type])) { |
| 44 | 44 | $name = \ucfirst($type); |
| 45 | 45 | |
| 46 | - $name = 'Datetime' === $name ? 'DateTime' : $name; |
|
| 46 | + $name = 'Datetime' === $name ? 'DateTime' : $name; |
|
| 47 | 47 | $name = 'Datetimetz' === $name ? 'DateTimeTz' : $name; |
| 48 | 48 | |
| 49 | - $className = 'Youshido\GraphQL\Type\Scalar\\' . $name . 'Type'; |
|
| 49 | + $className = 'Youshido\GraphQL\Type\Scalar\\'.$name.'Type'; |
|
| 50 | 50 | self::$objectsHash[$type] = new $className(); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | return self::$objectsHash[$type]; |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - throw new ConfigurationException('Configuration problem with type ' . $type); |
|
| 56 | + throw new ConfigurationException('Configuration problem with type '.$type); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of graphql-youshido project. |
| 15 | 15 | * |