Completed
Push — master ( 9e9f3b...45f5da )
by
unknown
32:09
created
apps/files/tests/Controller/ViewControllerTest.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 			->willReturnArgument(0);
98 98
 		$this->appManager->expects($this->any())
99 99
 			->method('getAppPath')
100
-			->willReturnCallback(fn (string $appid): string => \OC::$SERVERROOT . '/apps/' . $appid);
100
+			->willReturnCallback(fn (string $appid): string => \OC::$SERVERROOT.'/apps/'.$appid);
101 101
 		$this->appManager->expects($this->any())
102 102
 			->method('isAppLoaded')
103 103
 			->willReturn(true);
@@ -202,15 +202,15 @@  discard block
 block discarded – undo
202 202
 		// opendetails is undefined by default
203 203
 		// both will be evaluated as truthy
204 204
 		return [
205
-			[null,		null,		'/index.php/apps/files/files/123456?openfile=true'],
206
-			['',		null,		'/index.php/apps/files/files/123456?openfile=true'],
207
-			[null,		'',			'/index.php/apps/files/files/123456?openfile=true&opendetails=true'],
208
-			['',		'', 		'/index.php/apps/files/files/123456?openfile=true&opendetails=true'],
209
-			['false',	'',			'/index.php/apps/files/files/123456?openfile=false'],
210
-			[null,		'false',	'/index.php/apps/files/files/123456?openfile=true&opendetails=false'],
211
-			['true',	'false',	'/index.php/apps/files/files/123456?openfile=true&opendetails=false'],
212
-			['false',	'true',		'/index.php/apps/files/files/123456?openfile=false&opendetails=true'],
213
-			['false',	'false',	'/index.php/apps/files/files/123456?openfile=false&opendetails=false'],
205
+			[null, null, '/index.php/apps/files/files/123456?openfile=true'],
206
+			['', null, '/index.php/apps/files/files/123456?openfile=true'],
207
+			[null, '', '/index.php/apps/files/files/123456?openfile=true&opendetails=true'],
208
+			['', '', '/index.php/apps/files/files/123456?openfile=true&opendetails=true'],
209
+			['false', '', '/index.php/apps/files/files/123456?openfile=false'],
210
+			[null, 'false', '/index.php/apps/files/files/123456?openfile=true&opendetails=false'],
211
+			['true', 'false', '/index.php/apps/files/files/123456?openfile=true&opendetails=false'],
212
+			['false', 'true', '/index.php/apps/files/files/123456?openfile=false&opendetails=true'],
213
+			['false', 'false', '/index.php/apps/files/files/123456?openfile=false&opendetails=false'],
214 214
 		];
215 215
 	}
216 216
 
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 		$invokedCountProvideInitialState = $this->exactly(9);
302 302
 		$this->initialState->expects($invokedCountProvideInitialState)
303 303
 			->method('provideInitialState')
