@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | $path = '/usr/sbin/sendmail'; |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | - $expected = new SendmailTransport($path . $binaryParam, null, $this->logger); |
|
| 95 | + $expected = new SendmailTransport($path.$binaryParam, null, $this->logger); |
|
| 96 | 96 | $this->assertEquals($expected, self::invokePrivate($this->mailer, 'getSendMailInstance')); |
| 97 | 97 | } |
| 98 | 98 | |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | ['mail_sendmailmode', 'smtp', $sendmailMode], |
| 111 | 111 | ]); |
| 112 | 112 | |
| 113 | - $sendmail = new SendmailTransport('/var/qmail/bin/sendmail' . $binaryParam, null, $this->logger); |
|
| 113 | + $sendmail = new SendmailTransport('/var/qmail/bin/sendmail'.$binaryParam, null, $this->logger); |
|
| 114 | 114 | $this->assertEquals($sendmail, self::invokePrivate($this->mailer, 'getSendMailInstance')); |
| 115 | 115 | } |
| 116 | 116 | |
@@ -80,9 +80,9 @@ discard block |
||
| 80 | 80 | 'TestCloud - A safe home for your data<br>This is an automatically sent email, please do not reply.' |
| 81 | 81 | ); |
| 82 | 82 | |
| 83 | - $expectedHTML = file_get_contents(\OC::$SERVERROOT . '/tests/data/emails/new-account-email.html'); |
|
| 83 | + $expectedHTML = file_get_contents(\OC::$SERVERROOT.'/tests/data/emails/new-account-email.html'); |
|
| 84 | 84 | $this->assertSame($expectedHTML, $this->emailTemplate->renderHtml()); |
| 85 | - $expectedTXT = file_get_contents(\OC::$SERVERROOT . '/tests/data/emails/new-account-email.txt'); |
|
| 85 | + $expectedTXT = file_get_contents(\OC::$SERVERROOT.'/tests/data/emails/new-account-email.txt'); |
|
| 86 | 86 | $this->assertSame($expectedTXT, $this->emailTemplate->renderText()); |
| 87 | 87 | } |
| 88 | 88 | |
@@ -123,9 +123,9 @@ discard block |
||
| 123 | 123 | ); |
| 124 | 124 | $this->emailTemplate->addFooter(); |
| 125 | 125 | |
| 126 | - $expectedHTML = file_get_contents(\OC::$SERVERROOT . '/tests/data/emails/new-account-email-custom.html'); |
|
| 126 | + $expectedHTML = file_get_contents(\OC::$SERVERROOT.'/tests/data/emails/new-account-email-custom.html'); |
|
| 127 | 127 | $this->assertSame($expectedHTML, $this->emailTemplate->renderHtml()); |
| 128 | - $expectedTXT = file_get_contents(\OC::$SERVERROOT . '/tests/data/emails/new-account-email-custom.txt'); |
|
| 128 | + $expectedTXT = file_get_contents(\OC::$SERVERROOT.'/tests/data/emails/new-account-email-custom.txt'); |
|
| 129 | 129 | $this->assertSame($expectedTXT, $this->emailTemplate->renderText()); |
| 130 | 130 | } |
| 131 | 131 | |
@@ -166,9 +166,9 @@ discard block |
||
| 166 | 166 | ); |
| 167 | 167 | $this->emailTemplate->addFooter(); |
| 168 | 168 | |
| 169 | - $expectedHTML = file_get_contents(\OC::$SERVERROOT . '/tests/data/emails/new-account-email-single-button.html'); |
|
| 169 | + $expectedHTML = file_get_contents(\OC::$SERVERROOT.'/tests/data/emails/new-account-email-single-button.html'); |
|
| 170 | 170 | $this->assertSame($expectedHTML, $this->emailTemplate->renderHtml()); |
| 171 | - $expectedTXT = file_get_contents(\OC::$SERVERROOT . '/tests/data/emails/new-account-email-single-button.txt'); |
|
| 171 | + $expectedTXT = file_get_contents(\OC::$SERVERROOT.'/tests/data/emails/new-account-email-single-button.txt'); |
|
| 172 | 172 | $this->assertSame($expectedTXT, $this->emailTemplate->renderText()); |
| 173 | 173 | } |
| 174 | 174 | |
@@ -212,9 +212,9 @@ discard block |
||
| 212 | 212 | ); |
| 213 | 213 | $this->emailTemplate->addFooter(); |
| 214 | 214 | |
| 215 | - $expectedHTML = file_get_contents(\OC::$SERVERROOT . '/tests/data/emails/new-account-email-custom.html'); |
|
| 215 | + $expectedHTML = file_get_contents(\OC::$SERVERROOT.'/tests/data/emails/new-account-email-custom.html'); |
|
| 216 | 216 | $this->assertSame($expectedHTML, $this->emailTemplate->renderHtml()); |
| 217 | - $expectedTXT = file_get_contents(\OC::$SERVERROOT . '/tests/data/emails/new-account-email-custom-text-alternative.txt'); |
|
| 217 | + $expectedTXT = file_get_contents(\OC::$SERVERROOT.'/tests/data/emails/new-account-email-custom-text-alternative.txt'); |
|
| 218 | 218 | $this->assertSame($expectedTXT, $this->emailTemplate->renderText()); |
| 219 | 219 | } |
| 220 | 220 | } |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | protected function getOCSUrl($url) { |
| 40 | - return 'https://example.com/ocs/v2.php/' . $url; |
|
| 40 | + return 'https://example.com/ocs/v2.php/'.$url; |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | public function testGetUser(): void { |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | protected function setUp(): void { |
| 19 | 19 | parent::setUp(); |
| 20 | 20 | |
| 21 | - $this->baseDir = $this->getManager()->getTempBaseDir() . $this->getUniqueID('/oc_tmp_test'); |
|
| 21 | + $this->baseDir = $this->getManager()->getTempBaseDir().$this->getUniqueID('/oc_tmp_test'); |
|
| 22 | 22 | if (!is_dir($this->baseDir)) { |
| 23 | 23 | mkdir($this->baseDir); |
| 24 | 24 | } |
@@ -73,8 +73,8 @@ discard block |
||
| 73 | 73 | $this->assertTrue(is_dir($folder)); |
| 74 | 74 | $this->assertTrue(is_writable($folder)); |
| 75 | 75 | |
| 76 | - file_put_contents($folder . 'foo.txt', 'bar'); |
|
| 77 | - $this->assertEquals('bar', file_get_contents($folder . 'foo.txt')); |
|
| 76 | + file_put_contents($folder.'foo.txt', 'bar'); |
|
| 77 | + $this->assertEquals('bar', file_get_contents($folder.'foo.txt')); |
|
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | public function testCleanFiles(): void { |
@@ -94,19 +94,19 @@ discard block |
||
| 94 | 94 | $manager = $this->getManager(); |
| 95 | 95 | $folder1 = $manager->getTemporaryFolder(); |
| 96 | 96 | $folder2 = $manager->getTemporaryFolder(); |
| 97 | - touch($folder1 . 'foo.txt'); |
|
| 98 | - touch($folder1 . 'bar.txt'); |
|
| 97 | + touch($folder1.'foo.txt'); |
|
| 98 | + touch($folder1.'bar.txt'); |
|
| 99 | 99 | $this->assertTrue(file_exists($folder1)); |
| 100 | 100 | $this->assertTrue(file_exists($folder2)); |
| 101 | - $this->assertTrue(file_exists($folder1 . 'foo.txt')); |
|
| 102 | - $this->assertTrue(file_exists($folder1 . 'bar.txt')); |
|
| 101 | + $this->assertTrue(file_exists($folder1.'foo.txt')); |
|
| 102 | + $this->assertTrue(file_exists($folder1.'bar.txt')); |
|
| 103 | 103 | |
| 104 | 104 | $manager->clean(); |
| 105 | 105 | |
| 106 | 106 | $this->assertFalse(file_exists($folder1)); |
| 107 | 107 | $this->assertFalse(file_exists($folder2)); |
| 108 | - $this->assertFalse(file_exists($folder1 . 'foo.txt')); |
|
| 109 | - $this->assertFalse(file_exists($folder1 . 'bar.txt')); |
|
| 108 | + $this->assertFalse(file_exists($folder1.'foo.txt')); |
|
| 109 | + $this->assertFalse(file_exists($folder1.'bar.txt')); |
|
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | public function testCleanOld(): void { |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | $oldFile = $manager->getTemporaryFile('txt'); |
| 115 | 115 | $newFile = $manager->getTemporaryFile('txt'); |
| 116 | 116 | $folder = $manager->getTemporaryFolder(); |
| 117 | - $nonOcFile = $this->baseDir . '/foo.txt'; |
|
| 117 | + $nonOcFile = $this->baseDir.'/foo.txt'; |
|
| 118 | 118 | file_put_contents($nonOcFile, 'bar'); |
| 119 | 119 | |
| 120 | 120 | $past = time() - 2 * 3600; |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | |
| 27 | 27 | public function testWrapper(): void { |
| 28 | 28 | $test = $this; |
| 29 | - $wrapper = function ($mountPoint, $storage) use (&$test) { |
|
| 29 | + $wrapper = function($mountPoint, $storage) use (&$test) { |
|
| 30 | 30 | $test->assertEquals('/foo/', $mountPoint); |
| 31 | 31 | $test->assertInstanceOf('\OC\Files\Storage\Storage', $storage); |
| 32 | 32 | return new Wrapper(['storage' => $storage]); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | |
| 13 | 13 | class LongId extends Temporary { |
| 14 | 14 | public function getId(): string { |
| 15 | - return 'long:' . str_repeat('foo', 50) . parent::getId(); |
|
| 15 | + return 'long:'.str_repeat('foo', 50).parent::getId(); |
|
| 16 | 16 | } |
| 17 | 17 | } |
| 18 | 18 | |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | private function getConfig(array $systemConfig): IConfig { |
| 33 | 33 | $config = $this->createMock(IConfig::class); |
| 34 | 34 | $config->method('getSystemValue') |
| 35 | - ->willReturnCallback(function (string $key, $default) use ($systemConfig) { |
|
| 35 | + ->willReturnCallback(function(string $key, $default) use ($systemConfig) { |
|
| 36 | 36 | return $systemConfig[$key] ?? $default; |
| 37 | 37 | }); |
| 38 | 38 | return $config; |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | return true; |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | - public function url_stat(string $path, int $flags): array|false { |
|
| 30 | + public function url_stat(string $path, int $flags): array | false { |
|
| 31 | 31 | self::$statCounter++; |
| 32 | 32 | return false; |
| 33 | 33 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | public function testStat(): void { |
| 47 | - $textFile = \OC::$SERVERROOT . '/tests/data/lorem.txt'; |
|
| 47 | + $textFile = \OC::$SERVERROOT.'/tests/data/lorem.txt'; |
|
| 48 | 48 | $ctimeStart = time(); |
| 49 | 49 | $this->instance->file_put_contents('/lorem.txt', file_get_contents($textFile)); |
| 50 | 50 | $this->assertTrue($this->instance->isReadable('/lorem.txt')); |
@@ -81,8 +81,8 @@ discard block |
||
| 81 | 81 | |
| 82 | 82 | $this->instance->rename($source, $target); |
| 83 | 83 | |
| 84 | - $this->assertTrue($this->instance->file_exists($target), $target . ' was not created'); |
|
| 85 | - $this->assertFalse($this->instance->file_exists($source), $source . ' still exists'); |
|
| 84 | + $this->assertTrue($this->instance->file_exists($target), $target.' was not created'); |
|
| 85 | + $this->assertFalse($this->instance->file_exists($source), $source.' still exists'); |
|
| 86 | 86 | $this->assertSameAsLorem($target); |
| 87 | 87 | |
| 88 | 88 | $targetId = $this->instance->getCache()->getId(ltrim($target, '/')); |