Completed
Push — master ( 6895ba...ed9b63 )
by
unknown
31:37
created
apps/updatenotification/lib/Command/Check.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 		// Server
51 51
 		$r = $this->updateChecker->getUpdateState();
52 52
 		if (isset($r['updateAvailable']) && $r['updateAvailable']) {
53
-			$output->writeln($r['updateVersionString'] . ' is available. Get more information on how to update at ' . $r['updateLink'] . '.');
53
+			$output->writeln($r['updateVersionString'].' is available. Get more information on how to update at '.$r['updateLink'].'.');
54 54
 			$updatesAvailableCount += 1;
55 55
 		}
56 56
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 		foreach ($apps as $app) {
61 61
 			$update = $this->installer->isUpdateAvailable($app);
62 62
 			if ($update !== false) {
63
-				$output->writeln('Update for ' . $app . ' to version ' . $update . ' is available.');
63
+				$output->writeln('Update for '.$app.' to version '.$update.' is available.');
64 64
 				$updatesAvailableCount += 1;
65 65
 			}
66 66
 		}
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 		} elseif ($updatesAvailableCount === 1) {
72 72
 			$output->writeln('<comment>1 update available</comment>');
73 73
 		} else {
74
-			$output->writeln('<comment>' . $updatesAvailableCount . ' updates available</comment>');
74
+			$output->writeln('<comment>'.$updatesAvailableCount.' updates available</comment>');
75 75
 		}
76 76
 
77 77
 		return 0;
Please login to merge, or discard this patch.
apps/updatenotification/lib/AppInfo/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 	}
46 46
 
