Test Failed
Push — master ( 6bac61...6350a6 )
by Kirill
03:02
created
src/Frontend/AST/Value/NumberValueNode.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      */
24 24
     public function toString(): string
25 25
     {
26
-        return (string)$this->toPrimitive();
26
+        return (string) $this->toPrimitive();
27 27
     }
28 28
 
29 29
     /**
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
                 return $this->parseInt($value->getValue());
60 60
         }
61 61
 
62
-        return (float)$value->getValue();
62
+        return (float) $value->getValue();
63 63
     }
64 64
 
65 65
     /**
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     private function parseExponential(string $value): float
115 115
     {
116
-        return (float)$value;
116
+        return (float) $value;
117 117
     }
118 118
 
119 119
     /**
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      */
132 132
     private function parseFloat(string $value): float
133 133
     {
134
-        return (float)$value;
134
+        return (float) $value;
135 135
     }
136 136
 
137 137
     /**
Please login to merge, or discard this patch.
src/Frontend/AST/Value/InputValueNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         $result = [];
28 28
 
29 29
         foreach ($this->getValues() as $key => $value) {
30
-            $result[] = $key->getValue() . ': ' . $value->toString();
30
+            $result[] = $key->getValue().': '.$value->toString();
31 31
         }
32 32
 
33 33
         return \sprintf('{%s}', \implode(', ', $result));
Please login to merge, or discard this patch.
src/Frontend/AST/Value/ConstantValueNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function toPrimitive(): string
23 23
     {
24
-        return (string)$this->getChild(0)->getValue();
24
+        return (string) $this->getChild(0)->getValue();
25 25
     }
26 26
 
27 27
     /**
Please login to merge, or discard this patch.
src/Frontend/AST/Value/StringValueNode.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     private function renderUtfSequences(string $body): string
95 95
     {
96
-        $callee = function (array $matches): string {
96
+        $callee = function(array $matches): string {
97 97
             [$char, $code] = [$matches[0], $matches[1]];
98 98
 
99 99
             try {
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     {
124 124
         try {
125 125
             if (\function_exists('\\json_decode')) {
126
-                $result = @\json_decode('{"char": "' . $body . '"}')->char;
126
+                $result = @\json_decode('{"char": "'.$body.'"}')->char;
127 127
 
128 128
                 if (\json_last_error() === \JSON_ERROR_NONE) {
129 129
                     $body = $result;
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      */
144 144
     private function renderSpecialCharacters(string $body): string
145 145
     {
146
-        $callee = function (array $matches): string {
146
+        $callee = function(array $matches): string {
147 147
             [$char, $code] = [$matches[0], $matches[1]];
148 148
 
149 149
             switch ($code) {
Please login to merge, or discard this patch.
src/Frontend/AST/Value/ListValueNode.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
     public function toString(): string
23 23
     {
24
-        $values = \array_map(function (ValueInterface $value) {
24
+        $values = \array_map(function(ValueInterface $value) {
25 25
             return $value->toString();
26 26
         }, \iterator_to_array($this->getValues()));
27 27
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function toPrimitive(): iterable
35 35
     {
36
-        return \array_map(function (ValueInterface $value) {
36
+        return \array_map(function(ValueInterface $value) {
37 37
             return $value->toPrimitive();
38 38
         }, \iterator_to_array($this->getValues()));
39 39
     }
Please login to merge, or discard this patch.
src/Frontend/AST/Invocation/ArgumentInvocationNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,6 +27,6 @@
 block discarded – undo
27 27
      */
28 28
     public function getValue(): ValueInterface
29 29
     {
30
-        throw new \LogicException(__METHOD__ . ' not implemented yet');
30
+        throw new \LogicException(__METHOD__.' not implemented yet');
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
src/Frontend/IR/Opcode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,6 +125,6 @@
 block discarded – undo
125 125
      */
126 126
     public function __toString(): string
127 127
     {
128
-        return $this->operation . ' ' . \implode(', ', $this->operands);
128
+        return $this->operation.' '.\implode(', ', $this->operands);
129 129
     }
130 130
 }
Please login to merge, or discard this patch.
src/Frontend/IR/Value/AbstractValue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
     public function __toString(): string
128 128
     {
129 129
         if ($this->representation === null) {
130
-            return '? of ' . $this->getType();
130
+            return '? of '.$this->getType();
131 131
         }
132 132
 
133 133
         return $this->representation;
Please login to merge, or discard this patch.
src/Frontend/SystemManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
 
116 116
             switch (true) {
117 117
                 case \is_callable($value):
118
-                    $result->send($this->deferred((int)$key, $value));
118
+                    $result->send($this->deferred((int) $key, $value));
119 119
                     break;
120 120
 
121 121
                 case $value instanceof Prototype:
Please login to merge, or discard this patch.