Test Failed
Push — master ( f55788...a0eed4 )
by Kirill
11:37 queued 09:09
created
src/Compiler/Dictionary.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     private function addLoggerListener(): void
46 46
     {
47
-        parent::onTypeNotFound(function (string $type, ?Definition $from): void {
47
+        parent::onTypeNotFound(function(string $type, ?Definition $from): void {
48 48
             if ($this->logger) {
49 49
                 $direct = 'Try to load type %s from direct method executing';
50 50
                 $context = 'Try to load type %s from %s (%s:%d)';
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function onTypeNotFound(\Closure $then): void
65 65
     {
66
-        parent::onTypeNotFound(function (string $type, ?Definition $from) use ($then): void {
66
+        parent::onTypeNotFound(function(string $type, ?Definition $from) use ($then) : void {
67 67
             if (($file = $then($type, $from)) instanceof Readable) {
68 68
                 $this->compiler->compile($file);
69 69
             }
Please login to merge, or discard this patch.
src/Console/SDLCompileCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,11 +52,11 @@
 block discarded – undo
52 52
 
53 53
         $output = $this->option('out') ?: \dirname($schema->getPathname());
54 54
 
55
-        if (! \is_dir($output)) {
56
-            throw new NotReadableException('Output directory "' . $output . '" not exists');
55
+        if (!\is_dir($output)) {
56
+            throw new NotReadableException('Output directory "'.$output.'" not exists');
57 57
         }
58 58
 
59
-        $outputPathname = $output . '/' . \basename($schema->getPathname()) . '.json';
59
+        $outputPathname = $output.'/'.\basename($schema->getPathname()).'.json';
60 60
 
61 61
         \file_put_contents($outputPathname, \json_encode($result));
62 62
     }
Please login to merge, or discard this patch.
src/Console/SDLAnalyzeCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,11 +65,11 @@
 block discarded – undo
65 65
                 continue;
66 66
             }
67 67
 
68
-            $position = $def->getFile()->getPathname() . ':' . $def->getLine();
68
+            $position = $def->getFile()->getPathname().':'.$def->getLine();
69 69
 
70
-            $this->writeln('<fg=white;bg=green> ' . \str_repeat(' ', \strlen($position)) . ' </>');
71
-            $this->writeln('<fg=white;bg=green> ' . $position . ' </>');
72
-            $this->writeln('<fg=white;bg=green> ' . \str_repeat(' ', \strlen($position)) . ' </>');
70
+            $this->writeln('<fg=white;bg=green> '.\str_repeat(' ', \strlen($position)).' </>');
71
+            $this->writeln('<fg=white;bg=green> '.$position.' </>');
72
+            $this->writeln('<fg=white;bg=green> '.\str_repeat(' ', \strlen($position)).' </>');
73 73
 
74 74
             $this->render($def);
75 75
             $this->writeln("\n\n");
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/grammar.pp2';
24
+    private const SCHEMA_SDL_GRAMMAR = __DIR__.'/../../resources/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('Parser')
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/helpers.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  */
8 8
 declare(strict_types=1);
9 9
 
10
-if (! \function_exists('\\sdl')) {
10
+if (!\function_exists('\\sdl')) {
11 11
     /**
12 12
      * @param string $fileOrSources
13 13
      * @param bool $filename
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 }
26 26
 
27 27
 
28
-if (! \function_exists('\\iterator_to_generator')) {
28
+if (!\function_exists('\\iterator_to_generator')) {
29 29
     /**
30 30
      * @param iterable $iterator
31 31
      * @return Generator
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 }
38 38
 
39 39
 
40
-if (! \function_exists('\\iterator_map')) {
40
+if (!\function_exists('\\iterator_map')) {
41 41
     /**
42 42
      * @param iterable $iterator
43 43
      * @param Closure $map
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 }
55 55
 
56 56
 
57
-if (! \function_exists('\\iterator_reverse_map')) {
57
+if (!\function_exists('\\iterator_reverse_map')) {
58 58
     /**
59 59
      * @param iterable $iterator
60 60
      * @param Closure $map
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 }
72 72
 
73 73
 
74
-if (! \function_exists('\\iterator_each')) {
74
+if (!\function_exists('\\iterator_each')) {
75 75
     /**
76 76
      * @param iterable $iterator
77 77
      * @param Closure $each
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 }
91 91
 
92 92
 
93
-if (! \function_exists('\\iterator_reverse_each')) {
93
+if (!\function_exists('\\iterator_reverse_each')) {
94 94
     /**
95 95
      * @param iterable $iterator
96 96
      * @param Closure $each
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 }
110 110
 
111 111
 
112
-if (! \function_exists('\\iterator_filter')) {
112
+if (!\function_exists('\\iterator_filter')) {
113 113
     /**
114 114
      * @param iterable $iterator
115 115
      * @param Closure $filter
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 }
129 129
 
130 130
 
131
-if (! \function_exists('\\iterator_reverse_filter')) {
131
+if (!\function_exists('\\iterator_reverse_filter')) {
132 132
     /**
133 133
      * @param iterable $iterator
134 134
      * @param Closure $filter
Please login to merge, or discard this patch.
src/Backend/Vm.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,14 +70,14 @@
 block discarded – undo
70 70
         $value = \gettype($result);
71 71
 
72 72
         if (\is_object($result)) {
73
-            $value = \get_class($result) . '#' . \spl_object_hash($result);
73
+            $value = \get_class($result).'#'.\spl_object_hash($result);
74 74
 
75 75
             if (\method_exists($result, '__toString')) {
76
-                $value = (string)$result;
76
+                $value = (string) $result;
77 77
             }
78 78
         }
79 79
 
80
-        $message = \sprintf('%4s = %s', '#' . $opcode->getId(), $value);
80
+        $message = \sprintf('%4s = %s', '#'.$opcode->getId(), $value);
81 81
 
82 82
         $this->logger->debug($message);
83 83
     }
Please login to merge, or discard this patch.
src/Renderer.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     private static function node(NodeInterface $ast): string
59 59
     {
60
-        return '<' . $ast->getName() . '>';
60
+        return '<'.$ast->getName().'>';
61 61
     }
62 62
 
63 63
     /**
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     private static function opcode(OpcodeInterface $opcode): string
68 68
     {
69
-        return '#' . $opcode->getId() . ' ' . $opcode->getName();
69
+        return '#'.$opcode->getId().' '.$opcode->getName();
70 70
     }
71 71
 
72 72
     /**
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      */
76 76
     private static function value(ValueInterface $value): string
77 77
     {
78
-        return (string)$value;
78
+        return (string) $value;
79 79
     }
80 80
 
81 81
     /**
@@ -92,11 +92,11 @@  discard block
 block discarded – undo
92 92
                 return $value ? 'true' : 'false';
93 93
 
94 94
             case \is_string($value):
95
-                $minified = \preg_replace('/\s+/', ' ', (string)$value);
96
-                return '"' . \addcslashes($minified, '"') . '"';
95
+                $minified = \preg_replace('/\s+/', ' ', (string) $value);
96
+                return '"'.\addcslashes($minified, '"').'"';
97 97
 
98 98
             default:
99
-                return (string)$value;
99
+                return (string) $value;
100 100
         }
101 101
     }
102 102
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     private static function object($value): string
125 125
     {
126
-        return \get_class($value) . '#' . \spl_object_hash($value);
126
+        return \get_class($value).'#'.\spl_object_hash($value);
127 127
     }
128 128
 
129 129
     /**
@@ -132,6 +132,6 @@  discard block
 block discarded – undo
132 132
      */
133 133
     private static function file(Readable $readable): string
134 134
     {
135
-        return '(file)' . $readable->getPathname();
135
+        return '(file)'.$readable->getPathname();
136 136
     }
137 137
 }
Please login to merge, or discard this patch.
src/Frontend/AST/Definition/Common/TypeHintNode.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     }
53 53
 
54 54
     /**
55
-     * @param RuleInterface|NodeInterface $rule
55
+     * @param null|NodeInterface $rule
56 56
      * @return \Generator
57 57
      */
58 58
     private function analyze(RuleInterface $rule): \Generator
Please login to merge, or discard this patch.
src/Frontend/AST/Definition/Provider/ArgumentNodesProvider.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 trait ArgumentNodesProvider
19 19
 {
20 20
     /**
21
-     * @return iterable|ArgumentDefinitionNode[]
21
+     * @return \Generator
22 22
      */
23 23
     public function getArgumentNodes(): iterable
24 24
     {
Please login to merge, or discard this patch.