@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | throw new Exception('Please specify a --type for the test'); |
| 174 | 174 | } |
| 175 | 175 | if ($test !== '' && !in_array($type, self::$checks)) { |
| 176 | - throw new Exception('Unknown type: ' . implode(', ', self::$checks)); |
|
| 176 | + throw new Exception('Unknown type: '.implode(', ', self::$checks)); |
|
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | // $this->configService->setAppValue(ConfigService::TEST_NC_BASE, $test); |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | } |
| 279 | 279 | |
| 280 | 280 | $output->writeln(''); |
| 281 | - $output->writeln('* testing current address: ' . $test); |
|
| 281 | + $output->writeln('* testing current address: '.$test); |
|
| 282 | 282 | |
| 283 | 283 | try { |
| 284 | 284 | $this->setupLoopback($input, $output, $test); |
@@ -314,8 +314,8 @@ discard block |
||
| 314 | 314 | continue; |
| 315 | 315 | } |
| 316 | 316 | |
| 317 | - $loopback = $scheme . '://' . $cloudId; |
|
| 318 | - $output->write('* testing address: ' . $loopback . ' '); |
|
| 317 | + $loopback = $scheme.'://'.$cloudId; |
|
| 318 | + $output->write('* testing address: '.$loopback.' '); |
|
| 319 | 319 | |
| 320 | 320 | if ($this->testLoopback($input, $output, $loopback)) { |
| 321 | 321 | $output->writeln('* <info>Loopback</info> address looks good'); |
@@ -385,9 +385,9 @@ discard block |
||
| 385 | 385 | $test = new FederatedEvent(LoopbackTest::class); |
| 386 | 386 | $this->federatedEventService->newEvent($test); |
| 387 | 387 | |
| 388 | - $output->writeln('<info>' . $test->getWrapperToken() . '</info>'); |
|
| 388 | + $output->writeln('<info>'.$test->getWrapperToken().'</info>'); |
|
| 389 | 389 | |
| 390 | - $output->writeln('- Waiting for async process to finish (' . $this->delay . 's)'); |
|
| 390 | + $output->writeln('- Waiting for async process to finish ('.$this->delay.'s)'); |
|
| 391 | 391 | sleep($this->delay); |
| 392 | 392 | |
| 393 | 393 | $output->write('- Checking status on FederatedEvent '); |
@@ -401,18 +401,18 @@ discard block |
||
| 401 | 401 | |
| 402 | 402 | $checkVerify = $wrapper->getEvent()->getData()->gInt('verify'); |
| 403 | 403 | if ($checkVerify === LoopbackTest::VERIFY) { |
| 404 | - $output->write('<info>verify=' . $checkVerify . '</info> '); |
|
| 404 | + $output->write('<info>verify='.$checkVerify.'</info> '); |
|
| 405 | 405 | } else { |
| 406 | - $output->writeln('<error>verify=' . $checkVerify . '</error>'); |
|
| 406 | + $output->writeln('<error>verify='.$checkVerify.'</error>'); |
|
| 407 | 407 | |
| 408 | 408 | return false; |
| 409 | 409 | } |
| 410 | 410 | |
| 411 | 411 | $checkManage = $wrapper->getResult()->gInt('manage'); |
| 412 | 412 | if ($checkManage === LoopbackTest::MANAGE) { |
| 413 | - $output->write('<info>manage=' . $checkManage . '</info> '); |
|
| 413 | + $output->write('<info>manage='.$checkManage.'</info> '); |
|
| 414 | 414 | } else { |
| 415 | - $output->writeln('<error>manage=' . $checkManage . '</error>'); |
|
| 415 | + $output->writeln('<error>manage='.$checkManage.'</error>'); |
|
| 416 | 416 | |
| 417 | 417 | return false; |
| 418 | 418 | } |
@@ -434,7 +434,7 @@ discard block |
||
| 434 | 434 | [$scheme, $cloudId] = $this->parseAddress($loopback); |
| 435 | 435 | |
| 436 | 436 | $question = new ConfirmationQuestion( |
| 437 | - '- Do you want to save <info>'. $loopback . '</info> as your <info>loopback</info> address ? (y/N) ', false, '/^(y|Y)/i' |
|
| 437 | + '- Do you want to save <info>'.$loopback.'</info> as your <info>loopback</info> address ? (y/N) ', false, '/^(y|Y)/i' |
|
| 438 | 438 | ); |
| 439 | 439 | |
| 440 | 440 | $helper = $this->getHelper('question'); |
@@ -447,7 +447,7 @@ discard block |
||
| 447 | 447 | $this->configService->setAppValue(ConfigService::LOOPBACK_CLOUD_SCHEME, $scheme); |
| 448 | 448 | $this->configService->setAppValue(ConfigService::LOOPBACK_CLOUD_ID, $cloudId); |
| 449 | 449 | $output->writeln( |
| 450 | - '- Address <info>' . $loopback . '</info> is now used as <info>loopback</info>' |
|
| 450 | + '- Address <info>'.$loopback.'</info> is now used as <info>loopback</info>' |
|
| 451 | 451 | ); |
| 452 | 452 | |
| 453 | 453 | } |
@@ -518,7 +518,7 @@ discard block |
||
| 518 | 518 | continue; |
| 519 | 519 | } |
| 520 | 520 | |
| 521 | - $frontal = $scheme . '://' . $cloudId; |
|
| 521 | + $frontal = $scheme.'://'.$cloudId; |
|
| 522 | 522 | break; |
| 523 | 523 | } |
| 524 | 524 | |
@@ -532,13 +532,13 @@ discard block |
||
| 532 | 532 | 'You will need to run this <info>curl</info> command from a remote terminal and paste its result: ' |
| 533 | 533 | ); |
| 534 | 534 | $output->writeln( |
| 535 | - ' curl ' . $frontal . '/.well-known/webfinger?resource=http://nextcloud.com/' |
|
| 535 | + ' curl '.$frontal.'/.well-known/webfinger?resource=http://nextcloud.com/' |
|
| 536 | 536 | ); |
| 537 | 537 | |
| 538 | 538 | $question = new Question('result: ', ''); |
| 539 | 539 | $pasteWebfinger = $helper->ask($input, $output, $question); |
| 540 | 540 | |
| 541 | - echo '__ ' . $pasteWebfinger; |
|
| 541 | + echo '__ '.$pasteWebfinger; |
|
| 542 | 542 | |
| 543 | 543 | $output->writeln('TESTING !!'); |
| 544 | 544 | $output->writeln('TESTING !!'); |
@@ -661,7 +661,7 @@ discard block |
||
| 661 | 661 | $this->configService->configureLoopbackRequest($request, $route, $args); |
| 662 | 662 | $request->setFollowLocation(false); |
| 663 | 663 | |
| 664 | - $output->write('- ' . $type . ' request on ' . $request->getCompleteUrl() . ': '); |
|
| 664 | + $output->write('- '.$type.' request on '.$request->getCompleteUrl().': '); |
|
| 665 | 665 | |
| 666 | 666 | try { |
| 667 | 667 | $this->doRequest($request); |
@@ -672,7 +672,7 @@ discard block |
||
| 672 | 672 | $color = 'info'; |
| 673 | 673 | } |
| 674 | 674 | |
| 675 | - $output->writeln('<' . $color . '>' . $result->getStatusCode() . '</' . $color . '>'); |
|
| 675 | + $output->writeln('<'.$color.'>'.$result->getStatusCode().'</'.$color.'>'); |
|
| 676 | 676 | if ($result->getStatusCode() === 200) { |
| 677 | 677 | return true; |
| 678 | 678 | } |
@@ -696,7 +696,7 @@ discard block |
||
| 696 | 696 | |
| 697 | 697 | $output->writeln(''); |
| 698 | 698 | $output->writeln( |
| 699 | - 'The address <info>' . $address . '</info> seems to reach your local Nextcloud.' |
|
| 699 | + 'The address <info>'.$address.'</info> seems to reach your local Nextcloud.' |
|
| 700 | 700 | ); |
| 701 | 701 | |
| 702 | 702 | $helper = $this->getHelper('question'); |
@@ -713,8 +713,8 @@ discard block |
||
| 713 | 713 | |
| 714 | 714 | $this->configService->setAppValue(ConfigService::FORCE_NC_BASE, $address); |
| 715 | 715 | $output->writeln( |
| 716 | - 'New configuration <info>' . Application::APP_ID . '.' . ConfigService::FORCE_NC_BASE . '=\'' |
|
| 717 | - . $address . '\'</info> stored in database' |
|
| 716 | + 'New configuration <info>'.Application::APP_ID.'.'.ConfigService::FORCE_NC_BASE.'=\'' |
|
| 717 | + . $address.'\'</info> stored in database' |
|
| 718 | 718 | ); |
| 719 | 719 | } |
| 720 | 720 | |
@@ -735,7 +735,7 @@ discard block |
||
| 735 | 735 | } |
| 736 | 736 | |
| 737 | 737 | if (!is_null($cloudIdPort)) { |
| 738 | - $cloudId = $cloudId . ':' . $cloudIdPort; |
|
| 738 | + $cloudId = $cloudId.':'.$cloudIdPort; |
|
| 739 | 739 | } |
| 740 | 740 | |
| 741 | 741 | return [$scheme, $cloudId]; |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | $tables = $schema->getTables(); |
| 79 | 79 | foreach ($tables as $table) { |
| 80 | 80 | $tableName = $table->getName(); |
| 81 | - if (substr($tableName, 0, 8 + strlen($prefix)) === $prefix . 'circles_') { |
|
| 81 | + if (substr($tableName, 0, 8 + strlen($prefix)) === $prefix.'circles_') { |
|
| 82 | 82 | $tableName = substr($tableName, strlen($prefix)); |
| 83 | 83 | $schema->dropTable($tableName); |
| 84 | 84 | } |
@@ -104,16 +104,16 @@ |
||
| 104 | 104 | } catch (Exception $e) { |
| 105 | 105 | $this->e($e); |
| 106 | 106 | |
| 107 | - return $membership->getSingleId() . ' is not ' . $inheritance . ' of ' |
|
| 108 | - . $membership->getCircleId() . ' anymore'; |
|
| 107 | + return $membership->getSingleId().' is not '.$inheritance.' of ' |
|
| 108 | + . $membership->getCircleId().' anymore'; |
|
| 109 | 109 | } |
| 110 | 110 | |
| 111 | - return $federatedUser->getUserId() . ' (' . Member::$TYPE[$federatedUser->getUserType()] |
|
| 112 | - . ') is not ' . $inheritance . ' of ' . $membership->getCircleId() . ' anymore'; |
|
| 111 | + return $federatedUser->getUserId().' ('.Member::$TYPE[$federatedUser->getUserType()] |
|
| 112 | + . ') is not '.$inheritance.' of '.$membership->getCircleId().' anymore'; |
|
| 113 | 113 | }, $event->getMemberships() |
| 114 | 114 | ); |
| 115 | 115 | |
| 116 | - $this->log(3, $prefix . implode('. ', $memberships)); |
|
| 116 | + $this->log(3, $prefix.implode('. ', $memberships)); |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | } |
@@ -104,16 +104,16 @@ |
||
| 104 | 104 | } catch (Exception $e) { |
| 105 | 105 | $this->e($e); |
| 106 | 106 | |
| 107 | - return $membership->getSingleId() . ' is now ' . $inheritance . ' of ' |
|
| 107 | + return $membership->getSingleId().' is now '.$inheritance.' of ' |
|
| 108 | 108 | . $membership->getCircleId(); |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | - return $federatedUser->getUserId() . ' (' . Member::$TYPE[$federatedUser->getUserType()] |
|
| 112 | - . ') is now ' . $inheritance . ' of ' . $membership->getCircleId(); |
|
| 111 | + return $federatedUser->getUserId().' ('.Member::$TYPE[$federatedUser->getUserType()] |
|
| 112 | + . ') is now '.$inheritance.' of '.$membership->getCircleId(); |
|
| 113 | 113 | }, $event->getMemberships() |
| 114 | 114 | ); |
| 115 | 115 | |
| 116 | - $this->log(3, $prefix . implode('. ', $memberships)); |
|
| 116 | + $this->log(3, $prefix.implode('. ', $memberships)); |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | } |
@@ -144,7 +144,7 @@ |
||
| 144 | 144 | $circle = new Circle(); |
| 145 | 145 | $circle->importFromDatabase( |
| 146 | 146 | $data, |
| 147 | - CoreQueryBuilder::HELPER . '_' . CoreQueryBuilder::CIRCLE . '_' |
|
| 147 | + CoreQueryBuilder::HELPER.'_'.CoreQueryBuilder::CIRCLE.'_' |
|
| 148 | 148 | ); |
| 149 | 149 | |
| 150 | 150 | return $circle; |
@@ -251,16 +251,16 @@ |
||
| 251 | 251 | try { |
| 252 | 252 | $test = new ReflectionClass($class); |
| 253 | 253 | } catch (ReflectionException $e) { |
| 254 | - throw new FederatedEventException('ReflectionException with ' . $class . ': ' . $e->getMessage()); |
|
| 254 | + throw new FederatedEventException('ReflectionException with '.$class.': '.$e->getMessage()); |
|
| 255 | 255 | } |
| 256 | 256 | |
| 257 | 257 | if (!in_array(IFederatedItem::class, $test->getInterfaceNames())) { |
| 258 | - throw new FederatedEventException($class . ' does not implements IFederatedItem'); |
|
| 258 | + throw new FederatedEventException($class.' does not implements IFederatedItem'); |
|
| 259 | 259 | } |
| 260 | 260 | |
| 261 | 261 | $item = OC::$server->get($class); |
| 262 | 262 | if (!($item instanceof IFederatedItem)) { |
| 263 | - throw new FederatedEventException($class . ' not an IFederatedItem'); |
|
| 263 | + throw new FederatedEventException($class.' not an IFederatedItem'); |
|
| 264 | 264 | } |
| 265 | 265 | |
| 266 | 266 | if ($item instanceof IFederatedItemHighSeverity) { |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | $this->miscService = OC::$server->query(MiscService::class); |
| 133 | 133 | } catch (QueryException $e) { |
| 134 | 134 | OC::$server->getLogger() |
| 135 | - ->log(1, 'Circles: cannot init FileSharingBroadcaster - ' . $e->getMessage()); |
|
| 135 | + ->log(1, 'Circles: cannot init FileSharingBroadcaster - '.$e->getMessage()); |
|
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | try { |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | * @throws IllegalIDChangeException |
| 326 | 326 | */ |
| 327 | 327 | private function generateShare($data): IShare { |
| 328 | - $this->logger->log(0, 'Regenerate shares from payload: ' . json_encode($data)); |
|
| 328 | + $this->logger->log(0, 'Regenerate shares from payload: '.json_encode($data)); |
|
| 329 | 329 | |
| 330 | 330 | $share = new Share($this->rootFolder, $this->userManager); |
| 331 | 331 | $share->setId($data['id']); |
@@ -418,7 +418,7 @@ discard block |
||
| 418 | 418 | $this->sendPasswordByMail($share, $displayName, $email, $password); |
| 419 | 419 | } catch (Exception $e) { |
| 420 | 420 | OC::$server->getLogger() |
| 421 | - ->log(1, 'Circles::sharedByMail - mail were not sent: ' . $e->getMessage()); |
|
| 421 | + ->log(1, 'Circles::sharedByMail - mail were not sent: '.$e->getMessage()); |
|
| 422 | 422 | } |
| 423 | 423 | } |
| 424 | 424 | |
@@ -436,8 +436,8 @@ discard block |
||
| 436 | 436 | $message = $this->mailer->createMessage(); |
| 437 | 437 | |
| 438 | 438 | $this->logger->log( |
| 439 | - 0, "Sending mail to circle '" . $circleName . "': " . $email . ' file: ' . $fileName |
|
| 440 | - . ' - link: ' . $link |
|
| 439 | + 0, "Sending mail to circle '".$circleName."': ".$email.' file: '.$fileName |
|
| 440 | + . ' - link: '.$link |
|
| 441 | 441 | ); |
| 442 | 442 | |
| 443 | 443 | $subject = $this->l10n->t('%s shared »%s« with you.', [$author, $fileName]); |
@@ -476,7 +476,7 @@ discard block |
||
| 476 | 476 | |
| 477 | 477 | $message = $this->mailer->createMessage(); |
| 478 | 478 | |
| 479 | - $this->logger->log(0, "Sending password mail to circle '" . $circleName . "': " . $email); |
|
| 479 | + $this->logger->log(0, "Sending password mail to circle '".$circleName."': ".$email); |
|
| 480 | 480 | |
| 481 | 481 | $filename = $share->getNode() |
| 482 | 482 | ->getName(); |
@@ -531,7 +531,7 @@ discard block |
||
| 531 | 531 | $message->setFrom([\OCP\Util::getDefaultEmailAddress($instanceName) => $senderName]); |
| 532 | 532 | if ($initiatorEmailAddress !== null) { |
| 533 | 533 | $message->setReplyTo([$initiatorEmailAddress => $initiatorDisplayName]); |
| 534 | - $emailTemplate->addFooter($instanceName . ' - ' . $this->defaults->getSlogan()); |
|
| 534 | + $emailTemplate->addFooter($instanceName.' - '.$this->defaults->getSlogan()); |
|
| 535 | 535 | } else { |
| 536 | 536 | $emailTemplate->addFooter(); |
| 537 | 537 | } |
@@ -566,7 +566,7 @@ discard block |
||
| 566 | 566 | $emailTemplate->addHeader(); |
| 567 | 567 | $emailTemplate->addHeading($subject, false); |
| 568 | 568 | $emailTemplate->addBodyText( |
| 569 | - htmlspecialchars($text) . '<br>' . htmlspecialchars( |
|
| 569 | + htmlspecialchars($text).'<br>'.htmlspecialchars( |
|
| 570 | 570 | $this->l10n->t('Click the button below to open it.') |
| 571 | 571 | ), $text |
| 572 | 572 | ); |
@@ -612,7 +612,7 @@ discard block |
||
| 612 | 612 | $this->sendMailExistingShares($template, $author->getCachedName(), $recipient); |
| 613 | 613 | $this->sendPasswordExistingShares($author, $recipient, $password); |
| 614 | 614 | } catch (Exception $e) { |
| 615 | - $this->logger->log(2, 'Failed to send mail about existing share ' . $e->getMessage()); |
|
| 615 | + $this->logger->log(2, 'Failed to send mail about existing share '.$e->getMessage()); |
|
| 616 | 616 | } |
| 617 | 617 | } |
| 618 | 618 | |
@@ -635,7 +635,7 @@ discard block |
||
| 635 | 635 | $authorName = ($authorUser instanceof IUser) ? $authorUser->getDisplayName() : $author; |
| 636 | 636 | $authorEmail = ($authorUser instanceof IUser) ? $authorUser->getEMailAddress() : null; |
| 637 | 637 | |
| 638 | - $this->logger->log(0, "Sending password mail about existing files to '" . $email . "'"); |
|
| 638 | + $this->logger->log(0, "Sending password mail about existing files to '".$email."'"); |
|
| 639 | 639 | |
| 640 | 640 | $plainBodyPart = $this->l10n->t( |
| 641 | 641 | "%1\$s shared multiple files with you.\nYou should have already received a separate email with a link to access them.\n", |
@@ -677,7 +677,7 @@ discard block |
||
| 677 | 677 | $message->setFrom([\OCP\Util::getDefaultEmailAddress($instanceName) => $senderName]); |
| 678 | 678 | if ($authorEmail !== null) { |
| 679 | 679 | $message->setReplyTo([$authorEmail => $authorName]); |
| 680 | - $emailTemplate->addFooter($instanceName . ' - ' . $this->defaults->getSlogan()); |
|
| 680 | + $emailTemplate->addFooter($instanceName.' - '.$this->defaults->getSlogan()); |
|
| 681 | 681 | } else { |
| 682 | 682 | $emailTemplate->addFooter(); |
| 683 | 683 | } |
@@ -722,7 +722,7 @@ discard block |
||
| 722 | 722 | */ |
| 723 | 723 | protected function generateMailExitingShares($author, $circleName) { |
| 724 | 724 | $this->logger->log( |
| 725 | - 0, "Generating mail about existing share mail from '" . $author . "' in " |
|
| 725 | + 0, "Generating mail about existing share mail from '".$author."' in " |
|
| 726 | 726 | . $circleName |
| 727 | 727 | ); |
| 728 | 728 | |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | $this->sendMailExistingShares($template, $author, $recipient); |
| 243 | 243 | $this->sendPasswordExistingShares($author, $recipient, $password); |
| 244 | 244 | } catch (Exception $e) { |
| 245 | - $this->miscService->log('Failed to send mail about existing share ' . $e->getMessage()); |
|
| 245 | + $this->miscService->log('Failed to send mail about existing share '.$e->getMessage()); |
|
| 246 | 246 | } |
| 247 | 247 | } |
| 248 | 248 | |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | $authorName = ($authorUser instanceof IUser) ? $authorUser->getDisplayName() : $author; |
| 393 | 393 | $authorEmail = ($authorUser instanceof IUser) ? $authorUser->getEMailAddress() : null; |
| 394 | 394 | |
| 395 | - $this->miscService->log("Sending password mail about existing files to '" . $email . "'", 0); |
|
| 395 | + $this->miscService->log("Sending password mail about existing files to '".$email."'", 0); |
|
| 396 | 396 | |
| 397 | 397 | $plainBodyPart = $this->l10n->t( |
| 398 | 398 | "%1\$s shared multiple files with you.\nYou should have already received a separate email with a link to access them.\n", |
@@ -434,7 +434,7 @@ discard block |
||
| 434 | 434 | $message->setFrom([\OCP\Util::getDefaultEmailAddress($instanceName) => $senderName]); |
| 435 | 435 | if ($authorEmail !== null) { |
| 436 | 436 | $message->setReplyTo([$authorEmail => $authorName]); |
| 437 | - $emailTemplate->addFooter($instanceName . ' - ' . $this->defaults->getSlogan()); |
|
| 437 | + $emailTemplate->addFooter($instanceName.' - '.$this->defaults->getSlogan()); |
|
| 438 | 438 | } else { |
| 439 | 439 | $emailTemplate->addFooter(); |
| 440 | 440 | } |
@@ -811,29 +811,29 @@ discard block |
||
| 811 | 811 | * @throws MemberNotFoundException |
| 812 | 812 | */ |
| 813 | 813 | public function importFromDatabase(array $data, string $prefix = ''): INC22QueryRow { |
| 814 | - if ($this->get($prefix . 'single_id', $data) === '') { |
|
| 814 | + if ($this->get($prefix.'single_id', $data) === '') { |
|
| 815 | 815 | throw new MemberNotFoundException(); |
| 816 | 816 | } |
| 817 | 817 | |
| 818 | - $this->setId($this->get($prefix . 'member_id', $data)); |
|
| 819 | - $this->setCircleId($this->get($prefix . 'circle_id', $data)); |
|
| 820 | - $this->setSingleId($this->get($prefix . 'single_id', $data)); |
|
| 821 | - $this->setUserId($this->get($prefix . 'user_id', $data)); |
|
| 822 | - $this->setUserType($this->getInt($prefix . 'user_type', $data)); |
|
| 823 | - $this->setInstance($this->get($prefix . 'instance', $data)); |
|
| 824 | - $this->setLevel($this->getInt($prefix . 'level', $data)); |
|
| 825 | - $this->setStatus($this->get($prefix . 'status', $data)); |
|
| 826 | - $this->setDisplayName($this->get($prefix . 'cached_name', $data)); |
|
| 827 | - $this->setNotes($this->getArray($prefix . 'note', $data)); |
|
| 828 | - $this->setContactId($this->get($prefix . 'contact_id', $data)); |
|
| 829 | - $this->setContactMeta($this->get($prefix . 'contact_meta', $data)); |
|
| 830 | - |
|
| 831 | - $cachedUpdate = $this->get($prefix . 'cached_update', $data); |
|
| 818 | + $this->setId($this->get($prefix.'member_id', $data)); |
|
| 819 | + $this->setCircleId($this->get($prefix.'circle_id', $data)); |
|
| 820 | + $this->setSingleId($this->get($prefix.'single_id', $data)); |
|
| 821 | + $this->setUserId($this->get($prefix.'user_id', $data)); |
|
| 822 | + $this->setUserType($this->getInt($prefix.'user_type', $data)); |
|
| 823 | + $this->setInstance($this->get($prefix.'instance', $data)); |
|
| 824 | + $this->setLevel($this->getInt($prefix.'level', $data)); |
|
| 825 | + $this->setStatus($this->get($prefix.'status', $data)); |
|
| 826 | + $this->setDisplayName($this->get($prefix.'cached_name', $data)); |
|
| 827 | + $this->setNotes($this->getArray($prefix.'note', $data)); |
|
| 828 | + $this->setContactId($this->get($prefix.'contact_id', $data)); |
|
| 829 | + $this->setContactMeta($this->get($prefix.'contact_meta', $data)); |
|
| 830 | + |
|
| 831 | + $cachedUpdate = $this->get($prefix.'cached_update', $data); |
|
| 832 | 832 | if ($cachedUpdate !== '') { |
| 833 | 833 | $this->setDisplayUpdate(DateTime::createFromFormat('Y-m-d H:i:s', $cachedUpdate)->getTimestamp()); |
| 834 | 834 | } |
| 835 | 835 | |
| 836 | - $joined = $this->get($prefix . 'joined', $data); |
|
| 836 | + $joined = $this->get($prefix.'joined', $data); |
|
| 837 | 837 | if ($joined !== '') { |
| 838 | 838 | $this->setJoined(DateTime::createFromFormat('Y-m-d H:i:s', $joined)->getTimestamp()); |
| 839 | 839 | } |
@@ -924,7 +924,7 @@ discard block |
||
| 924 | 924 | public static function parseLevelInt(int $level): int { |
| 925 | 925 | if (!array_key_exists($level, self::$DEF_LEVEL)) { |
| 926 | 926 | $all = implode(', ', array_keys(self::$DEF_LEVEL)); |
| 927 | - throw new ParseMemberLevelException('Available levels: ' . $all, 121); |
|
| 927 | + throw new ParseMemberLevelException('Available levels: '.$all, 121); |
|
| 928 | 928 | } |
| 929 | 929 | |
| 930 | 930 | return $level; |
@@ -943,7 +943,7 @@ discard block |
||
| 943 | 943 | |
| 944 | 944 | if (!$level) { |
| 945 | 945 | $all = implode(', ', array_values(self::$DEF_LEVEL)); |
| 946 | - throw new ParseMemberLevelException('Available levels: ' . $all, 121); |
|
| 946 | + throw new ParseMemberLevelException('Available levels: '.$all, 121); |
|
| 947 | 947 | } |
| 948 | 948 | |
| 949 | 949 | return (int)$level; |
@@ -964,7 +964,7 @@ discard block |
||
| 964 | 964 | $type = array_search($typeString, Member::$TYPE); |
| 965 | 965 | if ($type === false) { |
| 966 | 966 | $all = implode(', ', array_values(self::$TYPE)); |
| 967 | - throw new UserTypeNotFoundException('Available types: ' . $all); |
|
| 967 | + throw new UserTypeNotFoundException('Available types: '.$all); |
|
| 968 | 968 | } |
| 969 | 969 | |
| 970 | 970 | return (int)$type; |