@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | */ |
24 | 24 | public function toString(): string |
25 | 25 | { |
26 | - return (string)$this->toPrimitive(); |
|
26 | + return (string) $this->toPrimitive(); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | /** |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | return $this->parseInt($value->getValue()); |
60 | 60 | } |
61 | 61 | |
62 | - return (float)$value->getValue(); |
|
62 | + return (float) $value->getValue(); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | */ |
114 | 114 | private function parseExponential(string $value): float |
115 | 115 | { |
116 | - return (float)$value; |
|
116 | + return (float) $value; |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | */ |
132 | 132 | private function parseFloat(string $value): float |
133 | 133 | { |
134 | - return (float)$value; |
|
134 | + return (float) $value; |
|
135 | 135 | } |
136 | 136 | |
137 | 137 | /** |
@@ -27,7 +27,7 @@ |
||
27 | 27 | $result = []; |
28 | 28 | |
29 | 29 | foreach ($this->getValues() as $key => $value) { |
30 | - $result[] = $key->getValue() . ': ' . $value->toString(); |
|
30 | + $result[] = $key->getValue().': '.$value->toString(); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | return \sprintf('{%s}', \implode(', ', $result)); |
@@ -21,7 +21,7 @@ |
||
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 | /** |
@@ -93,7 +93,7 @@ discard block |
||
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 |
||
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 |
||
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) { |
@@ -21,7 +21,7 @@ discard block |
||
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 |
||
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 | } |
@@ -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: |