Completed
Push — master ( 176f57...2c53d3 )
by Daniel
32:12
created
index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
  * SPDX-License-Identifier: AGPL-3.0-only
9 9
  */
10 10
 
11
-require_once __DIR__ . '/lib/versioncheck.php';
11
+require_once __DIR__.'/lib/versioncheck.php';
12 12
 
13 13
 use OC\ServiceUnavailableException;
14 14
 use OC\User\LoginException;
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 use Psr\Log\LoggerInterface;
21 21
 
22 22
 try {
23
-	require_once __DIR__ . '/lib/base.php';
23
+	require_once __DIR__.'/lib/base.php';
24 24
 
25 25
 	OC::handleRequest();
26 26
 } catch (ServiceUnavailableException $ex) {
Please login to merge, or discard this patch.
apps/updatenotification/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' => 'b1797842784b250fb01ed5e3bf130705eb94751b',
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' => 'b1797842784b250fb01ed5e3bf130705eb94751b',
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/updatenotification/lib/Listener/AppUpdateEventListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 		]);
53 53
 
54 54
 		$this->logger->debug(
55
-			'Scheduled app update notification for "' . $event->getAppId() . '"',
55
+			'Scheduled app update notification for "'.$event->getAppId().'"',
56 56
 			[
57 57
 				'app' => Application::APP_NAME,
58 58
 			],
Please login to merge, or discard this patch.
apps/updatenotification/lib/Manager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
 		$path = $this->getChangelogFile($appId, $languageCode);
43 43
 		if ($path === null) {
44
-			$this->logger->debug('No changelog file found for app ' . $appId . ' and language code ' . $languageCode);
44
+			$this->logger->debug('No changelog file found for app '.$appId.' and language code '.$languageCode);
45 45
 			return null;
46 46
 		}
47 47
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 			$appPath = $this->appManager->getAppPath($appId);
61 61
 			$files = ["CHANGELOG.$languageCode.md", 'CHANGELOG.en.md'];
62 62
 			foreach ($files as $file) {
63
-				$path = $appPath . '/' . $file;
63
+				$path = $appPath.'/'.$file;
64 64
 				if (is_file($path)) {
65 65
 					return $path;
66 66
 				}
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 		);
103 103
 
104 104
 		if ($index === null) {
105
-			$this->logger->debug('No changelog entry for version ' . $version . ' found', ['file_path' => $path]);
105
+			$this->logger->debug('No changelog entry for version '.$version.' found', ['file_path' => $path]);
106 106
 			return null;
107 107
 		}
108 108
 
Please login to merge, or discard this patch.
apps/updatenotification/lib/BackgroundJob/AppUpdatedNotifications.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 		$dateTime->setTimestamp($timestamp);
46 46
 
47 47
 		$this->logger->debug(
48
-			'Running background job to create app update notifications for "' . $appId . '"',
48
+			'Running background job to create app update notifications for "'.$appId.'"',
49 49
 			[
50 50
 				'app' => Application::APP_NAME,
51 51
 			],
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 		$isDefer = $this->notificationManager->defer();
89 89
 
90 90
 		// Notify all seen users about the app update
91
-		$this->userManager->callForSeenUsers(function (IUser $user) use ($guestsEnabled, $appId, $notification): void {
91
+		$this->userManager->callForSeenUsers(function(IUser $user) use ($guestsEnabled, $appId, $notification): void {
92 92
 			if (!$guestsEnabled && ($user->getBackendClassName() === '\OCA\Guests\UserBackend')) {
93 93
 				return;
94 94
 			}
Please login to merge, or discard this patch.
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.