47 47
 	public function boot(IBootContext $context): void {
48
-		$context->injectFn(function (IConfig $config,
48
+		$context->injectFn(function(IConfig $config,
49 49
 			IUserSession $userSession,
50 50
 			IAppManager $appManager,
51 51
 			IGroupManager $groupManager,
Please login to merge, or discard this patch.
apps/updatenotification/lib/Settings/Admin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,6 +139,6 @@
 block discarded – undo
139 139
 	}
140 140
 
141 141
 	private function isWebUpdaterRecommended(): bool {
142
-		return (int)$this->userManager->countUsersTotal(100) < 100;
142
+		return (int) $this->userManager->countUsersTotal(100) < 100;
143 143
 	}
144 144
 }
Please login to merge, or discard this patch.
apps/settings/tests/Controller/UsersControllerTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -93,13 +93,13 @@  discard block
 block discarded – undo
93 93
 		$this->initialState = $this->createMock(IInitialState::class);
94 94
 
95 95
 		$this->l->method('t')
96
-			->willReturnCallback(function ($text, $parameters = []) {
96
+			->willReturnCallback(function($text, $parameters = []) {
97 97
 				return vsprintf($text, $parameters);
98 98
 			});
99 99
 
100 100
 		$this->encryptionModule = $this->createMock(IEncryptionModule::class);
101 101
 		$this->encryptionManager->expects($this->any())->method('getEncryptionModules')
102
-			->willReturn(['encryptionModule' => ['callback' => function () {
102
+			->willReturn(['encryptionModule' => ['callback' => function() {
103 103
 				return $this->encryptionModule;
104 104
 			}]]);
105 105
 	}
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 		$account = $this->createMock(IAccount::class);
235 235
 		$account->expects($this->any())
236 236
 			->method('getProperty')
237
-			->willReturnCallback(function (string $propertyName) use ($propertyMocks) {
237
+			->willReturnCallback(function(string $propertyName) use ($propertyMocks) {
238 238
 				if (isset($propertyMocks[$propertyName])) {
239 239
 					return $propertyMocks[$propertyName];
240 240
 				}
@@ -707,7 +707,7 @@  discard block
 block discarded – undo
707 707
 			->willReturn($user);
708 708
 		$account->expects($this->any())
709 709
 			->method('getProperty')
710
-			->willReturnCallback(function (string $propertyName) use ($properties) {
710
+			->willReturnCallback(function(string $propertyName) use ($properties) {
711 711
 				return $properties[$propertyName];
712 712
 			});
713 713
 
@@ -814,7 +814,7 @@  discard block
 block discarded – undo
814 814
 		}
815 815
 		$userAccount->expects($this->any())
816 816
 			->method('getProperty')
817
-			->willReturnCallback(function (string $propertyName) use ($propertyMocks) {
817
+			->willReturnCallback(function(string $propertyName) use ($propertyMocks) {
818 818
 				return $propertyMocks[$propertyName];
819 819
 			});
820 820
 
@@ -881,9 +881,9 @@  discard block
 block discarded – undo
881 881
 		$message = 'Use my Federated Cloud ID to share with me: [email protected]';
882 882
 		$signature = 'theSignature';
883 883
 
884
-		$code = $message . ' ' . $signature;
884
+		$code = $message.' '.$signature;
885 885
 		if ($type === IAccountManager::PROPERTY_TWITTER || $type === IAccountManager::PROPERTY_FEDIVERSE) {
886
-			$code = $message . ' ' . md5($signature);
886
+			$code = $message.' '.md5($signature);
887 887
 		}
888 888
 
889 889
 		$controller = $this->getController(false, ['signMessage', 'getCurrentTime']);
@@ -990,7 +990,7 @@  discard block
 block discarded – undo
990 990
 			->willReturn($encryptionEnabled);
991 991
 		$this->encryptionManager->expects($this->any())
992 992
 			->method('getEncryptionModule')
993
-			->willReturnCallback(function () use ($encryptionModuleLoaded) {
993
+			->willReturnCallback(function() use ($encryptionModuleLoaded) {
994 994
 				if ($encryptionModuleLoaded) {
995 995
 					return $this->encryptionModule;
996 996
 				} else {
Please login to merge, or discard this patch.
apps/settings/tests/Controller/AuthSettingsControllerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -426,7 +426,7 @@
 block discarded – undo
426 426
 		$token = $this->createMock(IToken::class);
427 427
 		$token->expects($this->once())
428 428
 			->method('getUID')
429
-			->willReturn('definetly-not-' . $this->uid);
429
+			->willReturn('definetly-not-'.$this->uid);
430 430
 		$this->mockGetTokenById(123, $token);
431 431
 
432 432
 		$this->remoteWipe->expects($this->never())
Please login to merge, or discard this patch.
apps/settings/tests/Settings/Admin/MailTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 		$finder->expects(self::once())
44 44
 			->method('findBinaryPath')
45 45
 			->with('sendmail')
46
-			->willReturn($sendmail ? '/usr/bin/sendmail': false);
46
+			->willReturn($sendmail ? '/usr/bin/sendmail' : false);
47 47
 		$this->overwriteService(IBinaryFinder::class, $finder);
48 48
 
49 49
 		$this->config
Please login to merge, or discard this patch.
apps/settings/tests/Settings/Admin/SecurityTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
 		$expected = new TemplateResponse(
108 108
 			'settings',
109 109
 			'settings/admin/security',
110
-			[ ],
110
+			[],
111 111
 			''
112 112
 		);
113 113
 		$this->assertEquals($expected, $this->admin->getForm());
Please login to merge, or discard this patch.
apps/settings/composer/composer/installed.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
         'version' => 'dev-master',
6 6
         'reference' => '071fe73d0a28f44c6e24cc87fbd00e54a3b92b57',
7 7
         'type' => 'library',
8
-        'install_path' => __DIR__ . '/../',
8
+        'install_path' => __DIR__.'/../',
9 9
         'aliases' => array(),
10 10
         'dev' => false,
11 11
     ),
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
             'version' => 'dev-master',
16 16
             'reference' => '071fe73d0a28f44c6e24cc87fbd00e54a3b92b57',
17 17
             'type' => 'library',
18
-            'install_path' => __DIR__ . '/../',
18
+            'install_path' => __DIR__.'/../',
19 19
             'aliases' => array(),
20 20
             'dev_requirement' => false,
21 21
         ),
Please login to merge, or discard this patch.
apps/settings/templates/settings/admin/additional-mail.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -35,19 +35,19 @@  discard block
 block discarded – undo
35 35
 
36 36
 <div class="section" id="mail_general_settings">
37 37
 <?php if ($_['mail_smtpmode'] === 'null') { ?>
38
-	<h2><?php p($l->t('Email server'));?></h2>
38
+	<h2><?php p($l->t('Email server')); ?></h2>
39 39
 
40 40
 	<p>
41 41
 	 <?php p($l->t('Mail delivery is disabled by instance config "%s".', ['mail_smtpmode'])); ?>
42 42
 	</p>
43 43
 <?php } else { ?>
44 44
 	<form id="mail_general_settings_form" class="mail_settings">
45
-		<h2><?php p($l->t('Email server'));?></h2>
45
+		<h2><?php p($l->t('Email server')); ?></h2>
46 46
 		<a 	target="_blank"
47 47
 			rel="noreferrer noopener" class="icon-info"
48
-			title="<?php p($l->t('Open documentation'));?>"
48
+			title="<?php p($l->t('Open documentation')); ?>"
49 49
 			href="<?php p(link_to_docs('admin-email')); ?>"
50
-			aria-label="<?php p($l->t('Open documentation'));?>"></a>
50
+			aria-label="<?php p($l->t('Open documentation')); ?>"></a>
51 51
 		<p class="settings-hint">
52 52
 			  <?php p($l->t('It is important to set up this server to be able to send emails, like for password reset and notifications.')); ?>
53 53
 		</p>
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 						$selected = 'selected="selected"';
63 63
 					endif; ?>
64 64
 					<option value="<?php p($smtpmode[0])?>" <?php p($selected) ?>><?php p($smtpmode[1]) ?></option>
65
-				<?php endforeach;?>
65
+				<?php endforeach; ?>
66 66
 			</select>
67 67
 		</p>
68 68
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 						$selected = 'selected="selected"';
84 84
 					endif; ?>
85 85
 					<option value="<?php p($secure)?>" <?php p($selected) ?>><?php p($name) ?></option>
86
-				<?php endforeach;?>
86
+				<?php endforeach; ?>
87 87
 			</select>
88 88
 		</p>
89 89
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 			<select name="mail_sendmailmode" id="mail_sendmailmode">
95 95
 				<?php foreach ($mail_sendmailmode as $sendmailmodeValue => $sendmailmodeLabel): ?>
96 96
 					<option value="<?php p($sendmailmodeValue)?>" <?= $sendmailmodeValue === $_['mail_sendmailmode'] ? 'selected="selected"' : '' ?>><?php p($sendmailmodeLabel) ?></option>
97
-				<?php endforeach;?>
97
+				<?php endforeach; ?>
98 98
 			</select>
99 99
 		</p>
100 100
 
Please login to merge, or discard this patch.