@@ -21,7 +21,7 @@ discard block |
||
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 |
||
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 | } |
@@ -27,6 +27,6 @@ |
||
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 | } |
@@ -125,6 +125,6 @@ |
||
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 | } |
@@ -127,7 +127,7 @@ |
||
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; |
@@ -115,7 +115,7 @@ |
||
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: |
@@ -113,6 +113,6 @@ |
||
113 | 113 | */ |
114 | 114 | public function __toString(): string |
115 | 115 | { |
116 | - return (string)$this->context; |
|
116 | + return (string) $this->context; |
|
117 | 117 | } |
118 | 118 | } |
@@ -83,6 +83,6 @@ |
||
83 | 83 | */ |
84 | 84 | public function __toString(): string |
85 | 85 | { |
86 | - return (string)$this->context; |
|
86 | + return (string) $this->context; |
|
87 | 87 | } |
88 | 88 | } |
@@ -99,7 +99,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |