Completed
Push — master ( df6c68...31072e )
by Kirill
84:29 queued 38:54
created
src/SDL/Reflection/Validation/Inheritance.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
      */
46 46
     protected function getDefaultMatcher(): \Closure
47 47
     {
48
-        return function (Inheritance\InheritanceValidator $validator, TypeDefinition $a, TypeDefinition $b): bool {
48
+        return function(Inheritance\InheritanceValidator $validator, TypeDefinition $a, TypeDefinition $b): bool {
49 49
             return $validator->match($a, $b);
50 50
         };
51 51
     }
Please login to merge, or discard this patch.
src/SDL/Reflection/Validation/Definitions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     protected function getDefaultMatcher(): \Closure
37 37
     {
38
-        return function (Definitions\DefinitionValidator $validator, Definition $definition): bool {
38
+        return function(Definitions\DefinitionValidator $validator, Definition $definition): bool {
39 39
             return $validator->match($definition);
40 40
         };
41 41
     }
Please login to merge, or discard this patch.
src/SDL/Reflection/Builder/Invocations/ValueBuilder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     private function toFloat(LeafInterface $ast): float
125 125
     {
126
-        return (float)$ast->getValue();
126
+        return (float) $ast->getValue();
127 127
     }
128 128
 
129 129
     /**
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      */
133 133
     private function toInt(LeafInterface $ast): int
134 134
     {
135
-        return (int)$ast->getValue();
135
+        return (int) $ast->getValue();
136 136
     }
137 137
 
138 138
     /**
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
                 return \substr($ast->getValue(), 3, -3);
169 169
         }
170 170
 
171
-        return (string)$ast->getValue();
171
+        return (string) $ast->getValue();
172 172
     }
173 173
 
174 174
     /**
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
         // TODO Probably may be escaped by backslash like "\\u0000"
202 202
         $pattern = '/\\\\u([0-9a-fA-F]{4})/';
203 203
 
204
-        $callee = function (array $matches): string {
204
+        $callee = function(array $matches): string {
205 205
             [$char, $code] = [$matches[0], $matches[1]];
206 206
 
207 207
             try {
Please login to merge, or discard this patch.
src/SDL/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/SDL/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/SDL/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/SDL/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/SDL/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/SDL/Base/Behavior/BaseDeprecations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,6 +35,6 @@
 block discarded – undo
35 35
      */
36 36
     public function getDeprecationReason(): string
37 37
     {
38
-        return (string)$this->deprecationReason;
38
+        return (string) $this->deprecationReason;
39 39
     }
40 40
 }
Please login to merge, or discard this patch.