@@ -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 |
@@ -68,7 +68,7 @@ |
||
68 | 68 | ]; |
69 | 69 | $this->config->expects($this->any()) |
70 | 70 | ->method('getSystemValue') |
71 | - ->willReturnCallback(function ($config) use ($objectstoreConfig) { |
|
71 | + ->willReturnCallback(function($config) use ($objectstoreConfig) { |
|
72 | 72 | if ($config === 'objectstore_multibucket') { |
73 | 73 | return $objectstoreConfig; |
74 | 74 | } elseif ($config === 'objectstore.multibucket.preview-distribution') { |
@@ -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, '/')); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | |
43 | 43 | private function fillTestFolders() { |
44 | 44 | $textData = "dummy file data\n"; |
45 | - $imgData = file_get_contents(\OC::$SERVERROOT . '/core/img/logo/logo.png'); |
|
45 | + $imgData = file_get_contents(\OC::$SERVERROOT.'/core/img/logo/logo.png'); |
|
46 | 46 | $this->storage->mkdir('folder'); |
47 | 47 | $this->storage->file_put_contents('foo.txt', $textData); |
48 | 48 | $this->storage->file_put_contents('foo.png', $imgData); |
@@ -56,7 +56,7 @@ |
||
56 | 56 | |
57 | 57 | $result = $this->cache->search('%foo%'); |
58 | 58 | $this->assertCount(1, $result); |
59 | - usort($result, function ($a, $b) { |
|
59 | + usort($result, function($a, $b) { |
|
60 | 60 | return $a['path'] <=> $b['path']; |
61 | 61 | }); |
62 | 62 | $this->assertEquals('foobar', $result[0]['path']); |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | $data['etag'] = 'unimportant'; |
90 | 90 | $data['storage_mtime'] = $data['mtime']; |
91 | 91 | if (!isset($data['path'])) { |
92 | - $data['path'] = 'random/' . $this->getUniqueID(); |
|
92 | + $data['path'] = 'random/'.$this->getUniqueID(); |
|
93 | 93 | } |
94 | 94 | $data['path_hash'] = md5($data['path']); |
95 | 95 | if (!isset($data['mtime'])) { |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | $data['name'] = basename($data['path']); |
102 | 102 | $data['parent'] = -1; |
103 | 103 | if (isset($data['mimetype'])) { |
104 | - [$mimepart,] = explode('/', $data['mimetype']); |
|
104 | + [$mimepart, ] = explode('/', $data['mimetype']); |
|
105 | 105 | $data['mimepart'] = $this->mimetypeLoader->getId($mimepart); |
106 | 106 | $data['mimetype'] = $this->mimetypeLoader->getId($data['mimetype']); |
107 | 107 | } else { |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | 'mimetype' => 'image/png' |
197 | 197 | ]); |
198 | 198 | |
199 | - $fileIds = array_map(function ($i) use ($fileId) { |
|
199 | + $fileIds = array_map(function($i) use ($fileId) { |
|
200 | 200 | return $fileId[$i]; |
201 | 201 | }, $fileIds); |
202 | 202 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | * @return ICacheEntry[] |
33 | 33 | */ |
34 | 34 | private function getFileInfos($paths) { |
35 | - $values = array_map(function ($path) { |
|
35 | + $values = array_map(function($path) { |
|
36 | 36 | return $this->storage->getCache()->get($path); |
37 | 37 | }, $paths); |
38 | 38 | return array_combine($paths, $values); |