Test Failed
Push — master ( 8b1ae1...ecd78b )
by Kirill
04:57 queued 02:29
created
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/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.
src/Backend/Context/LocalContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,6 +113,6 @@
 block discarded – undo
113 113
      */
114 114
     public function __toString(): string
115 115
     {
116
-        return (string)$this->context;
116
+        return (string) $this->context;
117 117
     }
118 118
 }
Please login to merge, or discard this patch.
src/Compiler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public function compile(Readable $file): DocumentInterface
101 101
     {
102
-        return $this->store->memoize($file, function (Readable $file): DocumentInterface {
102
+        return $this->store->memoize($file, function(Readable $file): DocumentInterface {
103 103
             return $this->generate($file, $this->ir($file));
104 104
         });
105 105
     }
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function generate(Readable $file, iterable $opcodes): DocumentInterface
116 116
     {
117
-        return $this->wrap(function () use ($file, $opcodes) {
117
+        return $this->wrap(function() use ($file, $opcodes) {
118 118
             return $this->back->run($file, $opcodes);
119 119
         });
120 120
     }
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
      */
150 150
     public function ir(Readable $readable): iterable
151 151
     {
152
-        return $this->wrap(function () use ($readable) {
152
+        return $this->wrap(function() use ($readable) {
153 153
             return $this->front->load($readable);
154 154
         });
155 155
     }
Please login to merge, or discard this patch.
src/Backend/Context/DocumentContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,6 +113,6 @@
 block discarded – undo
113 113
      */
114 114
     public function __toString(): string
115 115
     {
116
-        return (string)$this->context;
116
+        return (string) $this->context;
117 117
     }
118 118
 }
Please login to merge, or discard this patch.
src/Frontend/AST/Value/StringValueNode.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             $result
40 40
         );
41 41
 
42
-        return '(string)' . \sprintf('"%s"', $result);
42
+        return '(string)'.\sprintf('"%s"', $result);
43 43
     }
44 44
 
45 45
     /**
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      */
101 101
     private function renderUtfSequences(string $body): string
102 102
     {
103
-        $callee = function (array $matches): string {
103
+        $callee = function(array $matches): string {
104 104
             [$char, $code] = [$matches[0], $matches[1]];
105 105
 
106 106
             try {
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     {
131 131
         try {
132 132
             if (\function_exists('\\json_decode')) {
133
-                $result = @\json_decode('{"char": "' . $body . '"}')->char;
133
+                $result = @\json_decode('{"char": "'.$body.'"}')->char;
134 134
 
135 135
                 if (\json_last_error() === \JSON_ERROR_NONE) {
136 136
                     $body = $result;
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      */
151 151
     private function renderSpecialCharacters(string $body): string
152 152
     {
153
-        $callee = function (array $matches): string {
153
+        $callee = function(array $matches): string {
154 154
             [$char, $code] = [$matches[0], $matches[1]];
155 155
 
156 156
             switch ($code) {
Please login to merge, or discard this patch.
src/Frontend/AST/Value/BooleanValueNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,6 +29,6 @@
 block discarded – undo
29 29
      */
30 30
     public function toString(): string
31 31
     {
32
-        return '(bool)' . $this->getChild(0)->getValue();
32
+        return '(bool)'.$this->getChild(0)->getValue();
33 33
     }
34 34
 }
Please login to merge, or discard this patch.
src/Frontend/AST/Value/ConstantValueNode.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 toPrimitive(): string
23 23
     {
24
-        return (string)$this->getChild(0)->getValue();
24
+        return (string) $this->getChild(0)->getValue();
25 25
     }
26 26
 
27 27
     /**
@@ -29,6 +29,6 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function toString(): string
31 31
     {
32
-        return '(const)' . $this->toPrimitive();
32
+        return '(const)'.$this->toPrimitive();
33 33
     }
34 34
 }
Please login to merge, or discard this patch.