Completed
Push — master ( 71d8db...83e409 )
by Kirill
43:48
created
src/Base/Invocations/Directive/BaseDirectivesContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     public function getDirectives(string $name = null): iterable
41 41
     {
42 42
         foreach ($this->directives as $definitions) {
43
-            foreach ((array)$definitions as $found => $invocation) {
43
+            foreach ((array) $definitions as $found => $invocation) {
44 44
                 if ($name === null || $name === $found) {
45 45
                     yield $found => $invocation;
46 46
                 }
Please login to merge, or discard this patch.
src/Base/Dependent/Argument/BaseArgumentsContainer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function getNumberOfRequiredArguments(): int
73 73
     {
74
-        return (int)\array_reduce($this->arguments, [$this, 'requiredArgumentsCounter'], 0);
74
+        return (int) \array_reduce($this->arguments, [$this, 'requiredArgumentsCounter'], 0);
75 75
     }
76 76
 
77 77
     /**
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     public function getNumberOfOptionalArguments(): int
81 81
     {
82
-        return (int)\array_reduce($this->arguments, [$this, 'optionalArgumentsCounter'], 0);
82
+        return (int) \array_reduce($this->arguments, [$this, 'optionalArgumentsCounter'], 0);
83 83
     }
84 84
 
85 85
     /**
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     private function optionalArgumentsCounter(int $carry, ArgumentDefinition $argument): int
91 91
     {
92
-        return $carry + (int)$argument->hasDefaultValue();
92
+        return $carry + (int) $argument->hasDefaultValue();
93 93
     }
94 94
 
95 95
     /**
@@ -99,6 +99,6 @@  discard block
 block discarded – undo
99 99
      */
100 100
     private function requiredArgumentsCounter(int $carry, ArgumentDefinition $argument): int
101 101
     {
102
-        return $carry + (int)! $argument->hasDefaultValue();
102
+        return $carry + (int) !$argument->hasDefaultValue();
103 103
     }
104 104
 }
Please login to merge, or discard this patch.
src/Base/Definitions/BaseDefinition.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             \get_class($this),
110 110
         ]));
111 111
 
112
-        return (string)$this->name;
112
+        return (string) $this->name;
113 113
     }
114 114
 
115 115
     /**
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function getDescription(): string
119 119
     {
120
-        return (string)$this->description;
120
+        return (string) $this->description;
121 121
     }
122 122
 
123 123
     /**
Please login to merge, or discard this patch.
src/Base/Definitions/BaseDirective.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
                 // 2) Position: FieldType > ArgumentType
106 106
                 //      + Directive Location: INPUT_FIELD_DEFINITION
107 107
                 //
108
-                if ($type instanceof Dependent\ArgumentDefinition && ! $this->allowedForArgument($type)) {
108
+                if ($type instanceof Dependent\ArgumentDefinition && !$this->allowedForArgument($type)) {
109 109
                     continue;
110 110
                 }
111 111
 
Please login to merge, or discard this patch.
src/Base/Definitions/BaseInterface.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     /**
26 26
      * Base type name
27 27
      */
28
-    protected const TYPE_NAME = Type::INTERFACE;
28
+    protected const TYPE_NAME = Type::interface;
29 29
 
30 30
     /**
31 31
      * @return array
Please login to merge, or discard this patch.
src/Base/Definitions/Enum/BaseValue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      */
32 32
     public function getValue(): string
33 33
     {
34
-        return (string)$this->name;
34
+        return (string) $this->name;
35 35
     }
36 36
 
37 37
     /**
Please login to merge, or discard this patch.
src/Support.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      */
106 106
     protected function valueWithType($value): string
107 107
     {
108
-        return \mb_strtolower(\gettype($value)) . ' ' . $this->valueToString($value);
108
+        return \mb_strtolower(\gettype($value)).' '.$this->valueToString($value);
109 109
     }
110 110
 
111 111
     /**
@@ -164,6 +164,6 @@  discard block
 block discarded – undo
164 164
             return $result;
165 165
         }
166 166
 
167
-        return (string)$result;
167
+        return (string) $result;
168 168
     }
169 169
 }
Please login to merge, or discard this patch.
src/Contracts/Type.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     /**#@+
18 18
      * Virtual types group
19 19
      */
20
-    public const DOCUMENT           = 'Document';
20
+    public const DOCUMENT = 'Document';
21 21
     /**#@-*/
22 22
 
23 23
     /**#@+
@@ -26,15 +26,15 @@  discard block
 block discarded – undo
26 26
     public const SCHEMA             = 'Schema';
27 27
 
28 28
     public const OBJECT             = 'Object';
29
-    public const OBJECT_FIELD       = 'Field';      // TODO Rename
30
-    public const OBJECT_ARGUMENT    = 'Argument';   // TODO Rename
29
+    public const OBJECT_FIELD       = 'Field'; // TODO Rename
30
+    public const OBJECT_ARGUMENT    = 'Argument'; // TODO Rename
31 31
 
32 32
     public const INTERFACE          = 'Interface';
33
-    public const INTERFACE_FIELD    = 'Field';      // TODO Rename
34
-    public const INTERFACE_ARGUMENT = 'Argument';   // TODO Rename
33
+    public const INTERFACE_FIELD    = 'Field'; // TODO Rename
34
+    public const INTERFACE_ARGUMENT = 'Argument'; // TODO Rename
35 35
 
36 36
     public const DIRECTIVE          = 'Directive';
37
-    public const DIRECTIVE_ARGUMENT = 'Argument';   // TODO Rename
37
+    public const DIRECTIVE_ARGUMENT = 'Argument'; // TODO Rename
38 38
 
39 39
     public const INPUT              = 'Input';
40 40
     public const INPUT_FIELD        = 'InputField';
@@ -52,6 +52,6 @@  discard block
 block discarded – undo
52 52
     public const INPUT_INVOCATION       = self::INPUT;
53 53
     public const DIRECTIVE_INVOCATION   = self::DIRECTIVE;
54 54
     // Extensions
55
-    public const EXTENSION          = 'Extension';
55
+    public const EXTENSION = 'Extension';
56 56
     /**#@-*/
57 57
 }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     public const OBJECT_FIELD       = 'Field';      // TODO Rename
30 30
     public const OBJECT_ARGUMENT    = 'Argument';   // TODO Rename
31 31
 
32
-    public const INTERFACE          = 'Interface';
32
+    public const interface          = 'Interface';
33 33
     public const INTERFACE_FIELD    = 'Field';      // TODO Rename
34 34
     public const INTERFACE_ARGUMENT = 'Argument';   // TODO Rename
35 35
 
Please login to merge, or discard this patch.
src/polyfill.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 declare(strict_types=1);
9 9
 
10 10
 
11
-\spl_autoload_register(function (string $alias): void {
11
+\spl_autoload_register(function(string $alias): void {
12 12
     $shouldRewrite = \strpos(\trim($alias, '\\'), 'Railt\\Reflection') === 0;
13 13
 
14 14
     if ($shouldRewrite) {
Please login to merge, or discard this patch.