Completed
Push — master ( 49a025...016f2f )
by
unknown
60:07 queued 24:26
created
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.
tests/lib/Settings/DeclarativeManagerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 					],
100 100
 					[
101 101
 						'name' => 'Each day',
102
-						'value' => 60 * 24 . 'm'
102
+						'value' => 60 * 24.'m'
103 103
 					],
104 104
 				],
105 105
 			],
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
 
252 252
 		$this->groupManager->expects($this->any())
253 253
 			->method('isAdmin')
254
-			->willReturnCallback(function ($userId) {
254
+			->willReturnCallback(function($userId) {
255 255
 				return $userId === 'admin_test_user';
256 256
 			});
257 257
 	}
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
 
468 468
 		$this->config->expects($this->any())
469 469
 			->method('getAppValue')
470
-			->willReturnCallback(function ($app, $configkey, $default) {
470
+			->willReturnCallback(function($app, $configkey, $default) {
471 471
 				if ($configkey === 'some_real_setting' && self::$testSetInternalValueAfterChange) {
472 472
 					return '120m';
473 473
 				}
Please login to merge, or discard this patch.
tests/lib/Share/Backend.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,11 +54,11 @@
 block discarded – undo
54 54
 			$ext = substr($target, $pos);
55 55
 			$append = '';
56 56
 			$i = 1;
57
-			while (in_array($name . $append . $ext, $knownTargets)) {
57
+			while (in_array($name.$append.$ext, $knownTargets)) {
58 58
 				$append = $i;
59 59
 				$i++;
60 60
 			}
61
-			$target = $name . $append . $ext;
61
+			$target = $name.$append.$ext;
62 62
 		}
63 63
 
64 64
 		return $target;
Please login to merge, or discard this patch.
tests/lib/Share/HelperTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 			['user1', 'http://server1', 'user1', 'http://server1', true],
60 60
 			['user1', 'https://server1', 'user1', 'http://server1', true],
61 61
 			['user1', 'http://serVer1', 'user1', 'http://server1', true],
62
-			['user1', 'http://server1/',  'user1', 'http://server1', true],
62
+			['user1', 'http://server1/', 'user1', 'http://server1', true],
63 63
 			['user1', 'server1', 'user1', 'http://server1', true],
64 64
 			['user1', 'http://server1', 'user1', 'http://server2', false],
65 65
 			['user1', 'https://server1', 'user1', 'http://server2', false],
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 			['user1', 'http://server1', 'user2', 'http://server1', false],
70 70
 			['user1', 'https://server1', 'user2', 'http://server1', false],
71 71
 			['user1', 'http://serVer1', 'user2', 'http://server1', false],
72
-			['user1', 'http://server1/',  'user2', 'http://server1', false],
72
+			['user1', 'http://server1/', 'user2', 'http://server1', false],
73 73
 			['user1', 'server1', 'user2', 'http://server1', false],
74 74
 		];
75 75
 	}
Please login to merge, or discard this patch.
tests/lib/Repair/RepairCollationTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 		$this->logger = $this->createMock(LoggerInterface::class);
55 55
 
56 56
 		$dbPrefix = $this->config->getSystemValueString('dbtableprefix');
57
-		$this->tableName = $this->getUniqueID($dbPrefix . '_collation_test');
57
+		$this->tableName = $this->getUniqueID($dbPrefix.'_collation_test');
58 58
 		$this->connection->prepare("CREATE TABLE $this->tableName(text VARCHAR(16)) COLLATE utf8_unicode_ci")->execute();
59 59
 
60 60
 		$this->repair = new TestCollationRepair($this->config, $this->logger, $this->connection, false);
Please login to merge, or discard this patch.
tests/lib/Repair/RepairDavSharesTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 		$shareResults = $this->createMock(IResult::class);
112 112
 		$shareResults->expects($this->any())
113 113
 			->method('fetch')
114
-			->willReturnCallback(function () use (&$shareResultData) {
114
+			->willReturnCallback(function() use (&$shareResultData) {
115 115
 				return array_pop($shareResultData);
116 116
 			});
117 117
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 			->willReturnSelf();
151 151
 		$updateMock->expects($this->exactly(4))
152 152
 			->method('setParameter')
153
-			->willReturnCallback(function () use (&$updateCalls, &$updateMock) {
153
+			->willReturnCallback(function() use (&$updateCalls, &$updateMock) {
154 154
 				$updateCalls[] = func_get_args();
155 155
 				return $updateMock;
156 156
 			});
@@ -163,15 +163,15 @@  discard block
 block discarded – undo
163 163
 
164 164
 		$this->groupManager->expects($this->any())
165 165
 			->method('groupExists')
166
-			->willReturnCallback(function (string $gid) use ($existingGroups) {
166
+			->willReturnCallback(function(string $gid) use ($existingGroups) {
167 167
 				return in_array($gid, $existingGroups);
168 168
 			});
169 169
 
170 170
 		$this->repair->run($this->output);
171 171
 		self::assertEquals([
172
-			['updatedPrincipalUri', 'principals/groups/' . urlencode('family friends'), null],
172
+			['updatedPrincipalUri', 'principals/groups/'.urlencode('family friends'), null],
173 173
 			['shareId', 7, null],
174
-			['updatedPrincipalUri', 'principals/groups/' . urlencode('Wants Repair'), null],
174
+			['updatedPrincipalUri', 'principals/groups/'.urlencode('Wants Repair'), null],
175 175
 			['shareId', 1, null]
176 176
 		], $updateCalls);
177 177
 	}
Please login to merge, or discard this patch.