Completed
Push — master ( b60a8d...de4a35 )
by
unknown
19:04
created
tests/lib/Files/Cache/Wrapper/CacheJailTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
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']);
Please login to merge, or discard this patch.
tests/lib/Files/Cache/SearchBuilderTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/lib/Files/Cache/PropagatorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/lib/Files/Cache/ScannerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 		$this->assertEquals($cachedData['mimetype'], 'text/plain');
54 54
 		$this->assertNotEquals($cachedData['parent'], -1); //parent folders should be scanned automatically
55 55
 
56
-		$data = file_get_contents(OC::$SERVERROOT . '/core/img/logo/logo.png');
56
+		$data = file_get_contents(OC::$SERVERROOT.'/core/img/logo/logo.png');
57 57
 		$this->storage->file_put_contents('foo.png', $data);
58 58
 		$this->scanner->scanFile('foo.png');
59 59
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
 	private function fillTestFolders() {
93 93
 		$textData = "dummy file data\n";
94
-		$imgData = file_get_contents(OC::$SERVERROOT . '/core/img/logo/logo.png');
94
+		$imgData = file_get_contents(OC::$SERVERROOT.'/core/img/logo/logo.png');
95 95
 		$this->storage->mkdir('folder');
96 96
 		$this->storage->file_put_contents('foo.txt', $textData);
97 97
 		$this->storage->file_put_contents('foo.png', $imgData);
Please login to merge, or discard this patch.
tests/lib/Files/Storage/Wrapper/KnownMtimeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 		$this->fakeTime = 0;
29 29
 		$this->sourceStorage = new Temporary([]);
30 30
 		$this->clock = $this->createMock(ClockInterface::class);
31
-		$this->clock->method('now')->willReturnCallback(function () {
31
+		$this->clock->method('now')->willReturnCallback(function() {
32 32
 			if ($this->fakeTime) {
33 33
 				return new \DateTimeImmutable("@{$this->fakeTime}");
34 34
 			} else {
Please login to merge, or discard this patch.
tests/lib/Files/Storage/HomeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 	 * Tests that the home id is in the format home::user1
71 71
 	 */
72 72
 	public function testId(): void {
73
-		$this->assertEquals('home::' . $this->userId, $this->instance->getId());
73
+		$this->assertEquals('home::'.$this->userId, $this->instance->getId());
74 74
 	}
75 75
 
76 76
 	/**
Please login to merge, or discard this patch.
tests/lib/Files/Node/IntegrationTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 		$this->loginAsUser($user->getUID());
56 56
 		$cacheFactory = $this->createMock(ICacheFactory::class);
57 57
 		$cacheFactory->method('createLocal')
58
-			->willReturnCallback(function () {
58
+			->willReturnCallback(function() {
59 59
 				return new ArrayCache();
60 60
 			});
61 61
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 		$this->storages[] = $subStorage;
77 77
 		$this->root->mount($storage, '/');
78 78
 		$this->root->mount($subStorage, '/substorage/');
79
-		$manager->removeMount('/' . $user->getUID());
79
+		$manager->removeMount('/'.$user->getUID());
80 80
 	}
81 81
 
82 82
 	protected function tearDown(): void {
Please login to merge, or discard this patch.
tests/lib/Files/Node/RootTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 		$this->eventDispatcher = $this->createMock(IEventDispatcher::class);
56 56
 		$this->cacheFactory = $this->createMock(ICacheFactory::class);
57 57
 		$this->cacheFactory->method('createLocal')
58
-			->willReturnCallback(function () {
58
+			->willReturnCallback(function() {
59 59
 				return new ArrayCache();
60 60
 			});
61 61
 	}
Please login to merge, or discard this patch.
tests/lib/Files/Node/FolderTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -704,9 +704,9 @@  discard block
 block discarded – undo
704 704
 
705 705
 		$view->expects($this->any())
706 706
 			->method('file_exists')
707
-			->willReturnCallback(function ($path) use ($existingFiles, $folderPath) {
707
+			->willReturnCallback(function($path) use ($existingFiles, $folderPath) {
708 708
 				foreach ($existingFiles as $existing) {
709
-					if ($folderPath . '/' . $existing === $path) {
709
+					if ($folderPath.'/'.$existing === $path) {
710 710
 						return true;
711 711
 					}
712 712
 				}
@@ -780,8 +780,8 @@  discard block
 block discarded – undo
780 780
 
781 781
 
782 782
 		$nodes = $node->getRecent(5);
783
-		$ids = array_map(function (Node $node) {
784
-			return (int)$node->getId();
783
+		$ids = array_map(function(Node $node) {
784
+			return (int) $node->getId();
785 785
 		}, $nodes);
786 786
 		$this->assertEquals([$id1, $id2, $id3], $ids);
787 787
 	}
@@ -845,8 +845,8 @@  discard block
 block discarded – undo
845 845
 
846 846
 
847 847
 		$nodes = $node->getRecent(5);
848
-		$ids = array_map(function (Node $node) {
849
-			return (int)$node->getId();
848
+		$ids = array_map(function(Node $node) {
849
+			return (int) $node->getId();
850 850
 		}, $nodes);
851 851
 		$this->assertEquals([$id2, $id3], $ids);
852 852
 		$this->assertEquals($baseTime, $nodes[0]->getMTime());
@@ -904,8 +904,8 @@  discard block
 block discarded – undo
904 904
 		$node = new Folder($root, $view, $folderPath, $folderInfo);
905 905
 
906 906
 		$nodes = $node->getRecent(5);
907
-		$ids = array_map(function (Node $node) {
908
-			return (int)$node->getId();
907
+		$ids = array_map(function(Node $node) {
908
+			return (int) $node->getId();
909 909
 		}, $nodes);
910 910
 		$this->assertEquals([$id1], $ids);
911 911
 	}
@@ -1032,7 +1032,7 @@  discard block
 block discarded – undo
1032 1032
 		$cache->clear();
1033 1033
 		$subCache1->clear();
1034 1034
 		$subCache2->clear();
1035
-		$ids = array_map(function (Node $info) {
1035
+		$ids = array_map(function(Node $info) {
1036 1036
 			return $info->getPath();
1037 1037
 		}, $result);
1038 1038
 		$this->assertEquals($expectedPaths, $ids);
Please login to merge, or discard this patch.