Test Failed
Push — master ( b7ab7b...94ee03 )
by Kirill
02:59
created
src/Frontend/Builder/Definition/Argument.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,6 +58,6 @@
 block discarded – undo
58 58
      */
59 59
     public function __toString(): string
60 60
     {
61
-        return $this->getName() . ': ' . $this->getHint()->getFullyQualifiedName();
61
+        return $this->getName().': '.$this->getHint()->getFullyQualifiedName();
62 62
     }
63 63
 }
Please login to merge, or discard this patch.
src/Frontend/Builder/TypeDefinitionBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
             yield from $name = $this->getArgumentName($argument);
53 53
             yield from $value = $this->getArgumentValue($argument);
54 54
 
55
-            $definition->addArgument((string)$name->getReturn(), $value->getReturn());
55
+            $definition->addArgument((string) $name->getReturn(), $value->getReturn());
56 56
         }
57 57
 
58 58
         return $definition;
Please login to merge, or discard this patch.
src/Frontend/AST/Value/NumberValueNode.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
                 return $this->parseInt($value->getValue());
53 53
         }
54 54
 
55
-        return (float)$value->getValue();
55
+        return (float) $value->getValue();
56 56
     }
57 57
 
58 58
     /**
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     private function parseExponential(string $value): float
81 81
     {
82
-        return (float)$value;
82
+        return (float) $value;
83 83
     }
84 84
 
85 85
     /**
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     private function parseFloat(string $value): float
90 90
     {
91
-        return (float)$value;
91
+        return (float) $value;
92 92
     }
93 93
 
94 94
     /**
Please login to merge, or discard this patch.
src/Frontend/Matcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,6 +30,6 @@
 block discarded – undo
30 30
      */
31 31
     public static function match(string $lexeme, string $value): bool
32 32
     {
33
-        return (bool)\preg_match(self::pattern($lexeme), $value);
33
+        return (bool) \preg_match(self::pattern($lexeme), $value);
34 34
     }
35 35
 }
Please login to merge, or discard this patch.
src/Frontend/Builder.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -116,13 +116,13 @@
 block discarded – undo
116 116
         }
117 117
 
118 118
 
119
-        echo \str_repeat('=', 60) . "\n";
120
-        echo \sprintf('| %5s | %-48s |', 'ID', 'VARIABLE') . "\n";
121
-        echo \str_repeat('-', 60) . "\n";
119
+        echo \str_repeat('=', 60)."\n";
120
+        echo \sprintf('| %5s | %-48s |', 'ID', 'VARIABLE')."\n";
121
+        echo \str_repeat('-', 60)."\n";
122 122
         foreach ($this->table as $id => $var) {
123
-            echo \sprintf('| %5d | %-48s |', $id, $var) . "\n";
123
+            echo \sprintf('| %5d | %-48s |', $id, $var)."\n";
124 124
         }
125
-        echo \str_repeat('=', 60) . "\n";
125
+        echo \str_repeat('=', 60)."\n";
126 126
     }
127 127
 
128 128
     /**
Please login to merge, or discard this patch.
src/Frontend/Context/ContextVariablesInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,5 +28,5 @@
 block discarded – undo
28 28
      * @param TypeInterface|null $type
29 29
      * @return VarSymbolInterface
30 30
      */
31
-    public function declare(string $var, TypeInterface $type = null): VarSymbolInterface;
31
+    public function declare(string$var,TypeInterface$type=null): VarSymbolInterface;
32 32
 }
Please login to merge, or discard this patch.
src/Frontend/Context/Context.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
      * @param TypeInterface|null $type
129 129
      * @return VarSymbolInterface
130 130
      */
131
-    public function declare(string $var, TypeInterface $type = null): VarSymbolInterface
131
+    public function declare(string$var,TypeInterface$type=null): VarSymbolInterface
132 132
     {
133 133
         $record = new VarSymbol($var, $type);
134 134
 
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 use Railt\SDL\Exception\CompilerException;
16 16
 
17 17
 
18
-if (! \function_exists('sdl')) {
18
+if (!\function_exists('sdl')) {
19 19
     /**
20 20
      * @param string $fileOrSources
21 21
      * @param bool $filename
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     }
32 32
 }
33 33
 
34
-if (! \function_exists('object_to_string')) {
34
+if (!\function_exists('object_to_string')) {
35 35
     /**
36 36
      * @param object $object
37 37
      * @return string
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             : \spl_object_hash($object);
46 46
 
47 47
         if (is_renderable($object)) {
48
-            return \sprintf('%s(%s)#%s', \get_class($object), (string)$object, $hash);
48
+            return \sprintf('%s(%s)#%s', \get_class($object), (string) $object, $hash);
49 49
         }
50 50
 
51 51
         return \sprintf('%s#%s', \get_class($object), $hash);
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 }
54 54
 
55 55
 
56
-if (! \function_exists('is_renderable')) {
56
+if (!\function_exists('is_renderable')) {
57 57
     /**
58 58
      * @param mixed $value
59 59
      * @return bool
Please login to merge, or discard this patch.
src/Naming/SimpleNamingStrategy.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     protected function format(TypeNameInterface $name, iterable $arguments): string
35 35
     {
36
-        return $this->formatName($name) . $this->formatArguments($arguments);
36
+        return $this->formatName($name).$this->formatArguments($arguments);
37 37
     }
38 38
 
39 39
     /**
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         }
50 50
 
51 51
         if (\count($result)) {
52
-            return 'Of' . \implode('And', $result);
52
+            return 'Of'.\implode('And', $result);
53 53
         }
54 54
 
55 55
         return '';
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         $value = $argument->getValue();
65 65
         $suffix = $value instanceof TypeInvocation ? $this->formatType($value) : $this->formatArgument($value);
66 66
 
67
-        return \ucfirst($argument->getName()) . $suffix;
67
+        return \ucfirst($argument->getName()).$suffix;
68 68
     }
69 69
 
70 70
     /**
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     protected function formatType(TypeInvocation $type): string
75 75
     {
76
-        return $this->formatName($type->getTypeName()) . $this->formatArguments($type->getArguments());
76
+        return $this->formatName($type->getTypeName()).$this->formatArguments($type->getArguments());
77 77
     }
78 78
 
79 79
     /**
Please login to merge, or discard this patch.