@@ -133,12 +133,12 @@ |
||
133 | 133 | * @throws SyncedShareNotFoundException |
134 | 134 | */ |
135 | 135 | public function importFromDatabase(array $data, string $prefix = ''): IQueryRow { |
136 | - if ($this->get($prefix . 'single_id', $data) === '') { |
|
136 | + if ($this->get($prefix.'single_id', $data) === '') { |
|
137 | 137 | throw new SyncedShareNotFoundException(); |
138 | 138 | } |
139 | 139 | |
140 | - $this->setCircleId($this->get($prefix . 'circle_id', $data)); |
|
141 | - $this->setSingleId($this->get($prefix . 'single_id', $data)); |
|
140 | + $this->setCircleId($this->get($prefix.'circle_id', $data)); |
|
141 | + $this->setSingleId($this->get($prefix.'single_id', $data)); |
|
142 | 142 | |
143 | 143 | return $this; |
144 | 144 | } |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | try { |
235 | 235 | $reflection = new ReflectionClass($class); |
236 | 236 | } catch (ReflectionException $e) { |
237 | - throw new InvalidItemException('reflection issue with ' . $class); |
|
237 | + throw new InvalidItemException('reflection issue with '.$class); |
|
238 | 238 | } |
239 | 239 | |
240 | 240 | if (!$reflection->implementsInterface(IDeserializable::class)) { |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | * @return string |
355 | 355 | */ |
356 | 356 | private function getRef(string $key, string $ref): string { |
357 | - return $this->get($key . '.' . $ref, $this->ref); |
|
357 | + return $this->get($key.'.'.$ref, $this->ref); |
|
358 | 358 | } |
359 | 359 | |
360 | 360 | /** |
@@ -242,16 +242,16 @@ |
||
242 | 242 | * @throws InvalidItemException |
243 | 243 | */ |
244 | 244 | public function importFromDatabase(array $data, string $prefix = ''): IQueryRow { |
245 | - if (empty($this->getArray($prefix . 'debug', $data))) { |
|
245 | + if (empty($this->getArray($prefix.'debug', $data))) { |
|
246 | 246 | throw new InvalidItemException(); |
247 | 247 | } |
248 | 248 | |
249 | - $this->setId($this->getInt($prefix . 'id', $data)); |
|
250 | - $this->setThread($this->get($prefix . 'thread', $data)); |
|
251 | - $this->setType($this->get($prefix . 'type', $data)); |
|
252 | - $this->setCircleId($this->get($prefix . 'circle_id', $data)); |
|
253 | - $this->setInstance($this->get($prefix . 'instance', $data)); |
|
254 | - $this->setTime($this->getInt($prefix . 'time', $data)); |
|
249 | + $this->setId($this->getInt($prefix.'id', $data)); |
|
250 | + $this->setThread($this->get($prefix.'thread', $data)); |
|
251 | + $this->setType($this->get($prefix.'type', $data)); |
|
252 | + $this->setCircleId($this->get($prefix.'circle_id', $data)); |
|
253 | + $this->setInstance($this->get($prefix.'instance', $data)); |
|
254 | + $this->setTime($this->getInt($prefix.'time', $data)); |
|
255 | 255 | |
256 | 256 | /** @var ReferencedDataStore $store */ |
257 | 257 | $store = $this->deserialize($this->getArray('debug', $data), ReferencedDataStore::class); |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | stream_set_blocking(STDIN, false); |
134 | 134 | readline_callback_handler_install( |
135 | 135 | '', |
136 | - function () { |
|
136 | + function() { |
|
137 | 137 | } |
138 | 138 | ); |
139 | 139 | |
@@ -199,8 +199,8 @@ discard block |
||
199 | 199 | |
200 | 200 | for ($i = 0; $i < $this->bottomLeftPanel->getMaxLines(); $i++) { |
201 | 201 | $lines[] = '<fg=white>│</>' |
202 | - . $this->incrementString($i, 'bottomLeftPanelCurrentLine', '%') . ' ' |
|
203 | - . $this->incrementString($i, 'lineBL', ':42s%') . ' </>' |
|
202 | + . $this->incrementString($i, 'bottomLeftPanelCurrentLine', '%').' ' |
|
203 | + . $this->incrementString($i, 'lineBL', ':42s%').' </>' |
|
204 | 204 | . '<fg=white>│</> ' |
205 | 205 | . $this->incrementString($i, 'lineBR', '%'); |
206 | 206 | |
@@ -211,8 +211,8 @@ discard block |
||
211 | 211 | |
212 | 212 | $more = [' Thread', ' Type', 'CircleId', 'Instance', ' Time']; |
213 | 213 | for ($j = 0; $j < count($more); $j++) { |
214 | - $lines[] = '<fg=white>│ ' . strtolower($more[$j]) . ':</> %curr' |
|
215 | - . trim($more[$j]) . ':-32s% <fg=white>│</> ' |
|
214 | + $lines[] = '<fg=white>│ '.strtolower($more[$j]).':</> %curr' |
|
215 | + . trim($more[$j]).':-32s% <fg=white>│</> ' |
|
216 | 216 | . $this->incrementString($i + $j, 'lineBR', '%'); |
217 | 217 | $this->update($this->incrementString($i + $j, 'lineBR'), ''); |
218 | 218 | } |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | $this->setCurr(); |
222 | 222 | |
223 | 223 | // $this->display->clear(); |
224 | - $this->display->setFormat(implode("\n", $lines) . "\n"); |
|
224 | + $this->display->setFormat(implode("\n", $lines)."\n"); |
|
225 | 225 | $this->display->start(); |
226 | 226 | } |
227 | 227 | |
@@ -275,12 +275,12 @@ discard block |
||
275 | 275 | $instance = ($this->configService->isLocalInstance($item->getInstance())) ? |
276 | 276 | 'local' : $item->getInstance(); |
277 | 277 | |
278 | - $instanceColor = $this->configService->getAppValue('debug_instance.' . $instance); |
|
278 | + $instanceColor = $this->configService->getAppValue('debug_instance.'.$instance); |
|
279 | 279 | if ($instanceColor === '') { |
280 | 280 | $instanceColor = 'white'; |
281 | 281 | } |
282 | 282 | |
283 | - $line = '<fg=' . $instanceColor . '>' . $instance . '</> - '; |
|
283 | + $line = '<fg='.$instanceColor.'>'.$instance.'</> - '; |
|
284 | 284 | $action = $debug->g(DebugService::ACTION); |
285 | 285 | |
286 | 286 | preg_match_all('/{((?:[^{}]*|(?R))*)}/x', $action, $match); |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | |
300 | 300 | $value = $this->get($path, $debug->jsonSerialize()); |
301 | 301 | $action = |
302 | - str_replace('{' . $entry . '}', '<fg=' . $color . '>' . $value . '</>', $action); |
|
302 | + str_replace('{'.$entry.'}', '<fg='.$color.'>'.$value.'</>', $action); |
|
303 | 303 | } |
304 | 304 | |
305 | 305 | $selectableLines++; |
@@ -554,7 +554,7 @@ discard block |
||
554 | 554 | |
555 | 555 | $this->update( |
556 | 556 | $this->incrementString($i, 'lineBL'), |
557 | - ($i + 1) . '. ' . $name . ' (' . $type . ')' |
|
557 | + ($i + 1).'. '.$name.' ('.$type.')' |
|
558 | 558 | ); |
559 | 559 | } |
560 | 560 | } |
@@ -660,10 +660,10 @@ discard block |
||
660 | 660 | } |
661 | 661 | |
662 | 662 | if ($wrapper !== '') { |
663 | - $prefix = '%' . $prefix; |
|
663 | + $prefix = '%'.$prefix; |
|
664 | 664 | } |
665 | 665 | |
666 | - return $prefix . $result . $wrapper; |
|
666 | + return $prefix.$result.$wrapper; |
|
667 | 667 | } |
668 | 668 | |
669 | 669 | private function setCurr(?Debug $debug = null) { |
@@ -145,7 +145,7 @@ |
||
145 | 145 | |
146 | 146 | $msg = $e->getMessage(); |
147 | 147 | $store = new ReferencedDataStore(); |
148 | - $store->s(self::ACTION, '{?' . self::E_CLASS . '}' . (($msg !== '') ? ' (' . $msg . ')' : '')); |
|
148 | + $store->s(self::ACTION, '{?'.self::E_CLASS.'}'.(($msg !== '') ? ' ('.$msg.')' : '')); |
|
149 | 149 | $store->s(self::E_CLASS, get_class($e)); |
150 | 150 | $store->s(self::EXCEPTION, $e->getMessage()); |
151 | 151 | $store->sArray(self::E_TRACE, debug_backtrace()); |