Completed
Push — master ( 158b3e...c62fa5 )
by Joas
29:53 queued 14s
created
lib/private/Support/CrashReport/Registry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 				 * There is a circular dependency between the logger and the registry, so
108 108
 				 * we can not inject it. Thus the static call.
109 109
 				 */
110
-				\OC::$server->get(LoggerInterface::class)->critical('Could not load lazy crash reporter: ' . $e->getMessage(), [
110
+				\OC::$server->get(LoggerInterface::class)->critical('Could not load lazy crash reporter: '.$e->getMessage(), [
111 111
 					'exception' => $e,
112 112
 				]);
113 113
 				return;
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 				 * There is a circular dependency between the logger and the registry, so
124 124
 				 * we can not inject it. Thus the static call.
125 125
 				 */
126
-				\OC::$server->get(LoggerInterface::class)->critical('Could not register lazy crash reporter: ' . $e->getMessage(), [
126
+				\OC::$server->get(LoggerInterface::class)->critical('Could not register lazy crash reporter: '.$e->getMessage(), [
127 127
 					'exception' => $e,
128 128
 				]);
129 129
 			}
Please login to merge, or discard this patch.
apps/updatenotification/tests/Settings/AdminTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
 
396 396
 	public static function changesProvider(): array {
397 397
 		return [
398
-			[ #0, all info, en
398
+			[#0, all info, en
399 399
 				[
400 400
 					'changelogURL' => 'https://go.to.changelog',
401 401
 					'whatsNew' => [
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
 					],
416 416
 				]
417 417
 			],
418
-			[ #1, all info, de
418
+			[#1, all info, de
419 419
 				[
420 420
 					'changelogURL' => 'https://go.to.changelog',
421 421
 					'whatsNew' => [
@@ -435,12 +435,12 @@  discard block
 block discarded – undo
435 435
 					]
436 436
 				],
437 437
 			],
438
-			[ #2, just changelog
439
-				[ 'changelogURL' => 'https://go.to.changelog' ],
438
+			[#2, just changelog
439
+				['changelogURL' => 'https://go.to.changelog'],
440 440
 				'en',
441
-				[ 'changelogURL' => 'https://go.to.changelog' ],
441
+				['changelogURL' => 'https://go.to.changelog'],
442 442
 			],
443
-			[ #3 nothing
443
+			[#3 nothing
444 444
 				[],
445 445
 				'ru',
446 446
 				[]
Please login to merge, or discard this patch.
updatenotification/tests/BackgroundJob/UpdateAvailableNotificationsTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
 		$i = 0;
252 252
 		$job->expects($this->exactly(\count($notifications)))
253 253
 			->method('createNotifications')
254
-			->willReturnCallback(function () use ($notifications, &$i): void {
254
+			->willReturnCallback(function() use ($notifications, &$i): void {
255 255
 				$this->assertEquals($notifications[$i], func_get_args());
256 256
 				$i++;
257 257
 			});
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
 	/**
272 272
 	 * @dataProvider dataCreateNotifications
273 273
 	 */
274
-	public function testCreateNotifications(string $app, string $version, string|false $lastNotification, string|false $callDelete, bool $createNotification, ?array $users, ?array $userNotifications): void {
274
+	public function testCreateNotifications(string $app, string $version, string | false $lastNotification, string | false $callDelete, bool $createNotification, ?array $users, ?array $userNotifications): void {
275 275
 		$job = $this->getJob([
276 276
 			'deleteOutdatedNotifications',
277 277
 			'getUsersToNotify',
Please login to merge, or discard this patch.
apps/workflowengine/tests/Check/RequestRemoteAddressTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 		$l = $this->createMock(IL10N::class);
22 22
 		$l->expects($this->any())
23 23
 			->method('t')
24
-			->willReturnCallback(function ($string, $args) {
24
+			->willReturnCallback(function($string, $args) {
25 25
 				return sprintf($string, $args);
26 26
 			});
27 27
 		return $l;
Please login to merge, or discard this patch.
apps/workflowengine/tests/Check/RequestUserAgentTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 		$l = $this->createMock(IL10N::class);
28 28
 		$l->expects($this->any())
29 29
 			->method('t')
30
-			->willReturnCallback(function ($string, $args) {
30
+			->willReturnCallback(function($string, $args) {
31 31
 				return sprintf($string, $args);
32 32
 			});
33 33
 
Please login to merge, or discard this patch.
apps/workflowengine/tests/Check/AbstractStringCheckTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,13 +13,13 @@
 block discarded – undo
13 13
 use PHPUnit\Framework\MockObject\MockObject;
14 14
 
15 15
 class AbstractStringCheckTest extends \Test\TestCase {
16
-	protected function getCheckMock(): AbstractStringCheck|MockObject {
16
+	protected function getCheckMock(): AbstractStringCheck | MockObject {
17 17
 		$l = $this->getMockBuilder(IL10N::class)
18 18
 			->disableOriginalConstructor()
19 19
 			->getMock();
20 20
 		$l->expects($this->any())
21 21
 			->method('t')
22
-			->willReturnCallback(function ($string, $args) {
22
+			->willReturnCallback(function($string, $args) {
23 23
 				return sprintf($string, $args);
24 24
 			});
25 25
 
Please login to merge, or discard this patch.
apps/workflowengine/tests/Check/RequestTimeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 		$l = $this->createMock(IL10N::class);
21 21
 		$l->expects($this->any())
22 22
 			->method('t')
23
-			->willReturnCallback(function ($string, $args) {
23
+			->willReturnCallback(function($string, $args) {
24 24
 				return sprintf($string, $args);
25 25
 			});
26 26
 		return $l;
Please login to merge, or discard this patch.
apps/user_status/tests/Unit/Service/StatusServiceTest.php 1 patch
Spacing   +65 added lines, -65 removed lines patch added patch discarded remove patch
@@ -288,59 +288,59 @@  discard block
 block discarded – undo
288 288
 
289 289
 	public static function setStatusDataProvider(): array {
290 290
 		return [
291
-			['john.doe', 'online', 50,   true,  true,  true, false, false, null, null],
292
-			['john.doe', 'online', 50,   true,  false, true, false, false, null, null],
293
-			['john.doe', 'online', 50,   false, true,  true, false, false, null, null],
294
-			['john.doe', 'online', 50,   false, false, true, false, false, null, null],
295
-			['john.doe', 'online', null, true,  true,  true, true,  false, null, null],
296
-			['john.doe', 'online', null, true,  false, true, true,  false, null, null],
297
-			['john.doe', 'online', null, false, true,  true, true,  false, null, null],
298
-			['john.doe', 'online', null, false, false, true, true,  false, null, null],
299
-
300
-			['john.doe', 'away', 50,   true,  true,  true, false, false, null, null],
301
-			['john.doe', 'away', 50,   true,  false, true, false, false, null, null],
302
-			['john.doe', 'away', 50,   false, true,  true, false, false, null, null],
303
-			['john.doe', 'away', 50,   false, false, true, false, false, null, null],
304
-			['john.doe', 'away', null, true,  true,  true, true,  false, null, null],
305
-			['john.doe', 'away', null, true,  false, true, true,  false, null, null],
306
-			['john.doe', 'away', null, false, true,  true, true,  false, null, null],
307
-			['john.doe', 'away', null, false, false, true, true,  false, null, null],
308
-
309
-			['john.doe', 'dnd', 50,   true,  true,  true, false, false, null, null],
310
-			['john.doe', 'dnd', 50,   true,  false, true, false, false, null, null],
311
-			['john.doe', 'dnd', 50,   false, true,  true, false, false, null, null],
312
-			['john.doe', 'dnd', 50,   false, false, true, false, false, null, null],
313
-			['john.doe', 'dnd', null, true,  true,  true, true,  false, null, null],
314
-			['john.doe', 'dnd', null, true,  false, true, true,  false, null, null],
315
-			['john.doe', 'dnd', null, false, true,  true, true,  false, null, null],
316
-			['john.doe', 'dnd', null, false, false, true, true,  false, null, null],
317
-
318
-			['john.doe', 'invisible', 50,   true,  true,  true, false, false, null, null],
319
-			['john.doe', 'invisible', 50,   true,  false, true, false, false, null, null],
320
-			['john.doe', 'invisible', 50,   false, true,  true, false, false, null, null],
321
-			['john.doe', 'invisible', 50,   false, false, true, false, false, null, null],
322
-			['john.doe', 'invisible', null, true,  true,  true, true,  false, null, null],
323
-			['john.doe', 'invisible', null, true,  false, true, true,  false, null, null],
324
-			['john.doe', 'invisible', null, false, true,  true, true,  false, null, null],
325
-			['john.doe', 'invisible', null, false, false, true, true,  false, null, null],
326
-
327
-			['john.doe', 'offline', 50,   true,  true,  true, false, false, null, null],
328
-			['john.doe', 'offline', 50,   true,  false, true, false, false, null, null],
329
-			['john.doe', 'offline', 50,   false, true,  true, false, false, null, null],
330
-			['john.doe', 'offline', 50,   false, false, true, false, false, null, null],
331
-			['john.doe', 'offline', null, true,  true,  true, true,  false, null, null],
332
-			['john.doe', 'offline', null, true,  false, true, true,  false, null, null],
333
-			['john.doe', 'offline', null, false, true,  true, true,  false, null, null],
334
-			['john.doe', 'offline', null, false, false, true, true,  false, null, null],
335
-
336
-			['john.doe', 'illegal-status', 50,   true,  true,  false, false, true, InvalidStatusTypeException::class, 'Status-type "illegal-status" is not supported'],
337
-			['john.doe', 'illegal-status', 50,   true,  false, false, false, true, InvalidStatusTypeException::class, 'Status-type "illegal-status" is not supported'],
338
-			['john.doe', 'illegal-status', 50,   false, true,  false, false, true, InvalidStatusTypeException::class, 'Status-type "illegal-status" is not supported'],
339
-			['john.doe', 'illegal-status', 50,   false, false, false, false, true, InvalidStatusTypeException::class, 'Status-type "illegal-status" is not supported'],
340
-			['john.doe', 'illegal-status', null, true,  true,  false, true,  true, InvalidStatusTypeException::class, 'Status-type "illegal-status" is not supported'],
341
-			['john.doe', 'illegal-status', null, true,  false, false, true,  true, InvalidStatusTypeException::class, 'Status-type "illegal-status" is not supported'],
342
-			['john.doe', 'illegal-status', null, false, true,  false, true,  true, InvalidStatusTypeException::class, 'Status-type "illegal-status" is not supported'],
343
-			['john.doe', 'illegal-status', null, false, false, false, true,  true, InvalidStatusTypeException::class, 'Status-type "illegal-status" is not supported'],
291
+			['john.doe', 'online', 50, true, true, true, false, false, null, null],
292
+			['john.doe', 'online', 50, true, false, true, false, false, null, null],
293
+			['john.doe', 'online', 50, false, true, true, false, false, null, null],
294
+			['john.doe', 'online', 50, false, false, true, false, false, null, null],
295
+			['john.doe', 'online', null, true, true, true, true, false, null, null],
296
+			['john.doe', 'online', null, true, false, true, true, false, null, null],
297
+			['john.doe', 'online', null, false, true, true, true, false, null, null],
298
+			['john.doe', 'online', null, false, false, true, true, false, null, null],
299
+
300
+			['john.doe', 'away', 50, true, true, true, false, false, null, null],
301
+			['john.doe', 'away', 50, true, false, true, false, false, null, null],
302
+			['john.doe', 'away', 50, false, true, true, false, false, null, null],
303
+			['john.doe', 'away', 50, false, false, true, false, false, null, null],
304
+			['john.doe', 'away', null, true, true, true, true, false, null, null],
305
+			['john.doe', 'away', null, true, false, true, true, false, null, null],
306
+			['john.doe', 'away', null, false, true, true, true, false, null, null],
307
+			['john.doe', 'away', null, false, false, true, true, false, null, null],
308
+
309
+			['john.doe', 'dnd', 50, true, true, true, false, false, null, null],
310
+			['john.doe', 'dnd', 50, true, false, true, false, false, null, null],
311
+			['john.doe', 'dnd', 50, false, true, true, false, false, null, null],
312
+			['john.doe', 'dnd', 50, false, false, true, false, false, null, null],
313
+			['john.doe', 'dnd', null, true, true, true, true, false, null, null],
314
+			['john.doe', 'dnd', null, true, false, true, true, false, null, null],
315
+			['john.doe', 'dnd', null, false, true, true, true, false, null, null],
316
+			['john.doe', 'dnd', null, false, false, true, true, false, null, null],
317
+
318
+			['john.doe', 'invisible', 50, true, true, true, false, false, null, null],
319
+			['john.doe', 'invisible', 50, true, false, true, false, false, null, null],
320
+			['john.doe', 'invisible', 50, false, true, true, false, false, null, null],
321
+			['john.doe', 'invisible', 50, false, false, true, false, false, null, null],
322
+			['john.doe', 'invisible', null, true, true, true, true, false, null, null],
323
+			['john.doe', 'invisible', null, true, false, true, true, false, null, null],
324
+			['john.doe', 'invisible', null, false, true, true, true, false, null, null],
325
+			['john.doe', 'invisible', null, false, false, true, true, false, null, null],
326
+
327
+			['john.doe', 'offline', 50, true, true, true, false, false, null, null],
328
+			['john.doe', 'offline', 50, true, false, true, false, false, null, null],
329
+			['john.doe', 'offline', 50, false, true, true, false, false, null, null],
330
+			['john.doe', 'offline', 50, false, false, true, false, false, null, null],
331
+			['john.doe', 'offline', null, true, true, true, true, false, null, null],
332
+			['john.doe', 'offline', null, true, false, true, true, false, null, null],
333
+			['john.doe', 'offline', null, false, true, true, true, false, null, null],
334
+			['john.doe', 'offline', null, false, false, true, true, false, null, null],
335
+
336
+			['john.doe', 'illegal-status', 50, true, true, false, false, true, InvalidStatusTypeException::class, 'Status-type "illegal-status" is not supported'],
337
+			['john.doe', 'illegal-status', 50, true, false, false, false, true, InvalidStatusTypeException::class, 'Status-type "illegal-status" is not supported'],
338
+			['john.doe', 'illegal-status', 50, false, true, false, false, true, InvalidStatusTypeException::class, 'Status-type "illegal-status" is not supported'],
339
+			['john.doe', 'illegal-status', 50, false, false, false, false, true, InvalidStatusTypeException::class, 'Status-type "illegal-status" is not supported'],
340
+			['john.doe', 'illegal-status', null, true, true, false, true, true, InvalidStatusTypeException::class, 'Status-type "illegal-status" is not supported'],
341
+			['john.doe', 'illegal-status', null, true, false, false, true, true, InvalidStatusTypeException::class, 'Status-type "illegal-status" is not supported'],
342
+			['john.doe', 'illegal-status', null, false, true, false, true, true, InvalidStatusTypeException::class, 'Status-type "illegal-status" is not supported'],
343
+			['john.doe', 'illegal-status', null, false, false, false, true, true, InvalidStatusTypeException::class, 'Status-type "illegal-status" is not supported'],
344 344
 		];
345 345
 	}
346 346
 
@@ -422,12 +422,12 @@  discard block
 block discarded – undo
422 422
 
423 423
 	public static function setPredefinedMessageDataProvider(): array {
424 424
 		return [
425
-			['john.doe', 'sick-leave', true, null, true,  true,  false, null, null],
426
-			['john.doe', 'sick-leave', true, null, false, true,  false, null, null],
427
-			['john.doe', 'sick-leave', true, 20,   true,  false, true,  InvalidClearAtException::class, 'ClearAt is in the past'],
428
-			['john.doe', 'sick-leave', true, 20,   false, false, true,  InvalidClearAtException::class, 'ClearAt is in the past'],
429
-			['john.doe', 'sick-leave', true, 60,   true,  true,  false, null, null],
430
-			['john.doe', 'sick-leave', true, 60,   false, true,  false, null, null],
425
+			['john.doe', 'sick-leave', true, null, true, true, false, null, null],
426
+			['john.doe', 'sick-leave', true, null, false, true, false, null, null],
427
+			['john.doe', 'sick-leave', true, 20, true, false, true, InvalidClearAtException::class, 'ClearAt is in the past'],
428
+			['john.doe', 'sick-leave', true, 20, false, false, true, InvalidClearAtException::class, 'ClearAt is in the past'],
429
+			['john.doe', 'sick-leave', true, 60, true, true, false, null, null],
430
+			['john.doe', 'sick-leave', true, 60, false, true, false, null, null],
431 431
 			['john.doe', 'illegal-message-id', false, null, true, false, true, InvalidMessageIdException::class, 'Message-Id "illegal-message-id" is not supported'],
432 432
 			['john.doe', 'illegal-message-id', false, null, false, false, true, InvalidMessageIdException::class, 'Message-Id "illegal-message-id" is not supported'],
433 433
 		];
@@ -510,17 +510,17 @@  discard block
 block discarded – undo
510 510
 
511 511
 	public static function setCustomMessageDataProvider(): array {
512 512
 		return [
513
-			['john.doe', '
Please login to merge, or discard this patch.
apps/user_status/tests/Unit/Listener/UserLiveStatusListenerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 					->method('insert');
97 97
 				$this->mapper->expects($this->once())
98 98
 					->method('update')
99
-					->with($this->callback(function ($userStatus) use ($eventStatus, $eventTimestamp) {
99
+					->with($this->callback(function($userStatus) use ($eventStatus, $eventTimestamp) {
100 100
 						$this->assertEquals($eventStatus, $userStatus->getStatus());
101 101
 						$this->assertEquals($eventTimestamp, $userStatus->getStatusTimestamp());
102 102
 						$this->assertFalse($userStatus->getIsUserDefined());
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 			} else {
107 107
 				$this->mapper->expects($this->once())
108 108
 					->method('insert')
109
-					->with($this->callback(function ($userStatus) use ($eventStatus, $eventTimestamp) {
109
+					->with($this->callback(function($userStatus) use ($eventStatus, $eventTimestamp) {
110 110
 						$this->assertEquals($eventStatus, $userStatus->getStatus());
111 111
 						$this->assertEquals($eventTimestamp, $userStatus->getStatusTimestamp());
112 112
 						$this->assertFalse($userStatus->getIsUserDefined());
Please login to merge, or discard this patch.