@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | return $this->parseInt($value->getValue()); |
53 | 53 | } |
54 | 54 | |
55 | - return (float)$value->getValue(); |
|
55 | + return (float) $value->getValue(); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | private function parseExponential(string $value): float |
81 | 81 | { |
82 | - return (float)$value; |
|
82 | + return (float) $value; |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | /** |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | */ |
89 | 89 | private function parseFloat(string $value): float |
90 | 90 | { |
91 | - return (float)$value; |
|
91 | + return (float) $value; |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
@@ -30,6 +30,6 @@ |
||
30 | 30 | */ |
31 | 31 | public static function match(string $lexeme, string $value): bool |
32 | 32 | { |
33 | - return (bool)\preg_match(self::pattern($lexeme), $value); |
|
33 | + return (bool) \preg_match(self::pattern($lexeme), $value); |
|
34 | 34 | } |
35 | 35 | } |
@@ -28,5 +28,5 @@ |
||
28 | 28 | * @param TypeInterface|null $type |
29 | 29 | * @return VarSymbolInterface |
30 | 30 | */ |
31 | - public function declare(string $var, TypeInterface $type = null): VarSymbolInterface; |
|
31 | + public function declare(string$var,TypeInterface$type=null): VarSymbolInterface; |
|
32 | 32 | } |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | use Railt\SDL\Exception\CompilerException; |
16 | 16 | |
17 | 17 | |
18 | -if (! \function_exists('sdl')) { |
|
18 | +if (!\function_exists('sdl')) { |
|
19 | 19 | /** |
20 | 20 | * @param string $fileOrSources |
21 | 21 | * @param bool $filename |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | } |
32 | 32 | } |
33 | 33 | |
34 | -if (! \function_exists('object_to_string')) { |
|
34 | +if (!\function_exists('object_to_string')) { |
|
35 | 35 | /** |
36 | 36 | * @param object $object |
37 | 37 | * @return string |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | : \spl_object_hash($object); |
46 | 46 | |
47 | 47 | if (is_renderable($object)) { |
48 | - return \sprintf('%s(%s)#%s', \get_class($object), (string)$object, $hash); |
|
48 | + return \sprintf('%s(%s)#%s', \get_class($object), (string) $object, $hash); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | return \sprintf('%s#%s', \get_class($object), $hash); |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | } |
54 | 54 | |
55 | 55 | |
56 | -if (! \function_exists('is_renderable')) { |
|
56 | +if (!\function_exists('is_renderable')) { |
|
57 | 57 | /** |
58 | 58 | * @param mixed $value |
59 | 59 | * @return bool |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | */ |
34 | 34 | protected function format(TypeNameInterface $name, iterable $arguments): string |
35 | 35 | { |
36 | - return $this->formatName($name) . $this->formatArguments($arguments); |
|
36 | + return $this->formatName($name).$this->formatArguments($arguments); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | if (\count($result)) { |
52 | - return 'Of' . \implode('And', $result); |
|
52 | + return 'Of'.\implode('And', $result); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | return ''; |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | $value = $argument->getValue(); |
65 | 65 | $suffix = $value instanceof TypeInvocation ? $this->formatType($value) : $this->formatArgument($value); |
66 | 66 | |
67 | - return \ucfirst($argument->getName()) . $suffix; |
|
67 | + return \ucfirst($argument->getName()).$suffix; |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | /** |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | protected function formatType(TypeInvocation $type): string |
75 | 75 | { |
76 | - return $this->formatName($type->getTypeName()) . $this->formatArguments($type->getArguments()); |
|
76 | + return $this->formatName($type->getTypeName()).$this->formatArguments($type->getArguments()); |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
@@ -48,7 +48,7 @@ |
||
48 | 48 | */ |
49 | 49 | protected function verified(string $name): string |
50 | 50 | { |
51 | - if (! \preg_match('/^[_a-zA-Z][_a-zA-Z0-9]*$/', $name)) { |
|
51 | + if (!\preg_match('/^[_a-zA-Z][_a-zA-Z0-9]*$/', $name)) { |
|
52 | 52 | $error = \sprintf('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "%s" does not.', $name); |
53 | 53 | throw new SemanticException($error); |
54 | 54 | } |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | */ |
150 | 150 | public function offsetExists($offset): bool |
151 | 151 | { |
152 | - return $this->has((string)$offset); |
|
152 | + return $this->has((string) $offset); |
|
153 | 153 | } |
154 | 154 | |
155 | 155 | /** |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | */ |
159 | 159 | public function offsetGet($offset) |
160 | 160 | { |
161 | - return $this->get((string)$offset); |
|
161 | + return $this->get((string) $offset); |
|
162 | 162 | } |
163 | 163 | |
164 | 164 | /** |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | */ |
168 | 168 | public function offsetSet($offset, $value): void |
169 | 169 | { |
170 | - $this->set((string)$offset, $value); |
|
170 | + $this->set((string) $offset, $value); |
|
171 | 171 | } |
172 | 172 | |
173 | 173 | /** |
@@ -175,6 +175,6 @@ discard block |
||
175 | 175 | */ |
176 | 176 | public function offsetUnset($offset): void |
177 | 177 | { |
178 | - $this->delete((string)$offset); |
|
178 | + $this->delete((string) $offset); |
|
179 | 179 | } |
180 | 180 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * @param VarSymbolInterface $record |
21 | 21 | * @return int |
22 | 22 | */ |
23 | - public function declare(VarSymbolInterface $record): int; |
|
23 | + public function declare(VarSymbolInterface$record): int; |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * @param int $addr |
@@ -28,6 +28,6 @@ |
||
28 | 28 | */ |
29 | 29 | public function __toString(): string |
30 | 30 | { |
31 | - return '[' . $this->of . ']'; |
|
31 | + return '['.$this->of.']'; |
|
32 | 32 | } |
33 | 33 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | public function __construct(TypeInterface $of) |
22 | 22 | { |
23 | - parent::__construct(static::LIST, $of); |
|
23 | + parent::__construct(static::list, $of); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |