Skip to content

Commit 6312c0d

Browse files
committed
Check style update
Signed-off-by: Carl Schwan <[email protected]>
1 parent aeecb72 commit 6312c0d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+154
-162
lines changed

build/integration/features/bootstrap/WebDav.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ public function userUploadsChunkedFiles($user, $name1, $content1, $name2, $conte
585585
$body .= $content3."\r\n";
586586
$body .= '--'.$boundary."--\r\n";
587587

588-
$stream = fopen('php://temp','r+');
588+
$stream = fopen('php://temp', 'r+');
589589
fwrite($stream, $body);
590590
rewind($stream);
591591

core/Command/Config/System/GetConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ protected function configure() {
6767
* @param OutputInterface $output An OutputInterface instance
6868
* @return int 0 if everything went fine, or an error code
6969
*/
70-
protected function execute(InputInterface $input, OutputInterface $output) {
70+
protected function execute(InputInterface $input, OutputInterface $output): int {
7171
$configNames = $input->getArgument('name');
7272
$configName = array_shift($configNames);
7373
$defaultValue = $input->getOption('default-value');

core/Command/Db/Migrations/ExecuteCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function execute(InputInterface $input, OutputInterface $output): int {
7979
$olderVersions = $ms->getMigratedVersions();
8080
$olderVersions[] = '0';
8181
$olderVersions[] = 'prev';
82-
if (in_array($version, $olderVersions, true)) {
82+
if (in_array($version, $olderVersions, true)) {
8383
$output->writeln('<error>Can not go back to previous migration without debug enabled</error>');
8484
return 1;
8585
}

core/Command/Db/Migrations/GenerateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function execute(InputInterface $input, OutputInterface $output): int {
113113
$appName = $input->getArgument('app');
114114
$version = $input->getArgument('version');
115115

116-
if (!preg_match('/^\d{1,16}$/',$version)) {
116+
if (!preg_match('/^\d{1,16}$/', $version)) {
117117
$output->writeln('<error>The given version is invalid. Only 0-9 are allowed (max. 16 digits)</error>');
118118
return 1;
119119
}

core/Command/Upgrade.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,7 @@ function ($success) use ($output, $self) {
247247
$output->write('<comment>Maybe an upgrade is already in process. Please check the '
248248
. 'logfile (data/nextcloud.log). If you want to re-run the '
249249
. 'upgrade procedure, remove the "maintenance mode" from '
250-
. 'config.php and call this script again.</comment>'
251-
, true);
250+
. 'config.php and call this script again.</comment>', true);
252251
return self::ERROR_MAINTENANCE_MODE;
253252
} else {
254253
$output->writeln('<info>Nextcloud is already latest version</info>');

core/Command/User/Add.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
107107

108108
$question = new Question('Confirm password: ');
109109
$question->setHidden(true);
110-
$confirm = $helper->ask($input, $output,$question);
110+
$confirm = $helper->ask($input, $output, $question);
111111

112112
if ($password !== $confirm) {
113113
$output->writeln("<error>Passwords did not match!</error>");

core/Command/User/Setting.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
178178
return 1;
179179
}
180180

181-
if ($app === 'settings' && in_array($key , ['email', 'display_name'])) {
181+
if ($app === 'settings' && in_array($key, ['email', 'display_name'])) {
182182
$user = $this->userManager->get($uid);
183183
if ($user instanceof IUser) {
184184
if ($key === 'email') {
@@ -208,7 +208,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
208208
return 1;
209209
}
210210

211-
if ($app === 'settings' && in_array($key , ['email', 'display_name'])) {
211+
if ($app === 'settings' && in_array($key, ['email', 'display_name'])) {
212212
$user = $this->userManager->get($uid);
213213
if ($user instanceof IUser) {
214214
if ($key === 'email') {

core/Migrations/Version15000Date20180926101451.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
4444
$schema = $schemaClosure();
4545

4646
$table = $schema->getTable('authtoken');
47-
$table->addColumn('password_invalid','boolean', [
47+
$table->addColumn('password_invalid', 'boolean', [
4848
'default' => 0,
4949
'notnull' => false,
5050
]);

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
* not return a webpage, so we only print the error page when html is accepted,
6161
* otherwise we reply with a JSON array like the SecurityMiddleware would do.
6262
*/
63-
if (stripos($request->getHeader('Accept'),'html') === false) {
63+
if (stripos($request->getHeader('Accept'), 'html') === false) {
6464
http_response_code(401);
6565
header('Content-Type: application/json; charset=utf-8');
6666
echo json_encode(['message' => $ex->getMessage()]);

lib/private/Accounts/AccountManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ protected function writeUserDataProperties(IQueryBuilder $query, array $data): v
630630
}
631631

632632
// the value col is limited to 255 bytes. It is used for searches only.
633-
$value = $property['value'] ? Util::shortenMultibyteString($property['value'], 255) : '';
633+
$value = $property['value'] ? Util::shortenMultibyteString($property['value'], 255) : '';
634634

635635
$query->setParameter('name', $property['name'])
636636
->setParameter('value', $value);

0 commit comments

Comments
 (0)