Completed
Push — master ( b36223...1eab80 )
by
unknown
27:41 queued 14s
created
apps/files_sharing/tests/MountProviderTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 		$shareAttributes = $this->createMock(IShareAttributes::class);
62 62
 		$shareAttributes->method('toArray')->willReturn($attrs);
63 63
 		$shareAttributes->method('getAttribute')->will(
64
-			$this->returnCallback(function ($scope, $key) use ($attrs) {
64
+			$this->returnCallback(function($scope, $key) use ($attrs) {
65 65
 				$result = null;
66 66
 				foreach ($attrs as $attr) {
67 67
 					if ($attr['key'] === $key && $attr['scope'] === $scope) {
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 			->method('getShareTime')
99 99
 			->willReturn(
100 100
 				// compute share time based on id, simulating share order
101
-				new \DateTime('@' . (1469193980 + 1000 * $id))
101
+				new \DateTime('@'.(1469193980 + 1000 * $id))
102 102
 			);
103 103
 		return $share;
104 104
 	}
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 
154 154
 		$this->shareManager->expects($this->any())
155 155
 			->method('newShare')
156
-			->willReturnCallback(function () use ($rootFolder, $userManager) {
156
+			->willReturnCallback(function() use ($rootFolder, $userManager) {
157 157
 				return new Share($rootFolder, $userManager);
158 158
 			});
159 159
 
@@ -341,10 +341,10 @@  discard block
 block discarded – undo
341 341
 		$rootFolder = $this->createMock(IRootFolder::class);
342 342
 		$userManager = $this->createMock(IUserManager::class);
343 343
 
344
-		$userShares = array_map(function ($shareSpec) {
344
+		$userShares = array_map(function($shareSpec) {
345 345
 			return $this->makeMockShare($shareSpec[0], $shareSpec[1], $shareSpec[2], $shareSpec[3], $shareSpec[4], $shareSpec[5]);
346 346
 		}, $userShares);
347
-		$groupShares = array_map(function ($shareSpec) {
347
+		$groupShares = array_map(function($shareSpec) {
348 348
 			return $this->makeMockShare($shareSpec[0], $shareSpec[1], $shareSpec[2], $shareSpec[3], $shareSpec[4], $shareSpec[5]);
349 349
 		}, $groupShares);
350 350
 
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
 
371 371
 		$this->shareManager->expects($this->any())
372 372
 			->method('newShare')
373
-			->willReturnCallback(function () use ($rootFolder, $userManager) {
373
+			->willReturnCallback(function() use ($rootFolder, $userManager) {
374 374
 				return new Share($rootFolder, $userManager);
375 375
 			});
376 376
 
Please login to merge, or discard this patch.
apps/files_sharing/tests/Command/CleanupRemoteStoragesTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -86,8 +86,8 @@  discard block
 block discarded – undo
86 86
 			if (isset($storage['files_count'])) {
87 87
 				for ($i = 0; $i < $storage['files_count']; $i++) {
88 88
 					$filesQuery->setParameter('storage', $storage['numeric_id']);
89
-					$filesQuery->setParameter('path', 'file' . $i);
90
-					$filesQuery->setParameter('path_hash', md5('file' . $i));
89
+					$filesQuery->setParameter('path', 'file'.$i);
90
+					$filesQuery->setParameter('path_hash', md5('file'.$i));
91 91
 					$filesQuery->executeStatement();
92 92
 				}
93 93
 			}
@@ -168,14 +168,14 @@  discard block
 block discarded – undo
168 168
 		$output
169 169
 			->expects($this->any())
170 170
 			->method('writeln')
171
-			->willReturnCallback(function (string $text) use (&$outputCalls) {
171
+			->willReturnCallback(function(string $text) use (&$outputCalls) {
172 172
 				$outputCalls[] = $text;
173 173
 			});
174 174
 
175 175
 		$this->cloudIdManager
176 176
 			->expects($this->any())
177 177
 			->method('getCloudId')
178
-			->will($this->returnCallback(function (string $user, string $remote) {
178
+			->will($this->returnCallback(function(string $user, string $remote) {
179 179
 				$cloudIdMock = $this->createMock(ICloudId::class);
180 180
 
181 181
 				// The remotes are already sanitized in the original data, so
Please login to merge, or discard this patch.