@@ -35,6 +35,6 @@ |
||
35 | 35 | */ |
36 | 36 | protected function getTableName(bool $includePrefix = true) { |
37 | 37 | $p = $includePrefix ? '*PREFIX*' : ''; |
38 | - return $p . 'ldap_group_mapping'; |
|
38 | + return $p.'ldap_group_mapping'; |
|
39 | 39 | } |
40 | 40 | } |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | * @return string |
108 | 108 | */ |
109 | 109 | protected function getUserCacheKey($uid) { |
110 | - return 'user-' . $uid . '-lastSeenOn'; |
|
110 | + return 'user-'.$uid.'-lastSeenOn'; |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | * @return string |
116 | 116 | */ |
117 | 117 | protected function getGroupCacheKey($gid) { |
118 | - return 'group-' . $gid . '-lastSeenOn'; |
|
118 | + return 'group-'.$gid.'-lastSeenOn'; |
|
119 | 119 | } |
120 | 120 | |
121 | 121 | /** |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | if ($key === null) { |
179 | 179 | return $prefix; |
180 | 180 | } |
181 | - return $prefix . hash('sha256', $key); |
|
181 | + return $prefix.hash('sha256', $key); |
|
182 | 182 | } |
183 | 183 | |
184 | 184 | /** |
@@ -40,7 +40,7 @@ |
||
40 | 40 | |
41 | 41 | public function afterController($controller, $methodName, Response $response) { |
42 | 42 | $etagHeader = $this->request->getHeader('IF_NONE_MATCH'); |
43 | - if ($etagHeader !== '' && $response->getETag() !== null && trim($etagHeader) === '"' . $response->getETag() . '"') { |
|
43 | + if ($etagHeader !== '' && $response->getETag() !== null && trim($etagHeader) === '"'.$response->getETag().'"') { |
|
44 | 44 | $response->setStatus(Http::STATUS_NOT_MODIFIED); |
45 | 45 | return $response; |
46 | 46 | } |
@@ -31,20 +31,20 @@ |
||
31 | 31 | |
32 | 32 | require '../3rdparty/autoload.php'; |
33 | 33 | |
34 | -$locales = array_map(static function (string $localeCode) { |
|
34 | +$locales = array_map(static function(string $localeCode) { |
|
35 | 35 | return [ |
36 | 36 | 'code' => $localeCode, |
37 | 37 | 'name' => Locale::getDisplayName($localeCode, 'en') |
38 | 38 | ]; |
39 | 39 | }, ResourceBundle::getLocales('')); |
40 | 40 | |
41 | -$locales = array_filter($locales, static function (array $locale) { |
|
41 | +$locales = array_filter($locales, static function(array $locale) { |
|
42 | 42 | return is_array(Punic\Data::explodeLocale($locale['code'])); |
43 | 43 | }); |
44 | 44 | |
45 | 45 | $locales = array_values($locales); |
46 | 46 | |
47 | -if (file_put_contents(__DIR__ . '/locales.json', json_encode($locales, JSON_PRETTY_PRINT)) === false) { |
|
47 | +if (file_put_contents(__DIR__.'/locales.json', json_encode($locales, JSON_PRETTY_PRINT)) === false) { |
|
48 | 48 | echo 'Failed to update locales.json'; |
49 | 49 | exit(1); |
50 | 50 | } |
@@ -62,10 +62,10 @@ |
||
62 | 62 | if (is_array($value)) { |
63 | 63 | $output->writeln(" <comment>>></comment> $key:"); |
64 | 64 | foreach ($value as $subKey => $subValue) { |
65 | - $output->writeln(" <comment>>></comment> $subKey: " . str_repeat(' ', 46 - strlen($subKey)) . $subValue); |
|
65 | + $output->writeln(" <comment>>></comment> $subKey: ".str_repeat(' ', 46 - strlen($subKey)).$subValue); |
|
66 | 66 | } |
67 | 67 | } else { |
68 | - $output->writeln(" <comment>>></comment> $key: " . str_repeat(' ', 50 - strlen($key)) . $value); |
|
68 | + $output->writeln(" <comment>>></comment> $key: ".str_repeat(' ', 50 - strlen($key)).$value); |
|
69 | 69 | } |
70 | 70 | } |
71 | 71 | return 0; |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | protected function execute(InputInterface $input, OutputInterface $output): int { |
54 | 54 | $outputType = $input->getOption('output'); |
55 | 55 | if ($outputType === self::OUTPUT_FORMAT_JSON || $outputType === self::OUTPUT_FORMAT_JSON_PRETTY) { |
56 | - $certificates = array_map(function (ICertificate $certificate) { |
|
56 | + $certificates = array_map(function(ICertificate $certificate) { |
|
57 | 57 | return [ |
58 | 58 | 'name' => $certificate->getName(), |
59 | 59 | 'common_name' => $certificate->getCommonName(), |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | 'Issued By' |
80 | 80 | ]); |
81 | 81 | |
82 | - $rows = array_map(function (ICertificate $certificate) { |
|
82 | + $rows = array_map(function(ICertificate $certificate) { |
|
83 | 83 | return [ |
84 | 84 | $certificate->getName(), |
85 | 85 | $certificate->getCommonName(), |
@@ -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; |
@@ -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 | } |
@@ -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 |