@@ -92,6 +92,6 @@  | 
                                                    ||
| 92 | 92 | return static::HUMAN_READABLE;  | 
                                                        
| 93 | 93 | }  | 
                                                        
| 94 | 94 | |
| 95 | - return \constant(Carbon::class . '::' . $value);  | 
                                                        |
| 95 | + return \constant(Carbon::class.'::'.$value);  | 
                                                        |
| 96 | 96 | }  | 
                                                        
| 97 | 97 | }  | 
                                                        
@@ -20,7 +20,7 @@  | 
                                                    ||
| 20 | 20 | * RFC3339 date format.  | 
                                                        
| 21 | 21 | * Example: `2005-08-15T15:52:01+00:00`  | 
                                                        
| 22 | 22 | */  | 
                                                        
| 23 | - public const DEFAULT = 'RFC3339';  | 
                                                        |
| 23 | + public const default = 'RFC3339';  | 
                                                        |
| 24 | 24 | |
| 25 | 25 | /**  | 
                                                        
| 26 | 26 | * Simple Date format.  | 
                                                        
@@ -25,8 +25,8 @@  | 
                                                    ||
| 25 | 25 | public function fromString(string $value): \DateTimeInterface  | 
                                                        
| 26 | 26 |      { | 
                                                        
| 27 | 27 |          try { | 
                                                        
| 28 | -            if ((string)(int)$value === $value) { | 
                                                        |
| 29 | - return Carbon::createFromTimestamp((int)$value);  | 
                                                        |
| 28 | +            if ((string) (int) $value === $value) { | 
                                                        |
| 29 | + return Carbon::createFromTimestamp((int) $value);  | 
                                                        |
| 30 | 30 | }  | 
                                                        
| 31 | 31 | |
| 32 | 32 | return Carbon::parse($value);  | 
                                                        
@@ -39,7 +39,7 @@  | 
                                                    ||
| 39 | 39 | case \is_string($value):  | 
                                                        
| 40 | 40 | return Carbon::parse($value);  | 
                                                        
| 41 | 41 | case \is_int($value) || \is_float($value):  | 
                                                        
| 42 | - return Carbon::createFromTimestamp((int)$value);  | 
                                                        |
| 42 | + return Carbon::createFromTimestamp((int) $value);  | 
                                                        |
| 43 | 43 | }  | 
                                                        
| 44 | 44 | |
| 45 | 45 | $error = 'Response type of field %f should be a DateTime, string or int, but %s given';  | 
                                                        
@@ -45,7 +45,7 @@  | 
                                                    ||
| 45 | 45 | |
| 46 | 46 | $this->parent = $field;  | 
                                                        
| 47 | 47 | |
| 48 | - $this->defaultValue = CarbonFormat::DEFAULT;  | 
                                                        |
| 48 | + $this->defaultValue = CarbonFormat::default;  | 
                                                        |
| 49 | 49 | $this->hasDefaultValue = true;  | 
                                                        
| 50 | 50 | }  | 
                                                        
| 51 | 51 | |
@@ -64,7 +64,7 @@ discard block  | 
                                                    ||
| 64 | 64 | }  | 
                                                        
| 65 | 65 | |
| 66 | 66 | /**  | 
                                                        
| 67 | - * @param TypeDefinition $type  | 
                                                        |
| 67 | + * @param \Railt\Reflection\Contracts\Definitions\TypeDefinition $type  | 
                                                        |
| 68 | 68 | * @return bool  | 
                                                        
| 69 | 69 | */  | 
                                                        
| 70 | 70 | private function isCarbonField(TypeDefinition $type): bool  | 
                                                        
@@ -74,7 +74,7 @@ discard block  | 
                                                    ||
| 74 | 74 | |
| 75 | 75 | /**  | 
                                                        
| 76 | 76 | * @param Compiler $compiler  | 
                                                        
| 77 | - * @param FieldDefinition|FieldBuilder|TypeDefinition $field  | 
                                                        |
| 77 | + * @param \Railt\Reflection\Contracts\Definitions\TypeDefinition $field  | 
                                                        |
| 78 | 78 | */  | 
                                                        
| 79 | 79 | private function extend(Compiler $compiler, FieldDefinition $field): void  | 
                                                        
| 80 | 80 |      { | 
                                                        
@@ -29,7 +29,7 @@ discard block  | 
                                                    ||
| 29 | 29 | /**  | 
                                                        
| 30 | 30 | * @var string Path to graphql schema file  | 
                                                        
| 31 | 31 | */  | 
                                                        
| 32 | - private const GRAPHQL_DATETIME = __DIR__ . '/../resources/datetime.graphqls';  | 
                                                        |
| 32 | + private const GRAPHQL_DATETIME = __DIR__.'/../resources/datetime.graphqls';  | 
                                                        |
| 33 | 33 | |
| 34 | 34 | /**  | 
                                                        
| 35 | 35 | * @param Compiler $compiler  | 
                                                        
@@ -51,7 +51,7 @@ discard block  | 
                                                    ||
| 51 | 51 |      { | 
                                                        
| 52 | 52 | $controller = $this->make(CarbonController::class);  | 
                                                        
| 53 | 53 | |
| 54 | -        $invoke = function (TypeBuilding $event) use ($compiler, $router, $controller): void { | 
                                                        |
| 54 | +        $invoke = function(TypeBuilding $event) use ($compiler, $router, $controller): void { | 
                                                        |
| 55 | 55 |              if ($this->isCarbonField($event->getType())) { | 
                                                        
| 56 | 56 | $this->extend($compiler, $event->getType());  | 
                                                        
| 57 | 57 | |
@@ -78,7 +78,7 @@ discard block  | 
                                                    ||
| 78 | 78 | */  | 
                                                        
| 79 | 79 | private function extend(Compiler $compiler, FieldDefinition $field): void  | 
                                                        
| 80 | 80 |      { | 
                                                        
| 81 | -        (function () use ($field, $compiler): void { | 
                                                        |
| 81 | +        (function() use ($field, $compiler): void { | 
                                                        |
| 82 | 82 | $this->arguments[FormatArgument::ARGUMENT_NAME] = new FormatArgument($field, $compiler);  | 
                                                        
| 83 | 83 | })->call($field);  | 
                                                        
| 84 | 84 | }  |