304
-			->willReturnCallback(function ($key, $data) use ($invokedCountProvideInitialState): void {
304
+			->willReturnCallback(function($key, $data) use ($invokedCountProvideInitialState): void {
305 305
 				if ($invokedCountProvideInitialState->numberOfInvocations() === 9) {
306 306
 					$this->assertEquals('isTwoFactorEnabled', $key);
307 307
 					$this->assertTrue($data);
Please login to merge, or discard this patch.
tests/lib/Files/ObjectStore/PrimaryObjectStoreConfigTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 		$this->config = $this->createMock(IConfig::class);
31 31
 		$this->appManager = $this->createMock(IAppManager::class);
32 32
 		$this->config->method('getSystemValue')
33
-			->willReturnCallback(function ($key, $default = '') {
33
+			->willReturnCallback(function($key, $default = '') {
34 34
 				if (isset($this->systemConfig[$key])) {
35 35
 					return $this->systemConfig[$key];
36 36
 				} else {
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 				}
39 39
 			});
40 40
 		$this->config->method('getUserValue')
41
-			->willReturnCallback(function ($userId, $appName, $key, $default = '') {
41
+			->willReturnCallback(function($userId, $appName, $key, $default = '') {
42 42
 				if (isset($this->userConfig[$userId][$appName][$key])) {
43 43
 					return $this->userConfig[$userId][$appName][$key];
44 44
 				} else {
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 				}
47 47
 			});
48 48
 		$this->config->method('setUserValue')
49
-			->willReturnCallback(function ($userId, $appName, $key, $value): void {
49
+			->willReturnCallback(function($userId, $appName, $key, $value): void {
50 50
 				$this->userConfig[$userId][$appName][$key] = $value;
51 51
 			});
52 52
 
Please login to merge, or discard this patch.
core/Command/TaskProcessing/Cleanup.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -40,22 +40,22 @@  discard block
 block discarded – undo
40 40
 				'maxAgeSeconds',
41 41
 				InputArgument::OPTIONAL,
42 42
 				// default is not defined as an argument default value because we want to show a nice "4 months" value
43
-				'delete tasks that are older than this number of seconds, defaults to ' . Manager::MAX_TASK_AGE_SECONDS . ' (4 months)',
43
+				'delete tasks that are older than this number of seconds, defaults to '.Manager::MAX_TASK_AGE_SECONDS.' (4 months)',
44 44
 			);
45 45
 		parent::configure();
46 46
 	}
47 47
 
48 48
 	protected function execute(InputInterface $input, OutputInterface $output): int {
49 49
 		$maxAgeSeconds = $input->getArgument('maxAgeSeconds') ?? Manager::MAX_TASK_AGE_SECONDS;
50
-		$output->writeln('<comment>Cleanup up tasks older than ' . $maxAgeSeconds . ' seconds and the related output files</comment>');
50
+		$output->writeln('<comment>Cleanup up tasks older than '.$maxAgeSeconds.' seconds and the related output files</comment>');
51 51
 
52 52
 		$taskIdsToCleanup = [];
53 53
 		try {
54 54
 			$fileCleanupGenerator = $this->taskProcessingManager->cleanupTaskProcessingTaskFiles($maxAgeSeconds);
55 55
 			foreach ($fileCleanupGenerator as $cleanedUpEntry) {
56 56
 				$output->writeln(
57
-					"<info>\t - " . 'Deleted appData/core/TaskProcessing/' . $cleanedUpEntry['file_name']
58
-					. ' (fileId: ' . $cleanedUpEntry['file_id'] . ', taskId: ' . $cleanedUpEntry['task_id'] . ')</info>'
57
+					"<info>\t - ".'Deleted appData/core/TaskProcessing/'.$cleanedUpEntry['file_name']
58
+					. ' (fileId: '.$cleanedUpEntry['file_id'].', taskId: '.$cleanedUpEntry['task_id'].')</info>'
59 59
 				);
60 60
 			}
61 61
 			$taskIdsToCleanup = $fileCleanupGenerator->getReturn();
@@ -66,9 +66,9 @@  discard block
 block discarded – undo
66 66
 		try {
67 67
 			$deletedTaskCount = $this->taskMapper->deleteOlderThan($maxAgeSeconds);
68 68
 			foreach ($taskIdsToCleanup as $taskId) {
69
-				$output->writeln("<info>\t - " . 'Deleted task ' . $taskId . ' from the database</info>');
69
+				$output->writeln("<info>\t - ".'Deleted task '.$taskId.' from the database</info>');
70 70
 			}
71
-			$output->writeln("<comment>\t - " . 'Deleted ' . $deletedTaskCount . ' tasks from the database</comment>');
71
+			$output->writeln("<comment>\t - ".'Deleted '.$deletedTaskCount.' tasks from the database</comment>');
72 72
 		} catch (\OCP\DB\Exception $e) {
73 73
 			$this->logger->warning('Failed to delete stale task processing tasks', ['exception' => $e]);
74 74
 			$output->writeln('<warning>Failed to delete stale task processing tasks</warning>');
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 		try {
77 77
 			$textToImageDeletedFileNames = $this->taskProcessingManager->clearFilesOlderThan($this->appData->getFolder('text2image'), $maxAgeSeconds);
78 78
 			foreach ($textToImageDeletedFileNames as $entry) {
79
-				$output->writeln("<info>\t - " . 'Deleted appData/core/text2image/' . $entry . '</info>');
79
+				$output->writeln("<info>\t - ".'Deleted appData/core/text2image/'.$entry.'</info>');
80 80
 			}
81 81
 		} catch (NotFoundException $e) {
82 82
 			// noop
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 		try {
85 85
 			$audioToTextDeletedFileNames = $this->taskProcessingManager->clearFilesOlderThan($this->appData->getFolder('audio2text'), $maxAgeSeconds);
86 86
 			foreach ($audioToTextDeletedFileNames as $entry) {
87
-				$output->writeln("<info>\t - " . 'Deleted appData/core/audio2text/' . $entry . '</info>');
87
+				$output->writeln("<info>\t - ".'Deleted appData/core/audio2text/'.$entry.'</info>');
88 88
 			}
89 89
 		} catch (NotFoundException $e) {
90 90
 			// noop
Please login to merge, or discard this patch.