@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | try { |
105 | 105 | $level = Member::parseLevelString($levelString); |
106 | 106 | } catch (ParseMemberLevelException $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 (ParseMemberLevelException $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 |
@@ -331,19 +331,19 @@ discard block |
||
331 | 331 | */ |
332 | 332 | private function createShare($share) { |
333 | 333 | $this->miscService->log( |
334 | - 'Creating share (1/4) - type: ' . $share->getShareType() . ' - token: ' |
|
335 | - . $share->getToken() . ' - type: ' . $share->getShareType() . ' - with: ' |
|
336 | - . $share->getSharedWith() . ' - permissions: ' . $share->getPermissions(), 0 |
|
334 | + 'Creating share (1/4) - type: '.$share->getShareType().' - token: ' |
|
335 | + . $share->getToken().' - type: '.$share->getShareType().' - with: ' |
|
336 | + . $share->getSharedWith().' - permissions: '.$share->getPermissions(), 0 |
|
337 | 337 | ); |
338 | 338 | |
339 | 339 | $qb = $this->getBaseInsertSql($share); |
340 | - $this->miscService->log('Share creation (2/4) : ' . json_encode($qb->getSQL()), 0); |
|
340 | + $this->miscService->log('Share creation (2/4) : '.json_encode($qb->getSQL()), 0); |
|
341 | 341 | |
342 | 342 | $result = $qb->execute(); |
343 | - $this->miscService->log('Share creation result (3/4) : ' . json_encode($result), 0); |
|
343 | + $this->miscService->log('Share creation result (3/4) : '.json_encode($result), 0); |
|
344 | 344 | |
345 | 345 | $id = $qb->getLastInsertId(); |
346 | - $this->miscService->log('Share created ID (4/4) : ' . $id, 0); |
|
346 | + $this->miscService->log('Share created ID (4/4) : '.$id, 0); |
|
347 | 347 | |
348 | 348 | try { |
349 | 349 | $share->setId($id); |
@@ -590,7 +590,7 @@ discard block |
||
590 | 590 | \OC::$server->getLogger()->log(3, 'deprecated>getShareByToken'); |
591 | 591 | $qb = $this->dbConnection->getQueryBuilder(); |
592 | 592 | |
593 | - $this->miscService->log("Opening share by token '#" . $token . "'", 0); |
|
593 | + $this->miscService->log("Opening share by token '#".$token."'", 0); |
|
594 | 594 | |
595 | 595 | $cursor = $qb->select('*') |
596 | 596 | ->from('share') |
@@ -614,7 +614,7 @@ discard block |
||
614 | 614 | try { |
615 | 615 | $data = $this->getShareByPersonalToken($token); |
616 | 616 | } catch (Exception $e) { |
617 | - $this->miscService->log("Share '#" . $token . "' not found.", 0); |
|
617 | + $this->miscService->log("Share '#".$token."' not found.", 0); |
|
618 | 618 | throw new ShareNotFound('Share not found', $this->l10n->t('Could not find share')); |
619 | 619 | } |
620 | 620 | } |
@@ -623,7 +623,7 @@ discard block |
||
623 | 623 | $share = $this->createShareObject($data); |
624 | 624 | } catch (InvalidShare $e) { |
625 | 625 | $this->miscService->log( |
626 | - "Share Object '#" . $token . "' not created. " . json_encode($data), 0 |
|
626 | + "Share Object '#".$token."' not created. ".json_encode($data), 0 |
|
627 | 627 | ); |
628 | 628 | throw new ShareNotFound('Share not found', $this->l10n->t('Could not find share')); |
629 | 629 | } |
@@ -125,7 +125,7 @@ |
||
125 | 125 | } catch (FederatedItemException $e) { |
126 | 126 | if ($input->getOption('status-code')) { |
127 | 127 | throw new FederatedItemException( |
128 | - ' [' . get_class($e) . ', ' . $e->getStatus() . ']' . "\n" . $e->getMessage() |
|
128 | + ' ['.get_class($e).', '.$e->getStatus().']'."\n".$e->getMessage() |
|
129 | 129 | ); |
130 | 130 | } |
131 | 131 |
@@ -125,7 +125,7 @@ |
||
125 | 125 | } catch (FederatedItemException $e) { |
126 | 126 | if ($input->getOption('status-code')) { |
127 | 127 | throw new FederatedItemException( |
128 | - ' [' . get_class($e) . ', ' . $e->getStatus() . ']' . "\n" . $e->getMessage() |
|
128 | + ' ['.get_class($e).', '.$e->getStatus().']'."\n".$e->getMessage() |
|
129 | 129 | ); |
130 | 130 | } |
131 | 131 |
@@ -125,7 +125,7 @@ |
||
125 | 125 | } catch (FederatedItemException $e) { |
126 | 126 | if ($input->getOption('status-code')) { |
127 | 127 | throw new FederatedItemException( |
128 | - ' [' . get_class($e) . ', ' . $e->getStatus() . ']' . "\n" . $e->getMessage() |
|
128 | + ' ['.get_class($e).', '.$e->getStatus().']'."\n".$e->getMessage() |
|
129 | 129 | ); |
130 | 130 | } |
131 | 131 |
@@ -125,7 +125,7 @@ |
||
125 | 125 | } catch (FederatedItemException $e) { |
126 | 126 | if ($input->getOption('status-code')) { |
127 | 127 | throw new FederatedItemException( |
128 | - ' [' . get_class($e) . ', ' . $e->getStatus() . ']' . "\n" . $e->getMessage() |
|
128 | + ' ['.get_class($e).', '.$e->getStatus().']'."\n".$e->getMessage() |
|
129 | 129 | ); |
130 | 130 | } |
131 | 131 |
@@ -125,7 +125,7 @@ |
||
125 | 125 | } catch (FederatedItemException $e) { |
126 | 126 | if ($input->getOption('status-code')) { |
127 | 127 | throw new FederatedItemException( |
128 | - ' [' . get_class($e) . ', ' . $e->getStatus() . ']' . "\n" . $e->getMessage() |
|
128 | + ' ['.get_class($e).', '.$e->getStatus().']'."\n".$e->getMessage() |
|
129 | 129 | ); |
130 | 130 | } |
131 | 131 |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | * @return string[] |
219 | 219 | */ |
220 | 220 | public function fillCommandList(string $source, string $field): array { |
221 | - echo $source . ' ' . $field . "\n"; |
|
221 | + echo $source.' '.$field."\n"; |
|
222 | 222 | |
223 | 223 | return ['abcd', 'abdde', 'erfg']; |
224 | 224 | } |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | * @return string |
395 | 395 | */ |
396 | 396 | private function obfuscateId(string $id): string { |
397 | - return substr($id, 0, 5) . '.' . md5(substr($id, 5)); |
|
397 | + return substr($id, 0, 5).'.'.md5(substr($id, 5)); |
|
398 | 398 | } |
399 | 399 | |
400 | 400 | |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | */ |
404 | 404 | public function onNewPrompt(NC22InteractiveShellSession $session): void { |
405 | 405 | $prompt = |
406 | - 'Circles Report [<info>' . $this->report->getSource() . '</info>]:<comment>%PATH%</comment>'; |
|
406 | + 'Circles Report [<info>'.$this->report->getSource().'</info>]:<comment>%PATH%</comment>'; |
|
407 | 407 | |
408 | 408 | $commands = []; |
409 | 409 | if ($session->getData()->g('currentStatus') === 'write') { |
@@ -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 | } |