Test Failed
Push — master ( ecd78b...d05c81 )
by Kirill
02:43
created
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/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/State/OpenState.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         /** @var Readable $file */
31 31
         $file = $opcode->getOperand(0);
32 32
 
33
-        if (! $file instanceof Readable) {
33
+        if (!$file instanceof Readable) {
34 34
             $error = 'First operand of (#%d) %s should be instance of %s';
35 35
             throw new VmException($opcode, $error, $opcode->getId(), $opcode->getName(), Readable::class);
36 36
         }
Please login to merge, or discard this patch.
src/Backend/Vm.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@
 block discarded – undo
55 55
          */
56 56
         foreach ($runtime->execute($opcodes) as $opcode => $result) {
57 57
             if ($this->logger) {
58
-                $value = \get_class($result) . '#' . \spl_object_hash($result);
59
-                $message = \sprintf('%4s = %s', '#' . $opcode->getId(), $value);
58
+                $value = \get_class($result).'#'.\spl_object_hash($result);
59
+                $message = \sprintf('%4s = %s', '#'.$opcode->getId(), $value);
60 60
 
61 61
                 $this->logger->debug($message);
62 62
             }
Please login to merge, or discard this patch.
src/Frontend/Analyzer/PrioritizeAnalyzer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     {
55 55
         $queue = $this->priorities[$index] ?? null;
56 56
 
57
-        if (! $queue) {
57
+        if (!$queue) {
58 58
             $this->priorities[$index] = new \SplQueue();
59 59
         }
60 60
 
Please login to merge, or discard this patch.
src/Frontend/AST/Invocation/ConstantValueNode.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
         /** @var LeafInterface $token */
28 28
         $token = $this->getChild(0);
29 29
 
30
-        return new ConstantValue((string)$token->getValue(), $this->getOffset());
30
+        return new ConstantValue((string) $token->getValue(), $this->getOffset());
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
src/Frontend/AST/Invocation/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/Invocation/NumberValueNode.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
             return new IntValue($value, $this->getOffset());
33 33
         }
34 34
 
35
-        return new FloatValue((float)$value, $this->getOffset());
35
+        return new FloatValue((float) $value, $this->getOffset());
36 36
     }
37 37
 
38 38
     /**
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
                 return $this->parseInt($value->getValue());
61 61
         }
62 62
 
63
-        return (float)$value->getValue();
63
+        return (float) $value->getValue();
64 64
     }
65 65
 
66 66
     /**
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     private function parseExponential(string $value): float
116 116
     {
117
-        return (float)$value;
117
+        return (float) $value;
118 118
     }
119 119
 
120 120
     /**
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      */
133 133
     private function parseFloat(string $value): float
134 134
     {
135
-        return (float)$value;
135
+        return (float) $value;
136 136
     }
137 137
 
138 138
     /**
Please login to merge, or discard this patch.
src/Frontend/Frontend.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      */
47 47
     public function __construct()
48 48
     {
49
-        $this->parser  = new Parser();
49
+        $this->parser = new Parser();
50 50
         $this->analyzer = new Analyzer();
51 51
     }
52 52
 
Please login to merge, or discard this patch.