@@ -76,11 +76,11 @@ |
||
76 | 76 | $moduleId = $input->getArgument('module'); |
77 | 77 | |
78 | 78 | if ($moduleId === $this->encryptionManager->getDefaultEncryptionModuleId()) { |
79 | - $output->writeln('"' . $moduleId . '"" is already the default module'); |
|
79 | + $output->writeln('"'.$moduleId.'"" is already the default module'); |
|
80 | 80 | } elseif ($this->encryptionManager->setDefaultEncryptionModule($moduleId)) { |
81 | - $output->writeln('<info>Set default module to "' . $moduleId . '"</info>'); |
|
81 | + $output->writeln('<info>Set default module to "'.$moduleId.'"</info>'); |
|
82 | 82 | } else { |
83 | - $output->writeln('<error>The specified module "' . $moduleId . '" does not exist</error>'); |
|
83 | + $output->writeln('<error>The specified module "'.$moduleId.'" does not exist</error>'); |
|
84 | 84 | return 1; |
85 | 85 | } |
86 | 86 | return 0; |
@@ -53,7 +53,7 @@ |
||
53 | 53 | protected function execute(InputInterface $input, OutputInterface $output): int { |
54 | 54 | $errors = \OC_Util::checkServer($this->config); |
55 | 55 | if (!empty($errors)) { |
56 | - $errors = array_map(function ($item) { |
|
56 | + $errors = array_map(function($item) { |
|
57 | 57 | return (string) $item['error']; |
58 | 58 | }, $errors); |
59 | 59 |
@@ -84,13 +84,13 @@ |
||
84 | 84 | $uid = $input->getArgument('user'); |
85 | 85 | $userExists = $this->userManager->userExists($uid); |
86 | 86 | if ($userExists === false) { |
87 | - $output->writeln('User "' . $uid . '" unknown.'); |
|
87 | + $output->writeln('User "'.$uid.'" unknown.'); |
|
88 | 88 | return 1; |
89 | 89 | } |
90 | 90 | |
91 | 91 | $recoveryKeyEnabled = $this->util->isRecoveryEnabledForUser($uid); |
92 | 92 | if ($recoveryKeyEnabled === false) { |
93 | - $output->writeln('Recovery key is not enabled for: ' . $uid); |
|
93 | + $output->writeln('Recovery key is not enabled for: '.$uid); |
|
94 | 94 | return 1; |
95 | 95 | } |
96 | 96 |
@@ -67,7 +67,7 @@ |
||
67 | 67 | if (!$input->getOption('only-print-prefix')) { |
68 | 68 | $prose = 'Created new configuration with configID '; |
69 | 69 | } |
70 | - $output->writeln($prose . "{$configPrefix}"); |
|
70 | + $output->writeln($prose."{$configPrefix}"); |
|
71 | 71 | return 0; |
72 | 72 | } |
73 | 73 | } |
@@ -59,9 +59,9 @@ |
||
59 | 59 | protected function execute(InputInterface $input, OutputInterface $output): int { |
60 | 60 | $progress = new ProgressBar($output); |
61 | 61 | $progress->start(); |
62 | - $this->syncService->syncThemAll(function ($url, $ex) use ($progress, $output) { |
|
62 | + $this->syncService->syncThemAll(function($url, $ex) use ($progress, $output) { |
|
63 | 63 | if ($ex instanceof \Exception) { |
64 | - $output->writeln("Error while syncing $url : " . $ex->getMessage()); |
|
64 | + $output->writeln("Error while syncing $url : ".$ex->getMessage()); |
|
65 | 65 | } else { |
66 | 66 | $progress->advance(); |
67 | 67 | } |
@@ -93,7 +93,7 @@ |
||
93 | 93 | $column->setType(Type::getType(Types::BIGINT)); |
94 | 94 | $column->setOptions(['length' => 20]); |
95 | 95 | |
96 | - $updates[] = '* ' . $tableName . '.' . $columnName; |
|
96 | + $updates[] = '* '.$tableName.'.'.$columnName; |
|
97 | 97 | } |
98 | 98 | } |
99 | 99 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | if (!$schema->hasTable('directlink')) { |
48 | 48 | $table = $schema->createTable('directlink'); |
49 | 49 | |
50 | - $table->addColumn('id',Types::BIGINT, [ |
|
50 | + $table->addColumn('id', Types::BIGINT, [ |
|
51 | 51 | 'autoincrement' => true, |
52 | 52 | 'notnull' => true, |
53 | 53 | 'length' => 11, |
@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | |
47 | 47 | $types = ['resources', 'rooms']; |
48 | 48 | foreach ($types as $type) { |
49 | - if (!$schema->hasTable('calendar_' . $type)) { |
|
50 | - $table = $schema->createTable('calendar_' . $type); |
|
49 | + if (!$schema->hasTable('calendar_'.$type)) { |
|
50 | + $table = $schema->createTable('calendar_'.$type); |
|
51 | 51 | |
52 | 52 | $table->addColumn('id', Types::BIGINT, [ |
53 | 53 | 'autoincrement' => true, |
@@ -77,9 +77,9 @@ discard block |
||
77 | 77 | ]); |
78 | 78 | |
79 | 79 | $table->setPrimaryKey(['id']); |
80 | - $table->addIndex(['backend_id', 'resource_id'], 'calendar_' . $type . '_bkdrsc'); |
|
81 | - $table->addIndex(['email'], 'calendar_' . $type . '_email'); |
|
82 | - $table->addIndex(['displayname'], 'calendar_' . $type . '_name'); |
|
80 | + $table->addIndex(['backend_id', 'resource_id'], 'calendar_'.$type.'_bkdrsc'); |
|
81 | + $table->addIndex(['email'], 'calendar_'.$type.'_email'); |
|
82 | + $table->addIndex(['displayname'], 'calendar_'.$type.'_name'); |
|
83 | 83 | } |
84 | 84 | } |
85 | 85 |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | 'length' => 11, |
60 | 60 | 'unsigned' => true, |
61 | 61 | ]); |
62 | - $table->addColumn($type . '_id', Types::BIGINT, [ |
|
62 | + $table->addColumn($type.'_id', Types::BIGINT, [ |
|
63 | 63 | 'notnull' => true, |
64 | 64 | 'length' => 11, |
65 | 65 | 'unsigned' => true, |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | ]); |
75 | 75 | |
76 | 76 | $table->setPrimaryKey(['id']); |
77 | - $table->addIndex([$type . '_id', 'key'], $this->getMetadataTableName($type) . '_idk'); |
|
77 | + $table->addIndex([$type.'_id', 'key'], $this->getMetadataTableName($type).'_idk'); |
|
78 | 78 | } |
79 | 79 | } |
80 | 80 | |
@@ -86,6 +86,6 @@ discard block |
||
86 | 86 | * @return string |
87 | 87 | */ |
88 | 88 | private function getMetadataTableName(string $type):string { |
89 | - return 'calendar_' . $type . 's_md'; |
|
89 | + return 'calendar_'.$type.'s_md'; |
|
90 | 90 | } |
91 | 91 | } |