@@ -224,10 +224,10 @@ |
||
224 | 224 | * @return INC21QueryRow |
225 | 225 | */ |
226 | 226 | public function importFromDatabase(array $data, string $prefix = ''): INC21QueryRow { |
227 | - $this->setSingleId($this->get($prefix . 'member_id', $data)); |
|
228 | - $this->setUserId($this->get($prefix . 'user_id', $data)); |
|
229 | - $this->setUserType($this->getInt($prefix . 'user_type', $data)); |
|
230 | - $this->setInstance($this->get($prefix . 'instance', $data)); |
|
227 | + $this->setSingleId($this->get($prefix.'member_id', $data)); |
|
228 | + $this->setUserId($this->get($prefix.'user_id', $data)); |
|
229 | + $this->setUserType($this->getInt($prefix.'user_type', $data)); |
|
230 | + $this->setInstance($this->get($prefix.'instance', $data)); |
|
231 | 231 | |
232 | 232 | return $this; |
233 | 233 | } |
@@ -117,7 +117,7 @@ |
||
117 | 117 | $owner = $this->federatedUserService->createLocalFederatedUser($ownerId); |
118 | 118 | $circle = $this->circleService->create($name, $owner); |
119 | 119 | |
120 | - echo json_encode($circle, JSON_PRETTY_PRINT) . "\n"; |
|
120 | + echo json_encode($circle, JSON_PRETTY_PRINT)."\n"; |
|
121 | 121 | |
122 | 122 | return 0; |
123 | 123 | } |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $this->sendMailExistingShares($template, $author, $recipient); |
178 | 178 | $this->sendPasswordExistingShares($author, $recipient, $password); |
179 | 179 | } catch (Exception $e) { |
180 | - $this->miscService->log('Failed to send mail about existing share ' . $e->getMessage()); |
|
180 | + $this->miscService->log('Failed to send mail about existing share '.$e->getMessage()); |
|
181 | 181 | } |
182 | 182 | } |
183 | 183 | |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | $authorName = ($authorUser instanceof IUser) ? $authorUser->getDisplayName() : $author; |
328 | 328 | $authorEmail = ($authorUser instanceof IUser) ? $authorUser->getEMailAddress() : null; |
329 | 329 | |
330 | - $this->miscService->log("Sending password mail about existing files to '" . $email . "'", 0); |
|
330 | + $this->miscService->log("Sending password mail about existing files to '".$email."'", 0); |
|
331 | 331 | |
332 | 332 | $plainBodyPart = $this->l10n->t( |
333 | 333 | "%1\$s shared multiple files with you.\nYou should have already received a separate mail with a link to access them.\n", |
@@ -369,7 +369,7 @@ discard block |
||
369 | 369 | $message->setFrom([\OCP\Util::getDefaultEmailAddress($instanceName) => $senderName]); |
370 | 370 | if ($authorEmail !== null) { |
371 | 371 | $message->setReplyTo([$authorEmail => $authorName]); |
372 | - $emailTemplate->addFooter($instanceName . ' - ' . $this->defaults->getSlogan()); |
|
372 | + $emailTemplate->addFooter($instanceName.' - '.$this->defaults->getSlogan()); |
|
373 | 373 | } else { |
374 | 374 | $emailTemplate->addFooter(); |
375 | 375 | } |
@@ -238,16 +238,16 @@ |
||
238 | 238 | try { |
239 | 239 | $test = new ReflectionClass($class); |
240 | 240 | } catch (ReflectionException $e) { |
241 | - throw new FederatedEventException('ReflectionException with ' . $class . ': ' . $e->getMessage()); |
|
241 | + throw new FederatedEventException('ReflectionException with '.$class.': '.$e->getMessage()); |
|
242 | 242 | } |
243 | 243 | |
244 | 244 | if (!in_array(IFederatedItem::class, $test->getInterfaceNames())) { |
245 | - throw new FederatedEventException($class . ' does not implements IFederatedItem'); |
|
245 | + throw new FederatedEventException($class.' does not implements IFederatedItem'); |
|
246 | 246 | } |
247 | 247 | |
248 | 248 | $item = OC::$server->get($class); |
249 | 249 | if (!($item instanceof IFederatedItem)) { |
250 | - throw new FederatedEventException($class . ' not an IFederatedItem'); |
|
250 | + throw new FederatedEventException($class.' not an IFederatedItem'); |
|
251 | 251 | } |
252 | 252 | |
253 | 253 | $this->setFederatedEventBypass($event, $item); |
@@ -119,12 +119,12 @@ discard block |
||
119 | 119 | $userType = $input->getOption('type'); |
120 | 120 | |
121 | 121 | // |
122 | - $this->federatedUserService->commandLineInitiator($input->getOption('initiator'), $circleId, false); |
|
122 | + $this->federatedUserService->commandLineInitiator($input->getOption('initiator'), $circleId, false); |
|
123 | 123 | |
124 | 124 | $member = $this->federatedUserService->createFederatedUser($userId, (int)$userType); |
125 | 125 | $outcome = $this->memberService->addMember($circleId, $member); |
126 | 126 | |
127 | - echo json_encode($outcome, JSON_PRETTY_PRINT) . "\n"; |
|
127 | + echo json_encode($outcome, JSON_PRETTY_PRINT)."\n"; |
|
128 | 128 | |
129 | 129 | return 0; |
130 | 130 | } |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | $instance = $host; |
176 | 176 | } |
177 | 177 | |
178 | - $result[] = $user['userid']['value'] . ' <info>@' . $host . '</info>'; |
|
178 | + $result[] = $user['userid']['value'].' <info>@'.$host.'</info>'; |
|
179 | 179 | } |
180 | 180 | |
181 | 181 | // if ($userId === '') { |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | try { |
105 | 105 | $level = Member::parseLevelString($levelString); |
106 | 106 | } catch (MemberLevelException $e) { |
107 | - throw new MemberHelperException('method ' . $levelString . ' not found'); |
|
107 | + throw new MemberHelperException('method '.$levelString.' not found'); |
|
108 | 108 | } |
109 | 109 | |
110 | 110 | $this->mustHaveLevelEqualOrAbove($level); |
@@ -122,11 +122,11 @@ discard block |
||
122 | 122 | try { |
123 | 123 | $level = Member::parseLevelString($levelString); |
124 | 124 | } catch (MemberLevelException $e) { |
125 | - throw new MemberHelperException('method ' . $levelString . ' not found'); |
|
125 | + throw new MemberHelperException('method '.$levelString.' not found'); |
|
126 | 126 | } |
127 | 127 | |
128 | 128 | if ($this->member->getLevel() >= $level) { |
129 | - throw new MemberLevelException('Member cannot be ' . $levelString); |
|
129 | + throw new MemberLevelException('Member cannot be '.$levelString); |
|
130 | 130 | } |
131 | 131 | } |
132 | 132 |
@@ -108,7 +108,7 @@ |
||
108 | 108 | $level = Member::parseLevelString($input->getArgument('level')); |
109 | 109 | $outcome = $this->memberService->memberLevel($memberId, $level); |
110 | 110 | |
111 | - echo json_encode($outcome, JSON_PRETTY_PRINT) . "\n"; |
|
111 | + echo json_encode($outcome, JSON_PRETTY_PRINT)."\n"; |
|
112 | 112 | |
113 | 113 | return 0; |
114 | 114 | } |
@@ -106,7 +106,7 @@ |
||
106 | 106 | |
107 | 107 | $outcome = $this->memberService->removeMember($memberId); |
108 | 108 | |
109 | - echo json_encode($outcome, JSON_PRETTY_PRINT) . "\n"; |
|
109 | + echo json_encode($outcome, JSON_PRETTY_PRINT)."\n"; |
|
110 | 110 | |
111 | 111 | return 0; |
112 | 112 | } |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | public function createLocalFederatedUser(string $userId): FederatedUser { |
180 | 180 | $user = $this->userManager->get($userId); |
181 | 181 | if ($user === null) { |
182 | - throw new NoUserException('user ' . $userId . ' not found'); |
|
182 | + throw new NoUserException('user '.$userId.' not found'); |
|
183 | 183 | } |
184 | 184 | |
185 | 185 | $federatedUser = new FederatedUser(); |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | $circle = new Circle(); |
331 | 331 | $id = $this->token(ManagedModel::ID_LENGTH); |
332 | 332 | |
333 | - $circle->setName('single:' . $federatedUser->getUserId() . ':' . $id) |
|
333 | + $circle->setName('single:'.$federatedUser->getUserId().':'.$id) |
|
334 | 334 | ->setId($id) |
335 | 335 | ->setConfig(Circle::CFG_SINGLE); |
336 | 336 | $this->circleRequest->save($circle); |
@@ -391,8 +391,8 @@ discard block |
||
391 | 391 | |
392 | 392 | $last = $this->generateMemberships($federatedUser); |
393 | 393 | |
394 | - echo 'known: ' . json_encode($federatedUser->getMemberships()) . "\n"; |
|
395 | - echo 'last: ' . json_encode($last) . "\n"; |
|
394 | + echo 'known: '.json_encode($federatedUser->getMemberships())."\n"; |
|
395 | + echo 'last: '.json_encode($last)."\n"; |
|
396 | 396 | |
397 | 397 | // |
398 | 398 | // $circles = $this->circleRequest->getCircles(null, $viewer); |