Completed
Push — master ( 607b33...dbc16b )
by Kirill
03:54 queued 01:59
created
src/TypeDefinition/FormatArgument.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Extension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     private function extend(Compiler $compiler, FieldDefinition $field): void
71 71
     {
72
-        (function () use ($field, $compiler): void {
72
+        (function() use ($field, $compiler): void {
73 73
             $this->arguments[DiffArgument::ARGUMENT_NAME] = new DiffArgument($field, $compiler);
74 74
             $this->arguments[FormatArgument::ARGUMENT_NAME] = new FormatArgument($field, $compiler);
75 75
         })->call($field);
Please login to merge, or discard this patch.