Test Failed
Push — master ( 33bfdc...47f867 )
by Kirill
02:32
created
src/Frontend/Builder/Definition/ObjectDefinitionBuilder.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
         /** @var DefinitionInterface $definition */
46 46
         $definition = yield $rule->first('> #TypeDefinition');
47 47
 
48
-        yield new NamedDeferred($definition, $ctx, function (ContextInterface $local) use ($definition, $rule) {
48
+        yield new NamedDeferred($definition, $ctx, function(ContextInterface $local) use ($definition, $rule) {
49 49
             $struct = new ObjectDefinitionValueObject();
50 50
 
51 51
             $struct->type = Type::object($definition->getName()->getFullyQualifiedName());
Please login to merge, or discard this patch.
src/Frontend/Map.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -111,28 +111,28 @@
 block discarded – undo
111 111
 
112 112
             case \is_object($value):
113 113
                 if (\method_exists($value, '__toString')) {
114
-                    return 'o:' . $value;
114
+                    return 'o:'.$value;
115 115
                 }
116 116
 
117
-                return 'h:' . \spl_object_hash($value);
117
+                return 'h:'.\spl_object_hash($value);
118 118
 
119 119
             case \is_numeric($value):
120
-                return 'n:' . (int)$value;
120
+                return 'n:'.(int) $value;
121 121
 
122 122
             case \is_bool($value):
123
-                return 'b:' . (int)$value;
123
+                return 'b:'.(int) $value;
124 124
 
125 125
             case \is_string($value):
126
-                return 's:' . $value;
126
+                return 's:'.$value;
127 127
 
128 128
             case \is_resource($value):
129
-                return 'r:' . $value;
129
+                return 'r:'.$value;
130 130
 
131 131
             case \is_array($value):
132
-                return 'a:' . \md5(\serialize($value));
132
+                return 'a:'.\md5(\serialize($value));
133 133
 
134 134
             default:
135
-                return 'v:' . \gettype($value) . ':' . \serialize($value);
135
+                return 'v:'.\gettype($value).':'.\serialize($value);
136 136
         }
137 137
     }
138 138
 
Please login to merge, or discard this patch.
src/Console/SDLGrammarCompileCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     /**
22 22
      * @var string
23 23
      */
24
-    private const SCHEMA_SDL_GRAMMAR = __DIR__ . '/../../resources/sdl/grammar.pp2';
24
+    private const SCHEMA_SDL_GRAMMAR = __DIR__.'/../../resources/sdl/grammar.pp2';
25 25
 
26 26
     /**
27 27
      * @var string
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         Compiler::load(File::fromPathname(self::SCHEMA_SDL_GRAMMAR))
44 44
             ->setClassName('BaseParser')
45 45
             ->setNamespace('Railt\\SDL\\Frontend')
46
-            ->saveTo(__DIR__ . '/../Frontend');
46
+            ->saveTo(__DIR__.'/../Frontend');
47 47
 
48 48
         $this->info('OK');
49 49
     }
Please login to merge, or discard this patch.
src/Exception/CompilerException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      */
56 56
     public function throwsIn(Readable $file, int $offsetOrLine = 0, int $column = null): ExternalExceptionInterface
57 57
     {
58
-        if (! $this->defined) {
58
+        if (!$this->defined) {
59 59
             $this->defined = true;
60 60
 
61 61
             return parent::throwsIn($file, $offsetOrLine, $column);
Please login to merge, or discard this patch.
src/IR/Type/TypeInterface.php 1 patch
Upper-Lower-Casing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     /**
33 33
      * @var string
34 34
      */
35
-    public const INTERFACE = 'Interface';
35
+    public const interface = 'Interface';
36 36
 
37 37
     /**
38 38
      * @var string
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     /**
88 88
      * @var string
89 89
      */
90
-    public const LIST = 'List';
90
+    public const list = 'List';
91 91
 
92 92
     /**
93 93
      * @var string
@@ -132,12 +132,12 @@  discard block
 block discarded – undo
132 132
     /**
133 133
      * @var string
134 134
      */
135
-    public const NULL = 'Null';
135
+    public const null = 'Null';
136 136
 
137 137
     /**
138 138
      * @var string
139 139
      */
140
-    public const CONST = 'Const';
140
+    public const const = 'Const';
141 141
 
142 142
     /**
143 143
      * @var string
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         self::SCALAR,
152 152
         self::OBJECT,
153 153
         self::DIRECTIVE,
154
-        self::INTERFACE,
154
+        self::interface,
155 155
         self::UNION,
156 156
         self::ENUM,
157 157
         self::INPUT_OBJECT,
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      */
176 176
     public const WRAPPING_TYPES = [
177 177
         self::NON_NULL,
178
-        self::LIST,
178
+        self::list,
179 179
     ];
180 180
 
181 181
     /**
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
         self::INPUT_OBJECT,
189 189
         self::INPUT_FIELD,
190 190
         self::NON_NULL,
191
-        self::LIST,
191
+        self::list,
192 192
         self::ANY,
193 193
     ];
194 194
 
@@ -198,11 +198,11 @@  discard block
 block discarded – undo
198 198
     public const ALLOWS_TO_OUTPUT = [
199 199
         self::SCALAR,
200 200
         self::OBJECT,
201
-        self::INTERFACE,
201
+        self::interface,
202 202
         self::UNION,
203 203
         self::ENUM,
204 204
         self::NON_NULL,
205
-        self::LIST,
205
+        self::list,
206 206
         self::ANY,
207 207
     ];
208 208
 
@@ -216,8 +216,8 @@  discard block
 block discarded – undo
216 216
         self::FLOAT,
217 217
         self::ID,
218 218
         self::DATE_TIME,
219
-        self::NULL,
220
-        self::CONST,
219
+        self::null,
220
+        self::const,
221 221
     ];
222 222
 
223 223
     /**
Please login to merge, or discard this patch.
src/IR/Type/InternalTypes/RuntimeTypes.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@
 block discarded – undo
37 37
             self::FLOAT     => $float = self::createInternalType(self::FLOAT, $string),
38 38
             self::INT       => $int = self::createInternalType(self::INT, $float),
39 39
             self::BOOLEAN   => $bool = self::createInternalType(self::BOOLEAN, $string),
40
-            self::NULL      => $null = self::createInternalType(self::NULL, Type::scalar()),
40
+            self::null      => $null = self::createInternalType(self::null, Type::scalar()),
41 41
             self::ID        => $id = self::createInternalType(self::ID, $string),
42 42
             self::DATE_TIME => $date = self::createInternalType(self::DATE_TIME, $string),
43
-            self::CONST     => $const = self::createInternalType(self::CONST, $string),
43
+            self::const     => $const = self::createInternalType(self::const, $string),
44 44
             self::TYPE      => $type = self::createInternalType(self::TYPE, Type::any()),
45 45
         ];
46 46
     }
Please login to merge, or discard this patch.
src/IR/Type/TypeConstructors/RuntimeTypeConstructors.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public static function null(): TypeInterface
71 71
     {
72
-        return static::new(static::NULL);
72
+        return static::new(static::null);
73 73
     }
74 74
 
75 75
     /**
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public static function const(): TypeInterface
79 79
     {
80
-        return static::new(static::CONST);
80
+        return static::new(static::const);
81 81
     }
82 82
 
83 83
     /**
Please login to merge, or discard this patch.
src/IR/ValueObject.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
                 case $value instanceof \JsonSerializable:
132 132
                     break;
133 133
                 case \is_object($value) && \method_exists($value, '__toString'):
134
-                    $value = (string)$value;
134
+                    $value = (string) $value;
135 135
             }
136 136
 
137 137
             $result[$key] = $value;
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      */
165 165
     public function offsetExists($offset): bool
166 166
     {
167
-        return $this->has((string)$offset);
167
+        return $this->has((string) $offset);
168 168
     }
169 169
 
170 170
     /**
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      */
174 174
     public function offsetGet($offset)
175 175
     {
176
-        return $this->get((string)$offset);
176
+        return $this->get((string) $offset);
177 177
     }
178 178
 
179 179
     /**
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
             $offset = \count($this->attributes);
187 187
         }
188 188
 
189
-        $this->set((string)$offset, $value);
189
+        $this->set((string) $offset, $value);
190 190
     }
191 191
 
192 192
     /**
@@ -194,6 +194,6 @@  discard block
 block discarded – undo
194 194
      */
195 195
     public function offsetUnset($offset): void
196 196
     {
197
-        $this->delete((string)$offset);
197
+        $this->delete((string) $offset);
198 198
     }
199 199
 }
Please login to merge, or discard this patch.