Skip to content

Commit 979c135

Browse files
committed
fix(cs): Apply auto fixes
Signed-off-by: Joas Schilling <[email protected]>
1 parent c0ae809 commit 979c135

File tree

5 files changed

+23
-22
lines changed

5 files changed

+23
-22
lines changed

lib/Listener/FlowRegisterOperationListener.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
*/
2020
class FlowRegisterOperationListener implements IEventListener {
2121
public function __construct(
22-
protected readonly Operation $operation) {
22+
protected readonly Operation $operation,
23+
) {
2324
}
2425

2526
public function handle(Event $event): void {

lib/Operation.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(
4242
protected readonly File $fileEntity,
4343
protected readonly IMountManager $mountManager,
4444
protected readonly IRootFolder $rootFolder,
45-
protected readonly LoggerInterface $logger
45+
protected readonly LoggerInterface $logger,
4646
) {
4747
}
4848

tests/Integration/features/bootstrap/FeatureContext.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function theWebdavResponseShouldHaveAStatusCode($statusCode) {
127127
$statusCodes = [(int)$statusCode];
128128
}
129129
if (!in_array($this->response->getStatusCode(), $statusCodes, true)) {
130-
throw new \Exception("Expected $statusCode, got ".$this->response->getStatusCode());
130+
throw new \Exception("Expected $statusCode, got " . $this->response->getStatusCode());
131131
}
132132
}
133133

tests/Integration/features/bootstrap/WebDav.php

+18-18
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ public function makeDavRequest($user, $method, $path, $headers, $body = null, $t
5454
if ($type === 'files') {
5555
$fullUrl = $this->baseUrl . $this->getDavFilesPath($user) . "$path";
5656
} elseif ($type === 'uploads') {
57-
$fullUrl = $this->baseUrl . $this->davPath . "$path";
57+
$fullUrl = $this->baseUrl . $this->davPath . "$path";
5858
} else {
59-
$fullUrl = $this->baseUrl . $this->davPath . '/' . $type . "$path";
59+
$fullUrl = $this->baseUrl . $this->davPath . '/' . $type . "$path";
6060
}
6161
$client = new GClient();
6262
$options = [
@@ -186,7 +186,7 @@ public function downloadedContentShouldBe($content) {
186186
*/
187187
public function checkPropForFile($file, $prefix, $prop, $value) {
188188
$elementList = $this->propfindFile($this->currentUser, $file, "<$prefix:$prop/>");
189-
$property = $elementList['/'.$this->getDavFilesPath($this->currentUser).$file][200]["{DAV:}$prop"];
189+
$property = $elementList['/' . $this->getDavFilesPath($this->currentUser) . $file][200]["{DAV:}$prop"];
190190
Assert::assertEquals($property, $value);
191191
}
192192

@@ -522,7 +522,7 @@ public function makeSabrePath($user, $path, $type = 'files') {
522522
if ($type === 'files') {
523523
return $this->encodePath($this->getDavFilesPath($user) . $path);
524524
} else {
525-
return $this->encodePath($this->davPath . '/' . $type . '/' . $user . '/' . $path);
525+
return $this->encodePath($this->davPath . '/' . $type . '/' . $user . '/' . $path);
526526
}
527527
}
528528

@@ -689,28 +689,28 @@ public function userUploadsBulkedFiles($user, $name1, $content1, $name2, $conten
689689
$boundary = 'boundary_azertyuiop';
690690

691691
$body = '';
692-
$body .= '--'.$boundary."\r\n";
693-
$body .= 'X-File-Path: '.$name1."\r\n";
692+
$body .= '--' . $boundary . "\r\n";
693+
$body .= 'X-File-Path: ' . $name1 . "\r\n";
694694
$body .= "X-File-MD5: f6a6263167c92de8644ac998b3c4e4d1\r\n";
695695
$body .= "X-OC-Mtime: 1111111111\r\n";
696-
$body .= 'Content-Length: '.strlen($content1)."\r\n";
696+
$body .= 'Content-Length: ' . strlen($content1) . "\r\n";
697697
$body .= "\r\n";
698-
$body .= $content1."\r\n";
699-
$body .= '--'.$boundary."\r\n";
700-
$body .= 'X-File-Path: '.$name2."\r\n";
698+
$body .= $content1 . "\r\n";
699+
$body .= '--' . $boundary . "\r\n";
700+
$body .= 'X-File-Path: ' . $name2 . "\r\n";
701701
$body .= "X-File-MD5: 87c7d4068be07d390a1fffd21bf1e944\r\n";
702702
$body .= "X-OC-Mtime: 2222222222\r\n";
703-
$body .= 'Content-Length: '.strlen($content2)."\r\n";
703+
$body .= 'Content-Length: ' . strlen($content2) . "\r\n";
704704
$body .= "\r\n";
705-
$body .= $content2."\r\n";
706-
$body .= '--'.$boundary."\r\n";
707-
$body .= 'X-File-Path: '.$name3."\r\n";
705+
$body .= $content2 . "\r\n";
706+
$body .= '--' . $boundary . "\r\n";
707+
$body .= 'X-File-Path: ' . $name3 . "\r\n";
708708
$body .= "X-File-MD5: e86a1cf0678099986a901c79086f5617\r\n";
709709
$body .= "X-File-Mtime: 3333333333\r\n";
710-
$body .= 'Content-Length: '.strlen($content3)."\r\n";
710+
$body .= 'Content-Length: ' . strlen($content3) . "\r\n";
711711
$body .= "\r\n";
712-
$body .= $content3."\r\n";
713-
$body .= '--'.$boundary."--\r\n";
712+
$body .= $content3 . "\r\n";
713+
$body .= '--' . $boundary . "--\r\n";
714714

715715
$stream = fopen('php://temp', 'r+');
716716
fwrite($stream, $body);
@@ -720,7 +720,7 @@ public function userUploadsBulkedFiles($user, $name1, $content1, $name2, $conten
720720
$options = [
721721
'auth' => [$user, $this->regularUser],
722722
'headers' => [
723-
'Content-Type' => 'multipart/related; boundary='.$boundary,
723+
'Content-Type' => 'multipart/related; boundary=' . $boundary,
724724
'Content-Length' => (string)strlen($body),
725725
],
726726
'body' => $body

tests/bootstrap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
define('PHPUNIT_RUN', 1);
99
}
1010

11-
require_once __DIR__.'/../../../lib/base.php';
11+
require_once __DIR__ . '/../../../lib/base.php';
1212

1313
if (!class_exists('\PHPUnit\Framework\TestCase')) {
1414
require_once('PHPUnit/Autoload.php');

0 commit comments

Comments
 (0)