Completed
Push — master ( 5d14f8...2337bd )
by Robin
27:19 queued 16s
created
apps/dav/tests/unit/CardDAV/BirthdayServiceTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
 		$this->l10n->expects($this->any())
43 43
 			->method('t')
44
-			->willReturnCallback(function ($string, $args) {
44
+			->willReturnCallback(function($string, $args) {
45 45
 				return vsprintf($string, $args);
46 46
 			});
47 47
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 		];
145 145
 		$this->calDav->expects($this->exactly(count($calls)))
146 146
 			->method('deleteCalendarObject')
147
-			->willReturnCallback(function ($calendarId, $objectUri) use (&$calls): void {
147
+			->willReturnCallback(function($calendarId, $objectUri) use (&$calls): void {
148 148
 				$expected = array_shift($calls);
149 149
 				$this->assertEquals($expected, [$calendarId, $objectUri]);
150 150
 			});
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
 			];
243 243
 			$this->calDav->expects($this->exactly(count($calls)))
244 244
 				->method('deleteCalendarObject')
245
-				->willReturnCallback(function ($calendarId, $objectUri) use (&$calls): void {
245
+				->willReturnCallback(function($calendarId, $objectUri) use (&$calls): void {
246 246
 					$expected = array_shift($calls);
247 247
 					$this->assertEquals($expected, [$calendarId, $objectUri]);
248 248
 				});
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
 			];
261 261
 			$this->calDav->expects($this->exactly(count($createCalendarObjectCalls)))
262 262
 				->method('createCalendarObject')
263
-				->willReturnCallback(function ($calendarId, $objectUri, $calendarData) use (&$createCalendarObjectCalls): void {
263
+				->willReturnCallback(function($calendarId, $objectUri, $calendarData) use (&$createCalendarObjectCalls): void {
264 264
 					$expected = array_shift($createCalendarObjectCalls);
265 265
 					$this->assertEquals($expected, [$calendarId, $objectUri, $calendarData]);
266 266
 				});
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
 			];
281 281
 			$this->calDav->expects($this->exactly(count($updateCalendarObjectCalls)))
282 282
 				->method('updateCalendarObject')
283
-				->willReturnCallback(function ($calendarId, $objectUri, $calendarData) use (&$updateCalendarObjectCalls): void {
283
+				->willReturnCallback(function($calendarId, $objectUri, $calendarData) use (&$updateCalendarObjectCalls): void {
284 284
 					$expected = array_shift($updateCalendarObjectCalls);
285 285
 					$this->assertEquals($expected, [$calendarId, $objectUri, $calendarData]);
286 286
 				});
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
 		];
364 364
 		$this->calDav->expects($this->exactly(count($calls)))
365 365
 			->method('deleteCalendarObject')
366
-			->willReturnCallback(function ($calendarId, $objectUri, $calendarType) use (&$calls): void {
366
+			->willReturnCallback(function($calendarId, $objectUri, $calendarType) use (&$calls): void {
367 367
 				$expected = array_shift($calls);
368 368
 				$this->assertEquals($expected, [$calendarId, $objectUri, $calendarType]);
369 369
 			});
Please login to merge, or discard this patch.
apps/dav/tests/unit/CardDAV/ImageExportPluginTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 			->willReturn(1);
109 109
 
110 110
 		$this->tree->method('getNodeForPath')
111
-			->willReturnCallback(function ($path) use ($card, $book) {
111
+			->willReturnCallback(function($path) use ($card, $book) {
112 112
 				if ($path === 'user/book/card') {
113 113
 					return $card;
114 114
 				} elseif ($path === 'user/book') {
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 			];
139 139
 			$this->response->expects($this->exactly(count($setHeaderCalls)))
140 140
 				->method('setHeader')
141
-				->willReturnCallback(function () use (&$setHeaderCalls): void {
141
+				->willReturnCallback(function() use (&$setHeaderCalls): void {
142 142
 					$expected = array_shift($setHeaderCalls);
143 143
 					$this->assertEquals($expected, func_get_args());
144 144
 				});
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 			];
157 157
 			$this->response->expects($this->exactly(count($setHeaderCalls)))
158 158
 				->method('setHeader')
159
-				->willReturnCallback(function () use (&$setHeaderCalls): void {
159
+				->willReturnCallback(function() use (&$setHeaderCalls): void {
160 160
 					$expected = array_shift($setHeaderCalls);
161 161
 					$this->assertEquals($expected, func_get_args());
162 162
 				});
Please login to merge, or discard this patch.
apps/dav/tests/unit/CardDAV/ConverterTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 			->willReturn($name);
47 47
 		$property->expects($this->any())
48 48
 			->method('getValue')
49
-			->willReturn((string)$value);
49
+			->willReturn((string) $value);
50 50
 		$property->expects($this->any())
51 51
 			->method('getScope')
52 52
 			->willReturn($scope);
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 		$account = $this->createMock(IAccount::class);
61 61
 		$account->expects($this->any())
62 62
 			->method('getAllProperties')
63
-			->willReturnCallback(function () use ($user) {
63
+			->willReturnCallback(function() use ($user) {
64 64
 				yield $this->getAccountPropertyMock(IAccountManager::PROPERTY_DISPLAYNAME, $user->getDisplayName(), IAccountManager::SCOPE_FEDERATED);
65 65
 				yield $this->getAccountPropertyMock(IAccountManager::PROPERTY_ADDRESS, '', IAccountManager::SCOPE_LOCAL);
66 66
 				yield $this->getAccountPropertyMock(IAccountManager::PROPERTY_WEBSITE, '', IAccountManager::SCOPE_LOCAL);
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
 	#[\PHPUnit\Framework\Attributes\DataProvider('providesNewUsers')]
83 83
 	public function testCreation($expectedVCard, $displayName = null, $eMailAddress = null, $cloudId = null): void {
84
-		$user = $this->getUserMock((string)$displayName, $eMailAddress, $cloudId);
84
+		$user = $this->getUserMock((string) $displayName, $eMailAddress, $cloudId);
85 85
 		$accountManager = $this->getAccountManager($user);
86 86
 
87 87
 		$converter = new Converter($accountManager, $this->userManager, $this->urlGenerator, $this->logger);
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 				}
129 129
 			}
130 130
 			if (!$found) {
131
-				$this->assertTrue(false, 'Expected data: ' . $key . ' not found.');
131
+				$this->assertTrue(false, 'Expected data: '.$key.' not found.');
132 132
 			}
133 133
 		}
134 134
 	}
Please login to merge, or discard this patch.
apps/dav/tests/unit/Provisioning/Apple/AppleProvisioningPluginTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 			$this->themingDefaults,
47 47
 			$this->request,
48 48
 			$this->l10n,
49
-			function () {
49
+			function() {
50 50
 				return 'generated-uuid';
51 51
 			}
52 52
 		);
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
 		$plugin = new AppleProvisioningPlugin($this->userSession,
62 62
 			$this->urlGenerator, $this->themingDefaults, $this->request, $this->l10n,
63
-			function (): void {
63
+			function(): void {
64 64
 			});
65 65
 
66 66
 		$server->expects($this->once())
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 		];
154 154
 		$this->sabreResponse->expects($this->exactly(2))
155 155
 			->method('setHeader')
156
-			->willReturnCallback(function () use (&$calls): void {
156
+			->willReturnCallback(function() use (&$calls): void {
157 157
 				$expected = array_shift($calls);
158 158
 				$this->assertEquals($expected, func_get_args());
159 159
 			});
Please login to merge, or discard this patch.
apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 		$data = [];
113 113
 		while ($row = $result->fetch()) {
114 114
 			$value = $row['propertyvalue'];
115
-			if ((int)$row['valuetype'] === CustomPropertiesBackend::PROPERTY_TYPE_HREF) {
115
+			if ((int) $row['valuetype'] === CustomPropertiesBackend::PROPERTY_TYPE_HREF) {
116 116
 				$value = new Href($value);
117 117
 			}
118 118
 			$data[$row['propertyname']] = $value;
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 
184 184
 		$setProps = [];
185 185
 		$propFind->method('set')
186
-			->willReturnCallback(function ($name, $value, $status) use (&$setProps): void {
186
+			->willReturnCallback(function($name, $value, $status) use (&$setProps): void {
187 187
 				$setProps[$name] = $value;
188 188
 			});
189 189
 
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
 
194 194
 	public function testPropFindPrincipalCall(): void {
195 195
 		$this->tree->method('getNodeForPath')
196
-			->willReturnCallback(function ($uri) {
196
+			->willReturnCallback(function($uri) {
197 197
 				$node = $this->createMock(Calendar::class);
198 198
 				$node->method('getOwner')
199 199
 					->willReturn('principals/users/dummy_user_42');
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
 
229 229
 		$setProps = [];
230 230
 		$propFind->method('set')
231
-			->willReturnCallback(function ($name, $value, $status) use (&$setProps): void {
231
+			->willReturnCallback(function($name, $value, $status) use (&$setProps): void {
232 232
 				$setProps[$name] = $value;
233 233
 			});
234 234
 
@@ -239,28 +239,28 @@  discard block
 block discarded – undo
239 239
 	public static function propFindPrincipalScheduleDefaultCalendarProviderUrlProvider(): array {
240 240
 		// [ user, nodes, existingProps, requestedProps, returnedProps ]
241 241
 		return [
242
-			[ // Exists
242
+			[// Exists
243 243
 				'dummy_user_42',
244 244
 				['calendars/dummy_user_42/foo/' => Calendar::class],
245 245
 				['{urn:ietf:params:xml:ns:caldav}schedule-default-calendar-URL' => new Href('calendars/dummy_user_42/foo/')],
246 246
 				['{urn:ietf:params:xml:ns:caldav}schedule-default-calendar-URL'],
247 247
 				['{urn:ietf:params:xml:ns:caldav}schedule-default-calendar-URL' => new Href('calendars/dummy_user_42/foo/')],
248 248
 			],
249
-			[ // Doesn't exist
249
+			[// Doesn't exist
250 250
 				'dummy_user_42',
251 251
 				['calendars/dummy_user_42/foo/' => Calendar::class],
252 252
 				['{urn:ietf:params:xml:ns:caldav}schedule-default-calendar-URL' => new Href('calendars/dummy_user_42/bar/')],
253 253
 				['{urn:ietf:params:xml:ns:caldav}schedule-default-calendar-URL'],
254 254
 				[],
255 255
 			],
256
-			[ // No privilege
256
+			[// No privilege
257 257
 				'dummy_user_42',
258 258
 				['calendars/user2/baz/' => Calendar::class],
259 259
 				['{urn:ietf:params:xml:ns:caldav}schedule-default-calendar-URL' => new Href('calendars/user2/baz/')],
260 260
 				['{urn:ietf:params:xml:ns:caldav}schedule-default-calendar-URL'],
261 261
 				[],
262 262
 			],
263
-			[ // Not a calendar
263
+			[// Not a calendar
264 264
 				'dummy_user_42',
265 265
 				['foo/dummy_user_42/bar/' => IACL::class],
266 266
 				['{urn:ietf:params:xml:ns:caldav}schedule-default-calendar-URL' => new Href('foo/dummy_user_42/bar/')],
@@ -300,14 +300,14 @@  discard block
 block discarded – undo
300 300
 			));
301 301
 
302 302
 		$this->server->method('calculateUri')
303
-			->willReturnCallback(function ($uri) {
303
+			->willReturnCallback(function($uri) {
304 304
 				if (!str_starts_with($uri, self::BASE_URI)) {
305 305
 					return trim(substr($uri, strlen(self::BASE_URI)), '/');
306 306
 				}
307 307
 				return null;
308 308
 			});
309 309
 		$this->tree->method('getNodeForPath')
310
-			->willReturnCallback(function ($uri) use ($nodes) {
310
+			->willReturnCallback(function($uri) use ($nodes) {
311 311
 				if (str_starts_with($uri, 'principals/')) {
312 312
 					return $this->createMock(IPrincipal::class);
313 313
 				}
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
 
326 326
 		$setProps = [];
327 327
 		$propFind->method('set')
328
-			->willReturnCallback(function ($name, $value, $status) use (&$setProps): void {
328
+			->willReturnCallback(function($name, $value, $status) use (&$setProps): void {
329 329
 				$setProps[$name] = $value;
330 330
 			});
331 331
 
@@ -336,17 +336,17 @@  discard block
 block discarded – undo
336 336
 	#[\PHPUnit\Framework\Attributes\DataProvider('propPatchProvider')]
337 337
 	public function testPropPatch(string $path, array $existing, array $props, array $result): void {
338 338
 		$this->server->method('calculateUri')
339
-			->willReturnCallback(function ($uri) {
339
+			->willReturnCallback(function($uri) {
340 340
 				if (str_starts_with($uri, self::BASE_URI)) {
341 341
 					return trim(substr($uri, strlen(self::BASE_URI)), '/');
342 342
 				}
343 343
 				return null;
344 344
 			});
345 345
 		$this->tree->method('getNodeForPath')
346
-			->willReturnCallback(function ($uri) {
346
+			->willReturnCallback(function($uri) {
347 347
 				$node = $this->createMock(Calendar::class);
348 348
 				$node->method('getOwner')
349
-					->willReturn('principals/users/' . $this->user->getUID());
349
+					->willReturn('principals/users/'.$this->user->getUID());
350 350
 				return $node;
351 351
 			});
352 352
 
@@ -368,12 +368,12 @@  discard block
 block discarded – undo
368 368
 			['foo_bar_path_1337', ['{DAV:}displayname' => 'foo'], ['{DAV:}displayname' => null], []],
369 369
 			[$longPath, [], ['{DAV:}displayname' => 'anything'], ['{DAV:}displayname' => 'anything']],
370 370
 			['principals/users/dummy_user_42', [], ['{urn:ietf:params:xml:ns:caldav}schedule-default-calendar-URL' => new Href('foo/bar/')], ['{urn:ietf:params:xml:ns:caldav}schedule-default-calendar-URL' => new Href('foo/bar/')]],
371
-			['principals/users/dummy_user_42', [], ['{urn:ietf:params:xml:ns:caldav}schedule-default-calendar-URL' => new Href(self::BASE_URI . 'foo/bar/')], ['{urn:ietf:params:xml:ns:caldav}schedule-default-calendar-URL' => new Href('foo/bar/')]],
371
+			['principals/users/dummy_user_42', [], ['{urn:ietf:params:xml:ns:caldav}schedule-default-calendar-URL' => new Href(self::BASE_URI.'foo/bar/')], ['{urn:ietf:params:xml:ns:caldav}schedule-default-calendar-URL' => new Href('foo/bar/')]],
372 372
 		];
373 373
 	}
374 374
 
375 375
 	public function testPropPatchWithUnsuitableCalendar(): void {
376
-		$path = 'principals/users/' . $this->user->getUID();
376
+		$path = 'principals/users/'.$this->user->getUID();
377 377
 
378 378
 		$node = $this->createMock(Calendar::class);
379 379
 		$node->expects(self::once())
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
 			->willThrowException(new \Sabre\DAV\Exception('Invalid calendar'));
387 387
 
388 388
 		$this->server->method('calculateUri')
389
-			->willReturnCallback(function ($uri) {
389
+			->willReturnCallback(function($uri) {
390 390
 				if (str_starts_with($uri, self::BASE_URI)) {
391 391
 					return trim(substr($uri, strlen(self::BASE_URI)), '/');
392 392
 				}
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
 	}
453 453
 
454 454
 	public function testDecodeValueFromDatabaseObjectLegacy(): void {
455
-		$propertyValue = 'O:48:"Sabre\CalDAV\Xml\Property\ScheduleCalendarTransp":1:{s:8:"' . chr(0) . '*' . chr(0) . 'value";s:6:"opaque";}';
455
+		$propertyValue = 'O:48:"Sabre\CalDAV\Xml\Property\ScheduleCalendarTransp":1:{s:8:"'.chr(0).'*'.chr(0).'value";s:6:"opaque";}';
456 456
 		$propertyType = 3;
457 457
 		$decodeValue = $this->invokePrivate($this->backend, 'decodeValueFromDatabase', [$propertyValue, $propertyType]);
458 458
 		$this->assertInstanceOf(\Sabre\CalDAV\Xml\Property\ScheduleCalendarTransp::class, $decodeValue);
Please login to merge, or discard this patch.
apps/dav/tests/unit/Settings/CalDAVSettingsTest.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
 			['sendEventRemindersPush', true],
58 58
 		];
59 59
 		$this->initialState->method('provideInitialState')
60
-			->willReturnCallback(function () use (&$calls): void {
60
+			->willReturnCallback(function() use (&$calls): void {
61 61
 				$expected = array_shift($calls);
62 62
 				$this->assertEquals($expected, func_get_args());
63 63
 			});
Please login to merge, or discard this patch.
apps/dav/tests/unit/Comments/CommentsPluginTest.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 		// things.
98 98
 		$this->tree->expects($this->any())
99 99
 			->method('getNodeForPath')
100
-			->with('/' . $path)
100
+			->with('/'.$path)
101 101
 			->willReturn($node);
102 102
 
103 103
 		$request = $this->getMockBuilder(RequestInterface::class)
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
 		$request->expects($this->once())
112 112
 			->method('getPath')
113
-			->willReturn('/' . $path);
113
+			->willReturn('/'.$path);
114 114
 
115 115
 		$request->expects($this->once())
116 116
 			->method('getBodyAsString')
@@ -123,11 +123,11 @@  discard block
 block discarded – undo
123 123
 
124 124
 		$request->expects($this->once())
125 125
 			->method('getUrl')
126
-			->willReturn('http://example.com/dav/' . $path);
126
+			->willReturn('http://example.com/dav/'.$path);
127 127
 
128 128
 		$response->expects($this->once())
129 129
 			->method('setHeader')
130
-			->with('Content-Location', 'http://example.com/dav/' . $path . '/23');
130
+			->with('Content-Location', 'http://example.com/dav/'.$path.'/23');
131 131
 
132 132
 		$this->server->expects($this->any())
133 133
 			->method('getRequestUri')
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 		// things.
184 184
 		$this->tree->expects($this->any())
185 185
 			->method('getNodeForPath')
186
-			->with('/' . $path)
186
+			->with('/'.$path)
187 187
 			->willThrowException(new \Sabre\DAV\Exception\NotFound());
188 188
 
189 189
 		$request = $this->getMockBuilder(RequestInterface::class)
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 
197 197
 		$request->expects($this->once())
198 198
 			->method('getPath')
199
-			->willReturn('/' . $path);
199
+			->willReturn('/'.$path);
200 200
 
201 201
 		$request->expects($this->never())
202 202
 			->method('getBodyAsString');
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
 		// things.
270 270
 		$this->tree->expects($this->any())
271 271
 			->method('getNodeForPath')
272
-			->with('/' . $path)
272
+			->with('/'.$path)
273 273
 			->willReturn($node);
274 274
 
275 275
 		$request = $this->getMockBuilder(RequestInterface::class)
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
 
283 283
 		$request->expects($this->once())
284 284
 			->method('getPath')
285
-			->willReturn('/' . $path);
285
+			->willReturn('/'.$path);
286 286
 
287 287
 		$request->expects($this->once())
288 288
 			->method('getBodyAsString')
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
 		// things.
358 358
 		$this->tree->expects($this->any())
359 359
 			->method('getNodeForPath')
360
-			->with('/' . $path)
360
+			->with('/'.$path)
361 361
 			->willReturn($node);
362 362
 
363 363
 		$request = $this->getMockBuilder(RequestInterface::class)
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
 
371 371
 		$request->expects($this->once())
372 372
 			->method('getPath')
373
-			->willReturn('/' . $path);
373
+			->willReturn('/'.$path);
374 374
 
375 375
 		$request->expects($this->once())
376 376
 			->method('getBodyAsString')
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
 		// things.
452 452
 		$this->tree->expects($this->any())
453 453
 			->method('getNodeForPath')
454
-			->with('/' . $path)
454
+			->with('/'.$path)
455 455
 			->willReturn($node);
456 456
 
457 457
 		$request = $this->getMockBuilder(RequestInterface::class)
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
 
465 465
 		$request->expects($this->once())
466 466
 			->method('getPath')
467
-			->willReturn('/' . $path);
467
+			->willReturn('/'.$path);
468 468
 
469 469
 		$request->expects($this->once())
470 470
 			->method('getBodyAsString')
@@ -548,7 +548,7 @@  discard block
 block discarded – undo
548 548
 		// things.
549 549
 		$this->tree->expects($this->any())
550 550
 			->method('getNodeForPath')
551
-			->with('/' . $path)
551
+			->with('/'.$path)
552 552
 			->willReturn($node);
553 553
 
554 554
 		$request = $this->getMockBuilder(RequestInterface::class)
@@ -561,7 +561,7 @@  discard block
 block discarded – undo
561 561
 
562 562
 		$request->expects($this->once())
563 563
 			->method('getPath')
564
-			->willReturn('/' . $path);
564
+			->willReturn('/'.$path);
565 565
 
566 566
 		$request->expects($this->once())
567 567
 			->method('getBodyAsString')
@@ -591,7 +591,7 @@  discard block
 block discarded – undo
591 591
 
592 592
 		$this->tree->expects($this->any())
593 593
 			->method('getNodeForPath')
594
-			->with('/' . $path)
594
+			->with('/'.$path)
595 595
 			->willReturn(
596 596
 				$this->getMockBuilder(INode::class)
597 597
 					->disableOriginalConstructor()
@@ -603,7 +603,7 @@  discard block
 block discarded – undo
603 603
 			->willReturn($path);
604 604
 		$this->plugin->initialize($this->server);
605 605
 
606
-		$this->plugin->onReport(CommentsPluginImplementation::REPORT_NAME, [], '/' . $path);
606
+		$this->plugin->onReport(CommentsPluginImplementation::REPORT_NAME, [], '/'.$path);
607 607
 	}
608 608
 
609 609
 
@@ -614,7 +614,7 @@  discard block
 block discarded – undo
614 614
 
615 615
 		$this->tree->expects($this->any())
616 616
 			->method('getNodeForPath')
617
-			->with('/' . $path)
617
+			->with('/'.$path)
618 618
 			->willReturn(
619 619
 				$this->getMockBuilder(INode::class)
620 620
 					->disableOriginalConstructor()
@@ -626,7 +626,7 @@  discard block
 block discarded – undo
626 626
 			->willReturn($path);
627 627
 		$this->plugin->initialize($this->server);
628 628
 
629
-		$this->plugin->onReport('{whoever}whatever', [], '/' . $path);
629
+		$this->plugin->onReport('{whoever}whatever', [], '/'.$path);
630 630
 	}
631 631
 
632 632
 	public function testOnReportDateTimeEmpty(): void {
@@ -672,7 +672,7 @@  discard block
 block discarded – undo
672 672
 
673 673
 		$this->tree->expects($this->any())
674 674
 			->method('getNodeForPath')
675
-			->with('/' . $path)
675
+			->with('/'.$path)
676 676
 			->willReturn($node);
677 677
 
678 678
 		$this->server->expects($this->any())
@@ -681,7 +681,7 @@  discard block
 block discarded – undo
681 681
 		$this->server->httpResponse = $response;
682 682
 		$this->plugin->initialize($this->server);
683 683
 
684
-		$this->plugin->onReport(CommentsPluginImplementation::REPORT_NAME, $parameters, '/' . $path);
684
+		$this->plugin->onReport(CommentsPluginImplementation::REPORT_NAME, $parameters, '/'.$path);
685 685
 	}
686 686
 
687 687
 	public function testOnReport(): void {
@@ -727,7 +727,7 @@  discard block
 block discarded – undo
727 727
 
728 728
 		$this->tree->expects($this->any())
729 729
 			->method('getNodeForPath')
730
-			->with('/' . $path)
730
+			->with('/'.$path)
731 731
 			->willReturn($node);
732 732
 
733 733
 		$this->server->expects($this->any())
@@ -736,6 +736,6 @@  discard block
 block discarded – undo
736 736
 		$this->server->httpResponse = $response;
737 737
 		$this->plugin->initialize($this->server);
738 738
 
739
-		$this->plugin->onReport(CommentsPluginImplementation::REPORT_NAME, $parameters, '/' . $path);
739
+		$this->plugin->onReport(CommentsPluginImplementation::REPORT_NAME, $parameters, '/'.$path);
740 740
 	}
741 741
 }
Please login to merge, or discard this patch.
apps/dav/tests/unit/Migration/RefreshWebcalJobRegistrarTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 				[RefreshWebcalJob::class, [
87 87
 					'principaluri' => 'foo2',
88 88
 					'uri' => 'bar2',
89
-				], true ],
89
+				], true],
90 90
 				[RefreshWebcalJob::class, [
91 91
 					'principaluri' => 'foo3',
92 92
 					'uri' => 'bar3',
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 		];
106 106
 		$this->jobList->expects($this->exactly(2))
107 107
 			->method('add')
108
-			->willReturnCallback(function () use (&$calls): void {
108
+			->willReturnCallback(function() use (&$calls): void {
109 109
 				$expected = array_shift($calls);
110 110
 				$this->assertEquals($expected, func_get_args());
111 111
 			});
Please login to merge, or discard this patch.
apps/dav/tests/unit/CalDAV/WebcalCaching/RefreshWebcalServiceTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 	#[\PHPUnit\Framework\Attributes\DataProvider('runDataProvider')]
200 200
 	public function testRunCreateCalendarNoException(string $body, string $contentType, string $result): void {
201 201
 		$refreshWebcalService = $this->getMockBuilder(RefreshWebcalService::class)
202
-			->onlyMethods(['getRandomCalendarObjectUri', 'getSubscription',])
202
+			->onlyMethods(['getRandomCalendarObjectUri', 'getSubscription', ])
203 203
 			->setConstructorArgs([$this->caldavBackend, $this->logger, $this->connection, $this->time])
204 204
 			->getMock();
205 205
 
@@ -308,17 +308,17 @@  discard block
 block discarded – undo
308 308
 			[
309 309
 				"BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//Sabre//Sabre VObject 4.1.1//EN\r\nCALSCALE:GREGORIAN\r\nBEGIN:VEVENT\r\nUID:12345\r\nDTSTAMP:20160218T133704Z\r\nDTSTART;VALUE=DATE:19000101\r\nDTEND;VALUE=DATE:19000102\r\nRRULE:FREQ=YEARLY\r\nSUMMARY:12345's Birthday (1900)\r\nTRANSP:TRANSPARENT\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n",
310 310
 				'text/calendar;charset=utf8',
311
-				"BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//Sabre//Sabre VObject " . VObject\Version::VERSION . "//EN\r\nCALSCALE:GREGORIAN\r\nBEGIN:VEVENT\r\nUID:12345\r\nDTSTAMP:20160218T133704Z\r\nDTSTART;VALUE=DATE:19000101\r\nDTEND;VALUE=DATE:19000102\r\nRRULE:FREQ=YEARLY\r\nSUMMARY:12345's Birthday (1900)\r\nTRANSP:TRANSPARENT\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n",
311
+				"BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//Sabre//Sabre VObject ".VObject\Version::VERSION."//EN\r\nCALSCALE:GREGORIAN\r\nBEGIN:VEVENT\r\nUID:12345\r\nDTSTAMP:20160218T133704Z\r\nDTSTART;VALUE=DATE:19000101\r\nDTEND;VALUE=DATE:19000102\r\nRRULE:FREQ=YEARLY\r\nSUMMARY:12345's Birthday (1900)\r\nTRANSP:TRANSPARENT\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n",
312 312
 			],
313 313
 			[
314 314
 				'["vcalendar",[["prodid",{},"text","-//Example Corp.//Example Client//EN"],["version",{},"text","2.0"]],[["vtimezone",[["last-modified",{},"date-time","2004-01-10T03:28:45Z"],["tzid",{},"text","US/Eastern"]],[["daylight",[["dtstart",{},"date-time","2000-04-04T02:00:00"],["rrule",{},"recur",{"freq":"YEARLY","byday":"1SU","bymonth":4}],["tzname",{},"text","EDT"],["tzoffsetfrom",{},"utc-offset","-05:00"],["tzoffsetto",{},"utc-offset","-04:00"]],[]],["standard",[["dtstart",{},"date-time","2000-10-26T02:00:00"],["rrule",{},"recur",{"freq":"YEARLY","byday":"1SU","bymonth":10}],["tzname",{},"text","EST"],["tzoffsetfrom",{},"utc-offset","-04:00"],["tzoffsetto",{},"utc-offset","-05:00"]],[]]]],["vevent",[["dtstamp",{},"date-time","2006-02-06T00:11:21Z"],["dtstart",{"tzid":"US/Eastern"},"date-time","2006-01-02T14:00:00"],["duration",{},"duration","PT1H"],["recurrence-id",{"tzid":"US/Eastern"},"date-time","2006-01-04T12:00:00"],["summary",{},"text","Event #2"],["uid",{},"text","12345"]],[]]]]',
315 315
 				'application/calendar+json',
316
-				"BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//Sabre//Sabre VObject " . VObject\Version::VERSION . "//EN\r\nCALSCALE:GREGORIAN\r\nBEGIN:VTIMEZONE\r\nLAST-MODIFIED:20040110T032845Z\r\nTZID:US/Eastern\r\nBEGIN:DAYLIGHT\r\nDTSTART:20000404T020000\r\nRRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4\r\nTZNAME:EDT\r\nTZOFFSETFROM:-0500\r\nTZOFFSETTO:-0400\r\nEND:DAYLIGHT\r\nBEGIN:STANDARD\r\nDTSTART:20001026T020000\r\nRRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=10\r\nTZNAME:EST\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0500\r\nEND:STANDARD\r\nEND:VTIMEZONE\r\nBEGIN:VEVENT\r\nDTSTAMP:20060206T001121Z\r\nDTSTART;TZID=US/Eastern:20060102T140000\r\nDURATION:PT1H\r\nRECURRENCE-ID;TZID=US/Eastern:20060104T120000\r\nSUMMARY:Event #2\r\nUID:12345\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n"
316
+				"BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//Sabre//Sabre VObject ".VObject\Version::VERSION."//EN\r\nCALSCALE:GREGORIAN\r\nBEGIN:VTIMEZONE\r\nLAST-MODIFIED:20040110T032845Z\r\nTZID:US/Eastern\r\nBEGIN:DAYLIGHT\r\nDTSTART:20000404T020000\r\nRRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4\r\nTZNAME:EDT\r\nTZOFFSETFROM:-0500\r\nTZOFFSETTO:-0400\r\nEND:DAYLIGHT\r\nBEGIN:STANDARD\r\nDTSTART:20001026T020000\r\nRRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=10\r\nTZNAME:EST\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0500\r\nEND:STANDARD\r\nEND:VTIMEZONE\r\nBEGIN:VEVENT\r\nDTSTAMP:20060206T001121Z\r\nDTSTART;TZID=US/Eastern:20060102T140000\r\nDURATION:PT1H\r\nRECURRENCE-ID;TZID=US/Eastern:20060104T120000\r\nSUMMARY:Event #2\r\nUID:12345\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n"
317 317
 			],
318 318
 			[
319 319
 				'<?xml version="1.0" encoding="utf-8" ?><icalendar xmlns="urn:ietf:params:xml:ns:icalendar-2.0"><vcalendar><properties><prodid><text>-//Example Inc.//Example Client//EN</text></prodid><version><text>2.0</text></version></properties><components><vevent><properties><dtstamp><date-time>2006-02-06T00:11:21Z</date-time></dtstamp><dtstart><parameters><tzid><text>US/Eastern</text></tzid></parameters><date-time>2006-01-04T14:00:00</date-time></dtstart><duration><duration>PT1H</duration></duration><recurrence-id><parameters><tzid><text>US/Eastern</text></tzid></parameters><date-time>2006-01-04T12:00:00</date-time></recurrence-id><summary><text>Event #2 bis</text></summary><uid><text>12345</text></uid></properties></vevent></components></vcalendar></icalendar>',
320 320
 				'application/calendar+xml',
321
-				"BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//Sabre//Sabre VObject " . VObject\Version::VERSION . "//EN\r\nCALSCALE:GREGORIAN\r\nBEGIN:VEVENT\r\nDTSTAMP:20060206T001121Z\r\nDTSTART;TZID=US/Eastern:20060104T140000\r\nDURATION:PT1H\r\nRECURRENCE-ID;TZID=US/Eastern:20060104T120000\r\nSUMMARY:Event #2 bis\r\nUID:12345\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n"
321
+				"BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//Sabre//Sabre VObject ".VObject\Version::VERSION."//EN\r\nCALSCALE:GREGORIAN\r\nBEGIN:VEVENT\r\nDTSTAMP:20060206T001121Z\r\nDTSTART;TZID=US/Eastern:20060104T140000\r\nDURATION:PT1H\r\nRECURRENCE-ID;TZID=US/Eastern:20060104T120000\r\nSUMMARY:Event #2 bis\r\nUID:12345\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n"
322 322
 			]
323 323
 		];
324 324
 	}
Please login to merge, or discard this patch.