@@ -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 | /** |
@@ -193,14 +193,14 @@ |
||
193 | 193 | * @throws InvalidItemException |
194 | 194 | */ |
195 | 195 | public function importFromDatabase(array $data, string $prefix = ''): IQueryRow { |
196 | - if (empty($this->getArray($prefix . 'debug', $data))) { |
|
196 | + if (empty($this->getArray($prefix.'debug', $data))) { |
|
197 | 197 | throw new InvalidItemException(); |
198 | 198 | } |
199 | 199 | |
200 | - $this->setThread($this->get($prefix . 'thread', $data)); |
|
201 | - $this->setCircleId($this->get($prefix . 'circle_id', $data)); |
|
202 | - $this->setInstance($this->get($prefix . 'instance', $data)); |
|
203 | - $this->setTime($this->getInt($prefix . 'time', $data)); |
|
200 | + $this->setThread($this->get($prefix.'thread', $data)); |
|
201 | + $this->setCircleId($this->get($prefix.'circle_id', $data)); |
|
202 | + $this->setInstance($this->get($prefix.'instance', $data)); |
|
203 | + $this->setTime($this->getInt($prefix.'time', $data)); |
|
204 | 204 | |
205 | 205 | /** @var ReferencedDataStore $store */ |
206 | 206 | $store = $this->deserialize($this->getArray('debug', $data), ReferencedDataStore::class); |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | stream_set_blocking(STDIN, false); |
130 | 130 | readline_callback_handler_install( |
131 | 131 | '', |
132 | - function () { |
|
132 | + function() { |
|
133 | 133 | } |
134 | 134 | ); |
135 | 135 | |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | for ($i = 0; $i < $this->topPanel->getMaxLines(); $i++) { |
187 | 187 | $lines[] = '%topPanelFrameColor%│</>' |
188 | 188 | . $this->incrementString($i, 'topPanelCurrentLine', '%') |
189 | - . '</>' . $this->incrementstring($i, 'lineT', '%'); |
|
189 | + . '</>'.$this->incrementstring($i, 'lineT', '%'); |
|
190 | 190 | |
191 | 191 | $this->update($this->incrementString($i, 'topPanelCurrentLine'), ' '); |
192 | 192 | $this->update($this->incrementString($i, 'lineT'), ''); |
@@ -198,8 +198,8 @@ discard block |
||
198 | 198 | |
199 | 199 | for ($i = 0; $i < $this->bottomLeftPanel->getMaxLines(); $i++) { |
200 | 200 | $lines[] = '%bottomLeftPanelFrameColor%│</>' |
201 | - . $this->incrementString($i, 'bottomLeftPanelCurrentLine', '%') . ' ' |
|
202 | - . $this->incrementString($i, 'keyBL', '%') . ' ' |
|
201 | + . $this->incrementString($i, 'bottomLeftPanelCurrentLine', '%').' ' |
|
202 | + . $this->incrementString($i, 'keyBL', '%').' ' |
|
203 | 203 | . $this->incrementString($i, 'lineBL', ':30s%') |
204 | 204 | . ' %bottomLeftPanelFrameColor%│</>' |
205 | 205 | |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | $lines[] = '%bottomLeftPanelFrameColor%└─────────────────────────────────┘</>'; |
215 | 215 | |
216 | 216 | // $this->display->clear(); |
217 | - $this->display->setFormat(implode("\n", $lines) . "\n"); |
|
217 | + $this->display->setFormat(implode("\n", $lines)."\n"); |
|
218 | 218 | $this->display->start(); |
219 | 219 | } |
220 | 220 | |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | $instance = ($this->configService->isLocalInstance($item->getInstance())) ? |
244 | 244 | 'local' : $item->getInstance(); |
245 | 245 | |
246 | - $line = '<fg=white>' . $instance . '</> - '; |
|
246 | + $line = '<fg=white>'.$instance.'</> - '; |
|
247 | 247 | $action = $debug->g(DebugService::ACTION); |
248 | 248 | |
249 | 249 | preg_match_all('/{((?:[^{}]*|(?R))*)}/x', $action, $match); |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | |
263 | 263 | $value = $this->get($path, $debug->jsonSerialize()); |
264 | 264 | $action = |
265 | - str_replace('{' . $entry . '}', '<fg=' . $color . '>' . $value . '</>', $action); |
|
265 | + str_replace('{'.$entry.'}', '<fg='.$color.'>'.$value.'</>', $action); |
|
266 | 266 | } |
267 | 267 | |
268 | 268 | $selectableLines++; |
@@ -485,7 +485,7 @@ discard block |
||
485 | 485 | |
486 | 486 | $this->update( |
487 | 487 | $this->incrementString($i, 'lineBL'), |
488 | - 'circle (' . $type . ')' |
|
488 | + 'circle ('.$type.')' |
|
489 | 489 | ); |
490 | 490 | } |
491 | 491 | } |
@@ -551,10 +551,10 @@ discard block |
||
551 | 551 | } |
552 | 552 | |
553 | 553 | if ($wrapper !== '') { |
554 | - $prefix = '%' . $prefix; |
|
554 | + $prefix = '%'.$prefix; |
|
555 | 555 | } |
556 | 556 | |
557 | - return $prefix . $result . $wrapper; |
|
557 | + return $prefix.$result.$wrapper; |
|
558 | 558 | } |
559 | 559 | |
560 | 560 | } |