@@ -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
0 commit comments