Passed
Push — master ( f0dd71...c56a27 )
by Christoph
11:49 queued 12s
created
apps/files_external/lib/Lib/Storage/FTP.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 use Icewind\Streams\CallbackWrapper;
39 39
 use Icewind\Streams\RetryWrapper;
40 40
 
41
-class FTP extends StreamWrapper{
41
+class FTP extends StreamWrapper {
42 42
 	private $password;
43 43
 	private $user;
44 44
 	private $host;
@@ -47,17 +47,17 @@  discard block
 block discarded – undo
47 47
 
48 48
 	public function __construct($params) {
49 49
 		if (isset($params['host']) && isset($params['user']) && isset($params['password'])) {
50
-			$this->host=$params['host'];
51
-			$this->user=$params['user'];
52
-			$this->password=$params['password'];
50
+			$this->host = $params['host'];
51
+			$this->user = $params['user'];
52
+			$this->password = $params['password'];
53 53
 			if (isset($params['secure'])) {
54 54
 				$this->secure = $params['secure'];
55 55
 			} else {
56 56
 				$this->secure = false;
57 57
 			}
58
-			$this->root=isset($params['root'])?$params['root']:'/';
59
-			if ( ! $this->root || $this->root[0]!=='/') {
60
-				$this->root='/'.$this->root;
58
+			$this->root = isset($params['root']) ? $params['root'] : '/';
59
+			if (!$this->root || $this->root[0] !== '/') {
60
+				$this->root = '/'.$this->root;
61 61
 			}
62 62
 			if (substr($this->root, -1) !== '/') {
63 63
 				$this->root .= '/';
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 	}
70 70
 
71 71
 	public function getId() {
72
-		return 'ftp::' . $this->user . '@' . $this->host . '/' . $this->root;
72
+		return 'ftp::'.$this->user.'@'.$this->host.'/'.$this->root;
73 73
 	}
74 74
 
75 75
 	/**
@@ -78,11 +78,11 @@  discard block
 block discarded – undo
78 78
 	 * @return string
79 79
 	 */
80 80
 	public function constructUrl($path) {
81
-		$url='ftp';
81
+		$url = 'ftp';
82 82
 		if ($this->secure) {
83
-			$url.='s';
83
+			$url .= 's';
84 84
 		}
85
-		$url.='://'.urlencode($this->user).':'.urlencode($this->password).'@'.$this->host.$this->root.$path;
85
+		$url .= '://'.urlencode($this->user).':'.urlencode($this->password).'@'.$this->host.$this->root.$path;
86 86
 		return $url;
87 87
 	}
88 88
 
@@ -101,8 +101,8 @@  discard block
 block discarded – undo
101 101
 			return $result;
102 102
 		}
103 103
 	}
104
-	public function fopen($path,$mode) {
105
-		switch($mode) {
104
+	public function fopen($path, $mode) {
105
+		switch ($mode) {
106 106
 			case 'r':
107 107
 			case 'rb':
108 108
 			case 'w':
@@ -122,17 +122,17 @@  discard block
 block discarded – undo
122 122
 			case 'c':
123 123
 			case 'c+':
124 124
 				//emulate these
125
-				if (strrpos($path, '.')!==false) {
126
-					$ext=substr($path, strrpos($path, '.'));
125
+				if (strrpos($path, '.') !== false) {
126
+					$ext = substr($path, strrpos($path, '.'));
127 127
 				} else {
128
-					$ext='';
128
+					$ext = '';
129 129
 				}
130 130
 				$tmpFile = \OC::$server->getTempManager()->getTemporaryFile();
131 131
 				if ($this->file_exists($path)) {
132 132
 					$this->getFile($path, $tmpFile);
133 133
 				}
134 134
 				$handle = fopen($tmpFile, $mode);
135
-				return CallbackWrapper::wrap($handle, null, null, function () use ($path, $tmpFile) {
135
+				return CallbackWrapper::wrap($handle, null, null, function() use ($path, $tmpFile) {
136 136
 					$this->writeBack($tmpFile, $path);
137 137
 				});
138 138
 		}
Please login to merge, or discard this patch.
apps/files_external/lib/Lib/Storage/SFTP.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -66,11 +66,11 @@  discard block
 block discarded – undo
66 66
 		$input = $host;
67 67
 		if (strpos($host, '://') === false) {
68 68
 			// add a protocol to fix parse_url behavior with ipv6
69
-			$host = 'http://' . $host;
69
+			$host = 'http://'.$host;
70 70
 		}
71 71
 
72 72
 		$parsed = parse_url($host);
73
-		if(is_array($parsed) && isset($parsed['port'])) {
73
+		if (is_array($parsed) && isset($parsed['port'])) {
74 74
 			return [$parsed['host'], $parsed['port']];
75 75
 		} else if (is_array($parsed)) {
76 76
 			return [$parsed['host'], 22];
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 		// Register sftp://
87 87
 		Stream::register();
88 88
 
89
-		$parsedHost =  $this->splitHost($params['host']);
89
+		$parsedHost = $this->splitHost($params['host']);
90 90
 
91 91
 		$this->host = $parsedHost[0];
92 92
 		$this->port = $parsedHost[1];
@@ -110,8 +110,8 @@  discard block
 block discarded – undo
110 110
 		$this->root
111 111
 			= isset($params['root']) ? $this->cleanPath($params['root']) : '/';
112 112
 
113
-		$this->root = '/' . ltrim($this->root, '/');
114
-		$this->root = rtrim($this->root, '/') . '/';
113
+		$this->root = '/'.ltrim($this->root, '/');
114
+		$this->root = rtrim($this->root, '/').'/';
115 115
 	}
116 116
 
117 117
 	/**
@@ -170,14 +170,14 @@  discard block
 block discarded – undo
170 170
 	 * {@inheritdoc}
171 171
 	 */
172 172
 	public function getId() {
173
-		$id = 'sftp::' . $this->user . '@' . $this->host;
173
+		$id = 'sftp::'.$this->user.'@'.$this->host;
174 174
 		if ($this->port !== 22) {
175
-			$id .= ':' . $this->port;
175
+			$id .= ':'.$this->port;
176 176
 		}
177 177
 		// note: this will double the root slash,
178 178
 		// we should not change it to keep compatible with
179 179
 		// old storage ids
180
-		$id .= '/' . $this->root;
180
+		$id .= '/'.$this->root;
181 181
 		return $id;
182 182
 	}
183 183
 
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 	 * @return string
208 208
 	 */
209 209
 	private function absPath($path) {
210
-		return $this->root . $this->cleanPath($path);
210
+		return $this->root.$this->cleanPath($path);
211 211
 	}
212 212
 
213 213
 	/**
@@ -217,8 +217,8 @@  discard block
 block discarded – undo
217 217
 		try {
218 218
 			$storage_view = \OCP\Files::getStorage('files_external');
219 219
 			if ($storage_view) {
220
-				return \OC::$server->getConfig()->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data') .
221
-					$storage_view->getAbsolutePath('') .
220
+				return \OC::$server->getConfig()->getSystemValue('datadirectory', \OC::$SERVERROOT.'/data').
221
+					$storage_view->getAbsolutePath('').
222 222
 					'ssh_hostKeys';
223 223
 			}
224 224
 		} catch (\Exception $e) {
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
 			if ($keyPath && file_exists($keyPath)) {
237 237
 				$fp = fopen($keyPath, 'w');
238 238
 				foreach ($keys as $host => $key) {
239
-					fwrite($fp, $host . '::' . $key . "\n");
239
+					fwrite($fp, $host.'::'.$key."\n");
240 240
 				}
241 241
 				fclose($fp);
242 242
 				return true;
@@ -308,15 +308,15 @@  discard block
 block discarded – undo
308 308
 				return false;
309 309
 			}
310 310
 
311
-			$id = md5('sftp:' . $path);
311
+			$id = md5('sftp:'.$path);
312 312
 			$dirStream = [];
313
-			foreach($list as $file) {
313
+			foreach ($list as $file) {
314 314
 				if ($file !== '.' && $file !== '..') {
315 315
 					$dirStream[] = $file;
316 316
 				}
317 317
 			}
318 318
 			return IteratorDirectory::wrap($dirStream);
319
-		} catch(\Exception $e) {
319
+		} catch (\Exception $e) {
320 320
 			return false;
321 321
 		}
322 322
 	}
@@ -368,21 +368,21 @@  discard block
 block discarded – undo
368 368
 	public function fopen($path, $mode) {
369 369
 		try {
370 370
 			$absPath = $this->absPath($path);
371
-			switch($mode) {
371
+			switch ($mode) {
372 372
 				case 'r':
373 373
 				case 'rb':
374
-					if ( !$this->file_exists($path)) {
374
+					if (!$this->file_exists($path)) {
375 375
 						return false;
376 376
 					}
377 377
 					SFTPReadStream::register();
378 378
 					$context = stream_context_create(['sftp' => ['session' => $this->getConnection()]]);
379
-					$handle = fopen('sftpread://' . trim($absPath, '/'), 'r', false, $context);
379
+					$handle = fopen('sftpread://'.trim($absPath, '/'), 'r', false, $context);
380 380
 					return RetryWrapper::wrap($handle);
381 381
 				case 'w':
382 382
 				case 'wb':
383 383
 					SFTPWriteStream::register();
384 384
 					$context = stream_context_create(['sftp' => ['session' => $this->getConnection()]]);
385
-					return fopen('sftpwrite://' . trim($absPath, '/'), 'w', false, $context);
385
+					return fopen('sftpwrite://'.trim($absPath, '/'), 'w', false, $context);
386 386
 				case 'a':
387 387
 				case 'ab':
388 388
 				case 'r+':
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
 	/**
406 406
 	 * {@inheritdoc}
407 407
 	 */
408
-	public function touch($path, $mtime=null) {
408
+	public function touch($path, $mtime = null) {
409 409
 		try {
410 410
 			if (!is_null($mtime)) {
411 411
 				return false;
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
 		// Do not pass the password here. We want to use the Net_SFTP object
481 481
 		// supplied via stream context or fail. We only supply username and
482 482
 		// hostname because this might show up in logs (they are not used).
483
-		$url = 'sftp://' . urlencode($this->user) . '@' . $this->host . ':' . $this->port . $this->root . $path;
483
+		$url = 'sftp://'.urlencode($this->user).'@'.$this->host.':'.$this->port.$this->root.$path;
484 484
 		return $url;
485 485
 	}
486 486
 }
Please login to merge, or discard this patch.
apps/files/lib/AppInfo/Application.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
 
51 51
 	public const APP_ID = 'files';
52 52
 
53
-	public function __construct(array $urlParams=[]) {
53
+	public function __construct(array $urlParams = []) {
54 54
 		parent::__construct(self::APP_ID, $urlParams);
55 55
 		$container = $this->getContainer();
56 56
 		$server = $container->getServer();
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 		/**
59 59
 		 * Controllers
60 60
 		 */
61
-		$container->registerService('APIController', function (IContainer $c) use ($server) {
61
+		$container->registerService('APIController', function(IContainer $c) use ($server) {
62 62
 			return new ApiController(
63 63
 				$c->query('AppName'),
64 64
 				$c->query('Request'),
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 		/**
75 75
 		 * Services
76 76
 		 */
77
-		$container->registerService('TagService', function (IContainer $c) use ($server) {
77
+		$container->registerService('TagService', function(IContainer $c) use ($server) {
78 78
 			$homeFolder = $c->query('ServerContainer')->getUserFolder();
79 79
 			return new TagService(
80 80
 				$c->query('ServerContainer')->getUserSession(),
Please login to merge, or discard this patch.
apps/updatenotification/lib/Controller/APIController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
 		// Get list of installed custom apps
80 80
 		$installedApps = $this->appManager->getInstalledApps();
81
-		$installedApps = array_filter($installedApps, function ($app) {
81
+		$installedApps = array_filter($installedApps, function($app) {
82 82
 			try {
83 83
 				$this->appManager->getAppPath($app);
84 84
 			} catch (AppPathNotFoundException $e) {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 		$this->appFetcher->setVersion($newVersion, 'future-apps.json', false);
98 98
 
99 99
 		// Apps available on the app store for that version
100
-		$availableApps = array_map(function (array $app) {
100
+		$availableApps = array_map(function(array $app) {
101 101
 			return $app['id'];
102 102
 		}, $this->appFetcher->get());
103 103
 
Please login to merge, or discard this patch.
apps/dav/appinfo/app.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -39,14 +39,14 @@  discard block
 block discarded – undo
39 39
 $app = \OC::$server->query(Application::class);
40 40
 $app->registerHooks();
41 41
 
42
-\OC::$server->registerService('CardDAVSyncService', function () use ($app) {
42
+\OC::$server->registerService('CardDAVSyncService', function() use ($app) {
43 43
 	return $app->getSyncService();
44 44
 });
45 45
 
46 46
 $eventDispatcher = \OC::$server->getEventDispatcher();
47 47
 
48 48
 $eventDispatcher->addListener('OCP\Federation\TrustedServerEvent::remove',
49
-	function (GenericEvent $event) use ($app) {
49
+	function(GenericEvent $event) use ($app) {
50 50
 		/** @var CardDavBackend $cardDavBackend */
51 51
 		$cardDavBackend = $app->getContainer()->query(CardDavBackend::class);
52 52
 		$addressBookUri = $event->getSubject();
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 );
59 59
 
60 60
 $eventDispatcher->addListener('\OCA\DAV\CalDAV\CalDavBackend::createSubscription',
61
-	function (GenericEvent $event) use ($app) {
61
+	function(GenericEvent $event) use ($app) {
62 62
 		$jobList = $app->getContainer()->getServer()->getJobList();
63 63
 		$subscriptionData = $event->getArgument('subscriptionData');
64 64
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 );
78 78
 
79 79
 $eventDispatcher->addListener('\OCA\DAV\CalDAV\CalDavBackend::deleteSubscription',
80
-	function (GenericEvent $event) use ($app) {
80
+	function(GenericEvent $event) use ($app) {
81 81
 		$jobList = $app->getContainer()->getServer()->getJobList();
82 82
 		$subscriptionData = $event->getArgument('subscriptionData');
83 83
 
@@ -92,12 +92,12 @@  discard block
 block discarded – undo
92 92
 	}
93 93
 );
94 94
 
95
-$eventHandler = function () use ($app) {
95
+$eventHandler = function() use ($app) {
96 96
 	try {
97 97
 		$job = $app->getContainer()->query(\OCA\DAV\BackgroundJob\UpdateCalendarResourcesRoomsBackgroundJob::class);
98 98
 		$job->run([]);
99 99
 		$app->getContainer()->getServer()->getJobList()->setLastRun($job);
100
-	} catch(\Exception $ex) {
100
+	} catch (\Exception $ex) {
101 101
 		$app->getContainer()->getServer()->getLogger()->logException($ex);
102 102
 	}
103 103
 };
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 $eventDispatcher->addListener('\OCP\Calendar\Room\ForceRefreshEvent', $eventHandler);
107 107
 
108 108
 $cm = \OC::$server->getContactsManager();
109
-$cm->register(function () use ($cm, $app) {
109
+$cm->register(function() use ($cm, $app) {
110 110
 	$user = \OC::$server->getUserSession()->getUser();
111 111
 	if (!is_null($user)) {
112 112
 		$app->setupContactsProvider($cm, $user->getUID());
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 });
117 117
 
118 118
 $calendarManager = \OC::$server->getCalendarManager();
119
-$calendarManager->register(function () use ($calendarManager, $app) {
119
+$calendarManager->register(function() use ($calendarManager, $app) {
120 120
 	$user = \OC::$server->getUserSession()->getUser();
121 121
 	if ($user !== null) {
122 122
 		$app->setupCalendarProvider($calendarManager, $user->getUID());
Please login to merge, or discard this patch.
apps/dav/lib/AppInfo/Application.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 		$container = $this->getContainer();
66 66
 		$server = $container->getServer();
67 67
 
68
-		$container->registerService(PhotoCache::class, function (SimpleContainer $s) use ($server) {
68
+		$container->registerService(PhotoCache::class, function(SimpleContainer $s) use ($server) {
69 69
 			return new PhotoCache(
70 70
 				$server->getAppDataDir('dav-photocache'),
71 71
 				$server->getLogger()
@@ -116,13 +116,13 @@  discard block
 block discarded – undo
116 116
 		$dispatcher = $this->getContainer()->getServer()->getEventDispatcher();
117 117
 
118 118
 		// first time login event setup
119
-		$dispatcher->addListener(IUser::class . '::firstLogin', function ($event) use ($hm) {
119
+		$dispatcher->addListener(IUser::class.'::firstLogin', function($event) use ($hm) {
120 120
 			if ($event instanceof GenericEvent) {
121 121
 				$hm->firstLogin($event->getSubject());
122 122
 			}
123 123
 		});
124 124
 
125
-		$birthdayListener = function ($event) {
125
+		$birthdayListener = function($event) {
126 126
 			if ($event instanceof GenericEvent) {
127 127
 				/** @var BirthdayService $b */
128 128
 				$b = $this->getContainer()->query(BirthdayService::class);
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 
137 137
 		$dispatcher->addListener('\OCA\DAV\CardDAV\CardDavBackend::createCard', $birthdayListener);
138 138
 		$dispatcher->addListener('\OCA\DAV\CardDAV\CardDavBackend::updateCard', $birthdayListener);
139
-		$dispatcher->addListener('\OCA\DAV\CardDAV\CardDavBackend::deleteCard', function ($event) {
139
+		$dispatcher->addListener('\OCA\DAV\CardDAV\CardDavBackend::deleteCard', function($event) {
140 140
 			if ($event instanceof GenericEvent) {
141 141
 				/** @var BirthdayService $b */
142 142
 				$b = $this->getContainer()->query(BirthdayService::class);
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 			}
148 148
 		});
149 149
 
150
-		$clearPhotoCache = function ($event) {
150
+		$clearPhotoCache = function($event) {
151 151
 			if ($event instanceof GenericEvent) {
152 152
 				/** @var PhotoCache $p */
153 153
 				$p = $this->getContainer()->query(PhotoCache::class);
@@ -160,20 +160,20 @@  discard block
 block discarded – undo
160 160
 		$dispatcher->addListener('\OCA\DAV\CardDAV\CardDavBackend::updateCard', $clearPhotoCache);
161 161
 		$dispatcher->addListener('\OCA\DAV\CardDAV\CardDavBackend::deleteCard', $clearPhotoCache);
162 162
 
163
-		$dispatcher->addListener('OC\AccountManager::userUpdated', function (GenericEvent $event) {
163
+		$dispatcher->addListener('OC\AccountManager::userUpdated', function(GenericEvent $event) {
164 164
 			$user = $event->getSubject();
165 165
 			$syncService = $this->getContainer()->query(SyncService::class);
166 166
 			$syncService->updateUser($user);
167 167
 		});
168 168
 
169
-		$dispatcher->addListener('\OCA\DAV\CalDAV\CalDavBackend::createCalendar', function (GenericEvent $event) {
169
+		$dispatcher->addListener('\OCA\DAV\CalDAV\CalDavBackend::createCalendar', function(GenericEvent $event) {
170 170
 			/** @var Backend $backend */
171 171
 			$backend = $this->getContainer()->query(Backend::class);
172 172
 			$backend->onCalendarAdd(
173 173
 				$event->getArgument('calendarData')
174 174
 			);
175 175
 		});
176
-		$dispatcher->addListener('\OCA\DAV\CalDAV\CalDavBackend::updateCalendar', function (GenericEvent $event) {
176
+		$dispatcher->addListener('\OCA\DAV\CalDAV\CalDavBackend::updateCalendar', function(GenericEvent $event) {
177 177
 			/** @var Backend $backend */
178 178
 			$backend = $this->getContainer()->query(Backend::class);
179 179
 			$backend->onCalendarUpdate(
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 				$event->getArgument('propertyMutations')
183 183
 			);
184 184
 		});
185
-		$dispatcher->addListener('\OCA\DAV\CalDAV\CalDavBackend::deleteCalendar', function (GenericEvent $event) {
185
+		$dispatcher->addListener('\OCA\DAV\CalDAV\CalDavBackend::deleteCalendar', function(GenericEvent $event) {
186 186
 			/** @var Backend $backend */
187 187
 			$backend = $this->getContainer()->query(Backend::class);
188 188
 			$backend->onCalendarDelete(
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 				$event->getArgument('calendarId')
196 196
 			);
197 197
 		});
198
-		$dispatcher->addListener('\OCA\DAV\CalDAV\CalDavBackend::updateShares', function (GenericEvent $event) {
198
+		$dispatcher->addListener('\OCA\DAV\CalDAV\CalDavBackend::updateShares', function(GenericEvent $event) {
199 199
 			/** @var Backend $backend */
200 200
 			$backend = $this->getContainer()->query(Backend::class);
201 201
 			$backend->onCalendarUpdateShares(
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 			// Here we should recalculate if reminders should be sent to new or old sharees
209 209
 		});
210 210
 
211
-		$dispatcher->addListener('\OCA\DAV\CalDAV\CalDavBackend::publishCalendar', function (GenericEvent $event) {
211
+		$dispatcher->addListener('\OCA\DAV\CalDAV\CalDavBackend::publishCalendar', function(GenericEvent $event) {
212 212
 			/** @var Backend $backend */
213 213
 			$backend = $this->getContainer()->query(Backend::class);
214 214
 			$backend->onCalendarPublication(
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 			);
218 218
 		});
219 219
 
220
-		$listener = function (GenericEvent $event, $eventName) {
220
+		$listener = function(GenericEvent $event, $eventName) {
221 221
 			/** @var Backend $backend */
222 222
 			$backend = $this->getContainer()->query(Backend::class);
223 223
 
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
 			$notificationProviderManager->registerProvider(AudioProvider::class);
266 266
 			$notificationProviderManager->registerProvider(EmailProvider::class);
267 267
 			$notificationProviderManager->registerProvider(PushProvider::class);
268
-		} catch(\Exception $ex) {
268
+		} catch (\Exception $ex) {
269 269
 			$this->getContainer()->getServer()->getLogger()->logException($ex);
270 270
 		}
271 271
 	}
Please login to merge, or discard this patch.
apps/dav/lib/AppInfo/PluginManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -272,7 +272,7 @@
 block discarded – undo
272 272
 	 * @param string[] $plugin
273 273
 	 */
274 274
 	private function loadSabreAddressBookPluginsFromInfoXml(array $plugins): void {
275
-		$providers = array_map(function (string $className): IAddressBookProvider {
275
+		$providers = array_map(function(string $className): IAddressBookProvider {
276 276
 			$instance = $this->createPluginInstance($className);
277 277
 			if (!($instance instanceof IAddressBookProvider)) {
278 278
 				throw new \Exception("Sabre address book plugin class '$className' does not implement the \OCA\DAV\CardDAV\Integration\IAddressBookProvider interface");
Please login to merge, or discard this patch.
apps/dav/lib/BackgroundJob/RegisterRegenerateBirthdayCalendars.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 	 * @inheritDoc
58 58
 	 */
59 59
 	public function run($argument) {
60
-		$this->userManager->callForSeenUsers(function (IUser $user) {
60
+		$this->userManager->callForSeenUsers(function(IUser $user) {
61 61
 			$this->jobList->add(GenerateBirthdayCalendarBackgroundJob::class, [
62 62
 				'userId' => $user->getUID(),
63 63
 				'purgeBeforeGenerating' => true
Please login to merge, or discard this patch.
apps/dav/lib/BackgroundJob/UploadCleanup.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
 		$this->jobList = $jobList;
51 51
 
52 52
 		// Run once a day
53
-		$this->setInterval(60*60*24);
53
+		$this->setInterval(60 * 60 * 24);
54 54
 	}
55 55
 
56 56
 	protected function run($argument) {
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 			$uploads = $userRoot->get('uploads');
65 65
 			/** @var Folder $uploadFolder */
66 66
 			$uploadFolder = $uploads->get($folder);
67
-		} catch (NotFoundException|NoUserException $e) {
67
+		} catch (NotFoundException | NoUserException $e) {
68 68
 			$this->jobList->remove(self::class, $argument);
69 69
 			return;
70 70
 		}
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 		// The folder has to be more than a day old
78 78
 		$initial = $uploadFolder->getMTime() < $time;
79 79
 
80
-		$expire = array_reduce($files, function (bool $carry, File $file) use ($time) {
80
+		$expire = array_reduce($files, function(bool $carry, File $file) use ($time) {
81 81
 			return $carry && $file->getMTime() < $time;
82 82
 		}, $initial);
83 83
 
Please login to merge, or discard this patch.