@@ -54,9 +54,9 @@ public function makeDavRequest($user, $method, $path, $headers, $body = null, $t
54
54
if ($ type === 'files ' ) {
55
55
$ fullUrl = $ this ->baseUrl . $ this ->getDavFilesPath ($ user ) . "$ path " ;
56
56
} elseif ($ type === 'uploads ' ) {
57
- $ fullUrl = $ this ->baseUrl . $ this ->davPath . "$ path " ;
57
+ $ fullUrl = $ this ->baseUrl . $ this ->davPath . "$ path " ;
58
58
} else {
59
- $ fullUrl = $ this ->baseUrl . $ this ->davPath . '/ ' . $ type . "$ path " ;
59
+ $ fullUrl = $ this ->baseUrl . $ this ->davPath . '/ ' . $ type . "$ path " ;
60
60
}
61
61
$ client = new GClient ();
62
62
$ options = [
@@ -186,7 +186,7 @@ public function downloadedContentShouldBe($content) {
186
186
*/
187
187
public function checkPropForFile ($ file , $ prefix , $ prop , $ value ) {
188
188
$ 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 " ];
190
190
Assert::assertEquals ($ property , $ value );
191
191
}
192
192
@@ -522,7 +522,7 @@ public function makeSabrePath($user, $path, $type = 'files') {
522
522
if ($ type === 'files ' ) {
523
523
return $ this ->encodePath ($ this ->getDavFilesPath ($ user ) . $ path );
524
524
} else {
525
- return $ this ->encodePath ($ this ->davPath . '/ ' . $ type . '/ ' . $ user . '/ ' . $ path );
525
+ return $ this ->encodePath ($ this ->davPath . '/ ' . $ type . '/ ' . $ user . '/ ' . $ path );
526
526
}
527
527
}
528
528
@@ -689,28 +689,28 @@ public function userUploadsBulkedFiles($user, $name1, $content1, $name2, $conten
689
689
$ boundary = 'boundary_azertyuiop ' ;
690
690
691
691
$ 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" ;
694
694
$ body .= "X-File-MD5: f6a6263167c92de8644ac998b3c4e4d1 \r\n" ;
695
695
$ body .= "X-OC-Mtime: 1111111111 \r\n" ;
696
- $ body .= 'Content-Length: ' . strlen ($ content1 ). "\r\n" ;
696
+ $ body .= 'Content-Length: ' . strlen ($ content1 ) . "\r\n" ;
697
697
$ 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" ;
701
701
$ body .= "X-File-MD5: 87c7d4068be07d390a1fffd21bf1e944 \r\n" ;
702
702
$ body .= "X-OC-Mtime: 2222222222 \r\n" ;
703
- $ body .= 'Content-Length: ' . strlen ($ content2 ). "\r\n" ;
703
+ $ body .= 'Content-Length: ' . strlen ($ content2 ) . "\r\n" ;
704
704
$ 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" ;
708
708
$ body .= "X-File-MD5: e86a1cf0678099986a901c79086f5617 \r\n" ;
709
709
$ body .= "X-File-Mtime: 3333333333 \r\n" ;
710
- $ body .= 'Content-Length: ' . strlen ($ content3 ). "\r\n" ;
710
+ $ body .= 'Content-Length: ' . strlen ($ content3 ) . "\r\n" ;
711
711
$ body .= "\r\n" ;
712
- $ body .= $ content3. "\r\n" ;
713
- $ body .= '-- ' . $ boundary. "-- \r\n" ;
712
+ $ body .= $ content3 . "\r\n" ;
713
+ $ body .= '-- ' . $ boundary . "-- \r\n" ;
714
714
715
715
$ stream = fopen ('php://temp ' , 'r+ ' );
716
716
fwrite ($ stream , $ body );
@@ -720,7 +720,7 @@ public function userUploadsBulkedFiles($user, $name1, $content1, $name2, $conten
720
720
$ options = [
721
721
'auth ' => [$ user , $ this ->regularUser ],
722
722
'headers ' => [
723
- 'Content-Type ' => 'multipart/related; boundary= ' . $ boundary ,
723
+ 'Content-Type ' => 'multipart/related; boundary= ' . $ boundary ,
724
724
'Content-Length ' => (string )strlen ($ body ),
725
725
],
726
726
'body ' => $ body
0 commit comments