Passed
Push — master ( a16703...c6645c )
by John
17:09 queued 13s
created
apps/workflowengine/composer/composer/autoload_classmap.php 1 patch
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -6,37 +6,37 @@
 block discarded – undo
6 6
 $baseDir = $vendorDir;
7 7
 
8 8
 return array(
9
-    'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
10
-    'OCA\\WorkflowEngine\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php',
11
-    'OCA\\WorkflowEngine\\BackgroundJobs\\Rotate' => $baseDir . '/../lib/BackgroundJobs/Rotate.php',
12
-    'OCA\\WorkflowEngine\\Check\\AbstractStringCheck' => $baseDir . '/../lib/Check/AbstractStringCheck.php',
13
-    'OCA\\WorkflowEngine\\Check\\FileMimeType' => $baseDir . '/../lib/Check/FileMimeType.php',
14
-    'OCA\\WorkflowEngine\\Check\\FileName' => $baseDir . '/../lib/Check/FileName.php',
15
-    'OCA\\WorkflowEngine\\Check\\FileSize' => $baseDir . '/../lib/Check/FileSize.php',
16
-    'OCA\\WorkflowEngine\\Check\\FileSystemTags' => $baseDir . '/../lib/Check/FileSystemTags.php',
17
-    'OCA\\WorkflowEngine\\Check\\RequestRemoteAddress' => $baseDir . '/../lib/Check/RequestRemoteAddress.php',
18
-    'OCA\\WorkflowEngine\\Check\\RequestTime' => $baseDir . '/../lib/Check/RequestTime.php',
19
-    'OCA\\WorkflowEngine\\Check\\RequestURL' => $baseDir . '/../lib/Check/RequestURL.php',
20
-    'OCA\\WorkflowEngine\\Check\\RequestUserAgent' => $baseDir . '/../lib/Check/RequestUserAgent.php',
21
-    'OCA\\WorkflowEngine\\Check\\TFileCheck' => $baseDir . '/../lib/Check/TFileCheck.php',
22
-    'OCA\\WorkflowEngine\\Check\\UserGroupMembership' => $baseDir . '/../lib/Check/UserGroupMembership.php',
23
-    'OCA\\WorkflowEngine\\Command\\Index' => $baseDir . '/../lib/Command/Index.php',
24
-    'OCA\\WorkflowEngine\\Controller\\AWorkflowController' => $baseDir . '/../lib/Controller/AWorkflowController.php',
25
-    'OCA\\WorkflowEngine\\Controller\\GlobalWorkflowsController' => $baseDir . '/../lib/Controller/GlobalWorkflowsController.php',
26
-    'OCA\\WorkflowEngine\\Controller\\RequestTime' => $baseDir . '/../lib/Controller/RequestTime.php',
27
-    'OCA\\WorkflowEngine\\Controller\\UserWorkflowsController' => $baseDir . '/../lib/Controller/UserWorkflowsController.php',
28
-    'OCA\\WorkflowEngine\\Entity\\File' => $baseDir . '/../lib/Entity/File.php',
29
-    'OCA\\WorkflowEngine\\Helper\\LogContext' => $baseDir . '/../lib/Helper/LogContext.php',
30
-    'OCA\\WorkflowEngine\\Helper\\ScopeContext' => $baseDir . '/../lib/Helper/ScopeContext.php',
31
-    'OCA\\WorkflowEngine\\Listener\\LoadAdditionalSettingsScriptsListener' => $baseDir . '/../lib/Listener/LoadAdditionalSettingsScriptsListener.php',
32
-    'OCA\\WorkflowEngine\\Manager' => $baseDir . '/../lib/Manager.php',
33
-    'OCA\\WorkflowEngine\\Migration\\PopulateNewlyIntroducedDatabaseFields' => $baseDir . '/../lib/Migration/PopulateNewlyIntroducedDatabaseFields.php',
34
-    'OCA\\WorkflowEngine\\Migration\\Version2000Date20190808074233' => $baseDir . '/../lib/Migration/Version2000Date20190808074233.php',
35
-    'OCA\\WorkflowEngine\\Migration\\Version2200Date20210805101925' => $baseDir . '/../lib/Migration/Version2200Date20210805101925.php',
36
-    'OCA\\WorkflowEngine\\Service\\Logger' => $baseDir . '/../lib/Service/Logger.php',
37
-    'OCA\\WorkflowEngine\\Service\\RuleMatcher' => $baseDir . '/../lib/Service/RuleMatcher.php',
38
-    'OCA\\WorkflowEngine\\Settings\\ASettings' => $baseDir . '/../lib/Settings/ASettings.php',
39
-    'OCA\\WorkflowEngine\\Settings\\Admin' => $baseDir . '/../lib/Settings/Admin.php',
40
-    'OCA\\WorkflowEngine\\Settings\\Personal' => $baseDir . '/../lib/Settings/Personal.php',
41
-    'OCA\\WorkflowEngine\\Settings\\Section' => $baseDir . '/../lib/Settings/Section.php',
9
+    'Composer\\InstalledVersions' => $vendorDir.'/composer/InstalledVersions.php',
10
+    'OCA\\WorkflowEngine\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php',
11
+    'OCA\\WorkflowEngine\\BackgroundJobs\\Rotate' => $baseDir.'/../lib/BackgroundJobs/Rotate.php',
12
+    'OCA\\WorkflowEngine\\Check\\AbstractStringCheck' => $baseDir.'/../lib/Check/AbstractStringCheck.php',
13
+    'OCA\\WorkflowEngine\\Check\\FileMimeType' => $baseDir.'/../lib/Check/FileMimeType.php',
14
+    'OCA\\WorkflowEngine\\Check\\FileName' => $baseDir.'/../lib/Check/FileName.php',
15
+    'OCA\\WorkflowEngine\\Check\\FileSize' => $baseDir.'/../lib/Check/FileSize.php',
16
+    'OCA\\WorkflowEngine\\Check\\FileSystemTags' => $baseDir.'/../lib/Check/FileSystemTags.php',
17
+    'OCA\\WorkflowEngine\\Check\\RequestRemoteAddress' => $baseDir.'/../lib/Check/RequestRemoteAddress.php',
18
+    'OCA\\WorkflowEngine\\Check\\RequestTime' => $baseDir.'/../lib/Check/RequestTime.php',
19
+    'OCA\\WorkflowEngine\\Check\\RequestURL' => $baseDir.'/../lib/Check/RequestURL.php',
20
+    'OCA\\WorkflowEngine\\Check\\RequestUserAgent' => $baseDir.'/../lib/Check/RequestUserAgent.php',
21
+    'OCA\\WorkflowEngine\\Check\\TFileCheck' => $baseDir.'/../lib/Check/TFileCheck.php',
22
+    'OCA\\WorkflowEngine\\Check\\UserGroupMembership' => $baseDir.'/../lib/Check/UserGroupMembership.php',
23
+    'OCA\\WorkflowEngine\\Command\\Index' => $baseDir.'/../lib/Command/Index.php',
24
+    'OCA\\WorkflowEngine\\Controller\\AWorkflowController' => $baseDir.'/../lib/Controller/AWorkflowController.php',
25
+    'OCA\\WorkflowEngine\\Controller\\GlobalWorkflowsController' => $baseDir.'/../lib/Controller/GlobalWorkflowsController.php',
26
+    'OCA\\WorkflowEngine\\Controller\\RequestTime' => $baseDir.'/../lib/Controller/RequestTime.php',
27
+    'OCA\\WorkflowEngine\\Controller\\UserWorkflowsController' => $baseDir.'/../lib/Controller/UserWorkflowsController.php',
28
+    'OCA\\WorkflowEngine\\Entity\\File' => $baseDir.'/../lib/Entity/File.php',
29
+    'OCA\\WorkflowEngine\\Helper\\LogContext' => $baseDir.'/../lib/Helper/LogContext.php',
30
+    'OCA\\WorkflowEngine\\Helper\\ScopeContext' => $baseDir.'/../lib/Helper/ScopeContext.php',
31
+    'OCA\\WorkflowEngine\\Listener\\LoadAdditionalSettingsScriptsListener' => $baseDir.'/../lib/Listener/LoadAdditionalSettingsScriptsListener.php',
32
+    'OCA\\WorkflowEngine\\Manager' => $baseDir.'/../lib/Manager.php',
33
+    'OCA\\WorkflowEngine\\Migration\\PopulateNewlyIntroducedDatabaseFields' => $baseDir.'/../lib/Migration/PopulateNewlyIntroducedDatabaseFields.php',
34
+    'OCA\\WorkflowEngine\\Migration\\Version2000Date20190808074233' => $baseDir.'/../lib/Migration/Version2000Date20190808074233.php',
35
+    'OCA\\WorkflowEngine\\Migration\\Version2200Date20210805101925' => $baseDir.'/../lib/Migration/Version2200Date20210805101925.php',
36
+    'OCA\\WorkflowEngine\\Service\\Logger' => $baseDir.'/../lib/Service/Logger.php',
37
+    'OCA\\WorkflowEngine\\Service\\RuleMatcher' => $baseDir.'/../lib/Service/RuleMatcher.php',
38
+    'OCA\\WorkflowEngine\\Settings\\ASettings' => $baseDir.'/../lib/Settings/ASettings.php',
39
+    'OCA\\WorkflowEngine\\Settings\\Admin' => $baseDir.'/../lib/Settings/Admin.php',
40
+    'OCA\\WorkflowEngine\\Settings\\Personal' => $baseDir.'/../lib/Settings/Personal.php',
41
+    'OCA\\WorkflowEngine\\Settings\\Section' => $baseDir.'/../lib/Settings/Section.php',
42 42
 );
Please login to merge, or discard this patch.
apps/workflowengine/composer/composer/autoload_static.php 1 patch
Spacing   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -6,59 +6,59 @@
 block discarded – undo
6 6
 
7 7
 class ComposerStaticInitWorkflowEngine
8 8
 {
9
-    public static $prefixLengthsPsr4 = array (
9
+    public static $prefixLengthsPsr4 = array(
10 10
         'O' => 
11
-        array (
11
+        array(
12 12
             'OCA\\WorkflowEngine\\' => 19,
13 13
         ),
14 14
     );
15 15
 
16
-    public static $prefixDirsPsr4 = array (
16
+    public static $prefixDirsPsr4 = array(
17 17
         'OCA\\WorkflowEngine\\' => 
18
-        array (
19
-            0 => __DIR__ . '/..' . '/../lib',
18
+        array(
19
+            0 => __DIR__.'/..'.'/../lib',
20 20
         ),
21 21
     );
22 22
 
23
-    public static $classMap = array (
24
-        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
25
-        'OCA\\WorkflowEngine\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php',
26
-        'OCA\\WorkflowEngine\\BackgroundJobs\\Rotate' => __DIR__ . '/..' . '/../lib/BackgroundJobs/Rotate.php',
27
-        'OCA\\WorkflowEngine\\Check\\AbstractStringCheck' => __DIR__ . '/..' . '/../lib/Check/AbstractStringCheck.php',
28
-        'OCA\\WorkflowEngine\\Check\\FileMimeType' => __DIR__ . '/..' . '/../lib/Check/FileMimeType.php',
29
-        'OCA\\WorkflowEngine\\Check\\FileName' => __DIR__ . '/..' . '/../lib/Check/FileName.php',
30
-        'OCA\\WorkflowEngine\\Check\\FileSize' => __DIR__ . '/..' . '/../lib/Check/FileSize.php',
31
-        'OCA\\WorkflowEngine\\Check\\FileSystemTags' => __DIR__ . '/..' . '/../lib/Check/FileSystemTags.php',
32
-        'OCA\\WorkflowEngine\\Check\\RequestRemoteAddress' => __DIR__ . '/..' . '/../lib/Check/RequestRemoteAddress.php',
33
-        'OCA\\WorkflowEngine\\Check\\RequestTime' => __DIR__ . '/..' . '/../lib/Check/RequestTime.php',
34
-        'OCA\\WorkflowEngine\\Check\\RequestURL' => __DIR__ . '/..' . '/../lib/Check/RequestURL.php',
35
-        'OCA\\WorkflowEngine\\Check\\RequestUserAgent' => __DIR__ . '/..' . '/../lib/Check/RequestUserAgent.php',
36
-        'OCA\\WorkflowEngine\\Check\\TFileCheck' => __DIR__ . '/..' . '/../lib/Check/TFileCheck.php',
37
-        'OCA\\WorkflowEngine\\Check\\UserGroupMembership' => __DIR__ . '/..' . '/../lib/Check/UserGroupMembership.php',
38
-        'OCA\\WorkflowEngine\\Command\\Index' => __DIR__ . '/..' . '/../lib/Command/Index.php',
39
-        'OCA\\WorkflowEngine\\Controller\\AWorkflowController' => __DIR__ . '/..' . '/../lib/Controller/AWorkflowController.php',
40
-        'OCA\\WorkflowEngine\\Controller\\GlobalWorkflowsController' => __DIR__ . '/..' . '/../lib/Controller/GlobalWorkflowsController.php',
41
-        'OCA\\WorkflowEngine\\Controller\\RequestTime' => __DIR__ . '/..' . '/../lib/Controller/RequestTime.php',
42
-        'OCA\\WorkflowEngine\\Controller\\UserWorkflowsController' => __DIR__ . '/..' . '/../lib/Controller/UserWorkflowsController.php',
43
-        'OCA\\WorkflowEngine\\Entity\\File' => __DIR__ . '/..' . '/../lib/Entity/File.php',
44
-        'OCA\\WorkflowEngine\\Helper\\LogContext' => __DIR__ . '/..' . '/../lib/Helper/LogContext.php',
45
-        'OCA\\WorkflowEngine\\Helper\\ScopeContext' => __DIR__ . '/..' . '/../lib/Helper/ScopeContext.php',
46
-        'OCA\\WorkflowEngine\\Listener\\LoadAdditionalSettingsScriptsListener' => __DIR__ . '/..' . '/../lib/Listener/LoadAdditionalSettingsScriptsListener.php',
47
-        'OCA\\WorkflowEngine\\Manager' => __DIR__ . '/..' . '/../lib/Manager.php',
48
-        'OCA\\WorkflowEngine\\Migration\\PopulateNewlyIntroducedDatabaseFields' => __DIR__ . '/..' . '/../lib/Migration/PopulateNewlyIntroducedDatabaseFields.php',
49
-        'OCA\\WorkflowEngine\\Migration\\Version2000Date20190808074233' => __DIR__ . '/..' . '/../lib/Migration/Version2000Date20190808074233.php',
50
-        'OCA\\WorkflowEngine\\Migration\\Version2200Date20210805101925' => __DIR__ . '/..' . '/../lib/Migration/Version2200Date20210805101925.php',
51
-        'OCA\\WorkflowEngine\\Service\\Logger' => __DIR__ . '/..' . '/../lib/Service/Logger.php',
52
-        'OCA\\WorkflowEngine\\Service\\RuleMatcher' => __DIR__ . '/..' . '/../lib/Service/RuleMatcher.php',
53
-        'OCA\\WorkflowEngine\\Settings\\ASettings' => __DIR__ . '/..' . '/../lib/Settings/ASettings.php',
54
-        'OCA\\WorkflowEngine\\Settings\\Admin' => __DIR__ . '/..' . '/../lib/Settings/Admin.php',
55
-        'OCA\\WorkflowEngine\\Settings\\Personal' => __DIR__ . '/..' . '/../lib/Settings/Personal.php',
56
-        'OCA\\WorkflowEngine\\Settings\\Section' => __DIR__ . '/..' . '/../lib/Settings/Section.php',
23
+    public static $classMap = array(
24
+        'Composer\\InstalledVersions' => __DIR__.'/..'.'/composer/InstalledVersions.php',
25
+        'OCA\\WorkflowEngine\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php',
26
+        'OCA\\WorkflowEngine\\BackgroundJobs\\Rotate' => __DIR__.'/..'.'/../lib/BackgroundJobs/Rotate.php',
27
+        'OCA\\WorkflowEngine\\Check\\AbstractStringCheck' => __DIR__.'/..'.'/../lib/Check/AbstractStringCheck.php',
28
+        'OCA\\WorkflowEngine\\Check\\FileMimeType' => __DIR__.'/..'.'/../lib/Check/FileMimeType.php',
29
+        'OCA\\WorkflowEngine\\Check\\FileName' => __DIR__.'/..'.'/../lib/Check/FileName.php',
30
+        'OCA\\WorkflowEngine\\Check\\FileSize' => __DIR__.'/..'.'/../lib/Check/FileSize.php',
31
+        'OCA\\WorkflowEngine\\Check\\FileSystemTags' => __DIR__.'/..'.'/../lib/Check/FileSystemTags.php',
32
+        'OCA\\WorkflowEngine\\Check\\RequestRemoteAddress' => __DIR__.'/..'.'/../lib/Check/RequestRemoteAddress.php',
33
+        'OCA\\WorkflowEngine\\Check\\RequestTime' => __DIR__.'/..'.'/../lib/Check/RequestTime.php',
34
+        'OCA\\WorkflowEngine\\Check\\RequestURL' => __DIR__.'/..'.'/../lib/Check/RequestURL.php',
35
+        'OCA\\WorkflowEngine\\Check\\RequestUserAgent' => __DIR__.'/..'.'/../lib/Check/RequestUserAgent.php',
36
+        'OCA\\WorkflowEngine\\Check\\TFileCheck' => __DIR__.'/..'.'/../lib/Check/TFileCheck.php',
37
+        'OCA\\WorkflowEngine\\Check\\UserGroupMembership' => __DIR__.'/..'.'/../lib/Check/UserGroupMembership.php',
38
+        'OCA\\WorkflowEngine\\Command\\Index' => __DIR__.'/..'.'/../lib/Command/Index.php',
39
+        'OCA\\WorkflowEngine\\Controller\\AWorkflowController' => __DIR__.'/..'.'/../lib/Controller/AWorkflowController.php',
40
+        'OCA\\WorkflowEngine\\Controller\\GlobalWorkflowsController' => __DIR__.'/..'.'/../lib/Controller/GlobalWorkflowsController.php',
41
+        'OCA\\WorkflowEngine\\Controller\\RequestTime' => __DIR__.'/..'.'/../lib/Controller/RequestTime.php',
42
+        'OCA\\WorkflowEngine\\Controller\\UserWorkflowsController' => __DIR__.'/..'.'/../lib/Controller/UserWorkflowsController.php',
43
+        'OCA\\WorkflowEngine\\Entity\\File' => __DIR__.'/..'.'/../lib/Entity/File.php',
44
+        'OCA\\WorkflowEngine\\Helper\\LogContext' => __DIR__.'/..'.'/../lib/Helper/LogContext.php',
45
+        'OCA\\WorkflowEngine\\Helper\\ScopeContext' => __DIR__.'/..'.'/../lib/Helper/ScopeContext.php',
46
+        'OCA\\WorkflowEngine\\Listener\\LoadAdditionalSettingsScriptsListener' => __DIR__.'/..'.'/../lib/Listener/LoadAdditionalSettingsScriptsListener.php',
47
+        'OCA\\WorkflowEngine\\Manager' => __DIR__.'/..'.'/../lib/Manager.php',
48
+        'OCA\\WorkflowEngine\\Migration\\PopulateNewlyIntroducedDatabaseFields' => __DIR__.'/..'.'/../lib/Migration/PopulateNewlyIntroducedDatabaseFields.php',
49
+        'OCA\\WorkflowEngine\\Migration\\Version2000Date20190808074233' => __DIR__.'/..'.'/../lib/Migration/Version2000Date20190808074233.php',
50
+        'OCA\\WorkflowEngine\\Migration\\Version2200Date20210805101925' => __DIR__.'/..'.'/../lib/Migration/Version2200Date20210805101925.php',
51
+        'OCA\\WorkflowEngine\\Service\\Logger' => __DIR__.'/..'.'/../lib/Service/Logger.php',
52
+        'OCA\\WorkflowEngine\\Service\\RuleMatcher' => __DIR__.'/..'.'/../lib/Service/RuleMatcher.php',
53
+        'OCA\\WorkflowEngine\\Settings\\ASettings' => __DIR__.'/..'.'/../lib/Settings/ASettings.php',
54
+        'OCA\\WorkflowEngine\\Settings\\Admin' => __DIR__.'/..'.'/../lib/Settings/Admin.php',
55
+        'OCA\\WorkflowEngine\\Settings\\Personal' => __DIR__.'/..'.'/../lib/Settings/Personal.php',
56
+        'OCA\\WorkflowEngine\\Settings\\Section' => __DIR__.'/..'.'/../lib/Settings/Section.php',
57 57
     );
58 58
 
59 59
     public static function getInitializer(ClassLoader $loader)
60 60
     {
61
-        return \Closure::bind(function () use ($loader) {
61
+        return \Closure::bind(function() use ($loader) {
62 62
             $loader->prefixLengthsPsr4 = ComposerStaticInitWorkflowEngine::$prefixLengthsPsr4;
63 63
             $loader->prefixDirsPsr4 = ComposerStaticInitWorkflowEngine::$prefixDirsPsr4;
64 64
             $loader->classMap = ComposerStaticInitWorkflowEngine::$classMap;
Please login to merge, or discard this patch.
apps/files_external/lib/Lib/Storage/FtpConnection.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
 	public function nlist(string $path) {
105 105
 		$files = @ftp_nlist($this->connection, $path);
106
-		return array_map(function ($name) {
106
+		return array_map(function($name) {
107 107
 			if (strpos($name, '/') !== false) {
108 108
 				$name = basename($name);
109 109
 			}
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 		$files = @ftp_mlsd($this->connection, $path);
116 116
 
117 117
 		if ($files !== false) {
118
-			return array_map(function ($file) {
118
+			return array_map(function($file) {
119 119
 				if (strpos($file['name'], '/') !== false) {
120 120
 					$file['name'] = basename($file['name']);
121 121
 				}
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 			}, $files);
124 124
 		} else {
125 125
 			// not all servers support mlsd, in those cases we parse the raw list ourselves
126
-			$rawList = @ftp_rawlist($this->connection, '-aln ' . $path);
126
+			$rawList = @ftp_rawlist($this->connection, '-aln '.$path);
127 127
 			if ($rawList === false) {
128 128
 				return false;
129 129
 			}
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 
134 134
 	// rawlist parsing logic is based on the ftp implementation from https://github.com/thephpleague/flysystem
135 135
 	private function parseRawList(array $rawList, string $directory): array {
136
-		return array_map(function ($item) use ($directory) {
136
+		return array_map(function($item) use ($directory) {
137 137
 			return $this->parseRawListItem($item, $directory);
138 138
 		}, $rawList);
139 139
 	}
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 			'name' => $name,
180 180
 			'modify' => $formattedDate,
181 181
 			'perm' => $this->normalizePermissions($permissions),
182
-			'size' => (int)$size,
182
+			'size' => (int) $size,
183 183
 		];
184 184
 	}
185 185
 
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 
195 195
 		$map = $isDir ? $dirPermissionsMap : $filePermissionsMap;
196 196
 
197
-		return array_reduce(str_split($permissions), function ($ftpPermissions, $permission) use ($map) {
197
+		return array_reduce(str_split($permissions), function($ftpPermissions, $permission) use ($map) {
198 198
 			if (isset($map[$permission])) {
199 199
 				$ftpPermissions .= $map[$permission];
200 200
 			}
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
 
214 214
 		// Check for the correct date/time format
215 215
 		$format = strlen($date) === 8 ? 'm-d-yH:iA' : 'Y-m-dH:i';
216
-		$formattedDate = \DateTime::createFromFormat($format, $date . $time)->format('YmdGis');
216
+		$formattedDate = \DateTime::createFromFormat($format, $date.$time)->format('YmdGis');
217 217
 
218 218
 		if ($name === '.') {
219 219
 			$type = 'cdir';
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
 			'name' => $name,
229 229
 			'modify' => $formattedDate,
230 230
 			'perm' => ($type === 'file') ? 'adfrw' : 'flcdmpe',
231
-			'size' => (int)$size,
231
+			'size' => (int) $size,
232 232
 		];
233 233
 	}
234 234
 }
Please login to merge, or discard this patch.
apps/files_external/lib/Migration/Version1015Date20211104103506.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -59,19 +59,19 @@
 block discarded – undo
59 59
 		}
60 60
 
61 61
 		while ($mount = $mounts->fetch()) {
62
-			$config = $this->getStorageConfig((int)$mount['mount_id']);
62
+			$config = $this->getStorageConfig((int) $mount['mount_id']);
63 63
 			$hostname = $config['hostname'];
64 64
 			$bucket = $config['bucket'];
65 65
 			$key = $config['key'];
66
-			$oldId = Storage::adjustStorageId('amazon::' . $bucket);
67
-			$newId = Storage::adjustStorageId('amazon::external::' . md5($hostname . ':' . $bucket . ':' . $key));
66
+			$oldId = Storage::adjustStorageId('amazon::'.$bucket);
67
+			$newId = Storage::adjustStorageId('amazon::external::'.md5($hostname.':'.$bucket.':'.$key));
68 68
 			try {
69 69
 				$qb->setParameter('oldId', $oldId);
70 70
 				$qb->setParameter('newId', $newId);
71 71
 				$qb->execute();
72
-				$this->logger->info('Migrated s3 storage id for mount with id ' . $mount['mount_id'] . ' to ' . $newId);
72
+				$this->logger->info('Migrated s3 storage id for mount with id '.$mount['mount_id'].' to '.$newId);
73 73
 			} catch (Exception $e) {
74
-				$this->logger->error('Failed to migrate external s3 storage id for mount with id ' . $mount['mount_id'], [
74
+				$this->logger->error('Failed to migrate external s3 storage id for mount with id '.$mount['mount_id'], [
75 75
 					'exception' => $e
76 76
 				]);
77 77
 			}
Please login to merge, or discard this patch.
apps/files_external/templates/settings.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -103,9 +103,9 @@  discard block
 block discarded – undo
103 103
 <?php
104 104
 	$canCreateNewLocalStorage = \OC::$server->getConfig()->getSystemValue('files_external_allow_create_new_local', true);
105 105
 ?>
106
-<form data-can-create="<?php echo $canCreateMounts?'true':'false' ?>" data-can-create-local="<?php echo $canCreateNewLocalStorage?'true':'false' ?>" id="files_external" class="section" data-encryption-enabled="<?php echo $_['encryptionEnabled']?'true': 'false'; ?>">
106
+<form data-can-create="<?php echo $canCreateMounts ? 'true' : 'false' ?>" data-can-create-local="<?php echo $canCreateNewLocalStorage ? 'true' : 'false' ?>" id="files_external" class="section" data-encryption-enabled="<?php echo $_['encryptionEnabled'] ? 'true' : 'false'; ?>">
107 107
 	<h2 class="inlineblock" data-anchor-name="external-storage"><?php p($l->t('External storage')); ?></h2>
108
-	<a target="_blank" rel="noreferrer" class="icon-info" title="<?php p($l->t('Open documentation'));?>" href="<?php p(link_to_docs('admin-external-storage')); ?>"></a>
108
+	<a target="_blank" rel="noreferrer" class="icon-info" title="<?php p($l->t('Open documentation')); ?>" href="<?php p(link_to_docs('admin-external-storage')); ?>"></a>
109 109
 	<p class="settings-hint"><?php p($l->t('External storage enables you to mount external storage services and devices as secondary Nextcloud storage devices. You may also allow users to mount their own external storage services.')); ?></p>
110 110
 	<?php if (isset($_['dependencies']) and ($_['dependencies'] !== '') and $canCreateMounts) {
111 111
 	print_unescaped(''.$_['dependencies'].'');
@@ -150,10 +150,10 @@  discard block
 block discarded – undo
150 150
 							<?php p($l->t('Add storage')); ?>
151 151
 						</option>
152 152
 						<?php
153
-							$sortedBackends = array_filter($_['backends'], function ($backend) use ($_) {
153
+							$sortedBackends = array_filter($_['backends'], function($backend) use ($_) {
154 154
 								return $backend->isVisibleFor($_['visibilityType']);
155 155
 							});
156
-							uasort($sortedBackends, function ($a, $b) {
156
+							uasort($sortedBackends, function($a, $b) {
157 157
 								return strcasecmp($a->getText(), $b->getText());
158 158
 							});
159 159
 						?>
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 
193 193
 		<p id="userMountingBackends"<?php if (!$_['allowUserMounting']): ?> class="hidden"<?php endif; ?>>
194 194
 			<?php
195
-				$userBackends = array_filter($_['backends'], function ($backend) {
195
+				$userBackends = array_filter($_['backends'], function($backend) {
196 196
 					return $backend->isAllowedVisibleFor(BackendService::VISIBILITY_PERSONAL);
197 197
 				});
198 198
 			?>
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Trash/TrashManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,10 +43,10 @@  discard block
 block discarded – undo
43 43
 	}
44 44
 
45 45
 	public function listTrashRoot(IUser $user): array {
46
-		$items = array_reduce($this->getBackends(), function (array $items, ITrashBackend $backend) use ($user) {
46
+		$items = array_reduce($this->getBackends(), function(array $items, ITrashBackend $backend) use ($user) {
47 47
 			return array_merge($items, $backend->listTrashRoot($user));
48 48
 		}, []);
49
-		usort($items, function (ITrashItem $a, ITrashItem $b) {
49
+		usort($items, function(ITrashItem $a, ITrashItem $b) {
50 50
 			return $b->getDeletedTime() - $a->getDeletedTime();
51 51
 		});
52 52
 		return $items;
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 	 */
76 76
 	public function getBackendForStorage(IStorage $storage): ITrashBackend {
77 77
 		$fullType = get_class($storage);
78
-		$foundType = array_reduce(array_keys($this->backends), function ($type, $registeredType) use ($storage) {
78
+		$foundType = array_reduce(array_keys($this->backends), function($type, $registeredType) use ($storage) {
79 79
 			if (
80 80
 				$storage->instanceOfStorage($registeredType) &&
81 81
 				($type === '' || is_subclass_of($registeredType, $type))
Please login to merge, or discard this patch.
apps/provisioning_api/lib/Controller/VerificationController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 			$ref = \substr(hash('sha256', $email), 0, 8);
106 106
 
107 107
 			$user = $this->userManager->get($userId);
108
-			$this->verificationToken->check($token, $user, 'verifyMail' . $ref, $email);
108
+			$this->verificationToken->check($token, $user, 'verifyMail'.$ref, $email);
109 109
 
110 110
 			$userAccount = $this->accountManager->getAccount($user);
111 111
 			$emailProperty = $userAccount->getPropertyCollection(IAccountManager::COLLECTION_EMAIL)
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 			}
117 117
 			$emailProperty->setLocallyVerified(IAccountManager::VERIFIED);
118 118
 			$this->accountManager->updateAccount($userAccount);
119
-			$this->verificationToken->delete($token, $user, 'verifyMail' . $ref);
119
+			$this->verificationToken->delete($token, $user, 'verifyMail'.$ref);
120 120
 		} catch (InvalidTokenException $e) {
121 121
 			$error = $e->getCode() === InvalidTokenException::TOKEN_EXPIRED
122 122
 				? $this->l10n->t('Could not verify mail because the token is expired.')
Please login to merge, or discard this patch.
apps/user_status/lib/Controller/UserStatusController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 			$this->service->removeBackupUserStatus($this->userId);
104 104
 			return new DataResponse($this->formatStatus($status));
105 105
 		} catch (InvalidStatusTypeException $ex) {
106
-			$this->logger->debug('New user-status for "' . $this->userId . '" was rejected due to an invalid status type "' . $statusType . '"');
106
+			$this->logger->debug('New user-status for "'.$this->userId.'" was rejected due to an invalid status type "'.$statusType.'"');
107 107
 			throw new OCSBadRequestException($ex->getMessage(), $ex);
108 108
 		}
109 109
 	}
@@ -123,10 +123,10 @@  discard block
 block discarded – undo
123 123
 			$this->service->removeBackupUserStatus($this->userId);
124 124
 			return new DataResponse($this->formatStatus($status));
125 125
 		} catch (InvalidClearAtException $ex) {
126
-			$this->logger->debug('New user-status for "' . $this->userId . '" was rejected due to an invalid clearAt value "' . $clearAt . '"');
126
+			$this->logger->debug('New user-status for "'.$this->userId.'" was rejected due to an invalid clearAt value "'.$clearAt.'"');
127 127
 			throw new OCSBadRequestException($ex->getMessage(), $ex);
128 128
 		} catch (InvalidMessageIdException $ex) {
129
-			$this->logger->debug('New user-status for "' . $this->userId . '" was rejected due to an invalid message-id "' . $messageId . '"');
129
+			$this->logger->debug('New user-status for "'.$this->userId.'" was rejected due to an invalid message-id "'.$messageId.'"');
130 130
 			throw new OCSBadRequestException($ex->getMessage(), $ex);
131 131
 		}
132 132
 	}
@@ -153,13 +153,13 @@  discard block
 block discarded – undo
153 153
 			$this->service->removeBackupUserStatus($this->userId);
154 154
 			return new DataResponse($this->formatStatus($status));
155 155
 		} catch (InvalidClearAtException $ex) {
156
-			$this->logger->debug('New user-status for "' . $this->userId . '" was rejected due to an invalid clearAt value "' . $clearAt . '"');
156
+			$this->logger->debug('New user-status for "'.$this->userId.'" was rejected due to an invalid clearAt value "'.$clearAt.'"');
157 157
 			throw new OCSBadRequestException($ex->getMessage(), $ex);
158 158
 		} catch (InvalidStatusIconException $ex) {
159
-			$this->logger->debug('New user-status for "' . $this->userId . '" was rejected due to an invalid icon value "' . $statusIcon . '"');
159
+			$this->logger->debug('New user-status for "'.$this->userId.'" was rejected due to an invalid icon value "'.$statusIcon.'"');
160 160
 			throw new OCSBadRequestException($ex->getMessage(), $ex);
161 161
 		} catch (StatusMessageTooLongException $ex) {
162
-			$this->logger->debug('New user-status for "' . $this->userId . '" was rejected due to a too long status message.');
162
+			$this->logger->debug('New user-status for "'.$this->userId.'" was rejected due to a too long status message.');
163 163
 			throw new OCSBadRequestException($ex->getMessage(), $ex);
164 164
 		}
165 165
 	}
Please login to merge, or discard this patch.
apps/user_status/lib/Controller/PredefinedStatusController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 	 */
62 62
 	public function findAll():DataResponse {
63 63
 		// Filtering out the invisible one, that should only be set by API
64
-		return new DataResponse(array_filter($this->predefinedStatusService->getDefaultStatuses(), function (array $status) {
64
+		return new DataResponse(array_filter($this->predefinedStatusService->getDefaultStatuses(), function(array $status) {
65 65
 			return !array_key_exists('visible', $status) || $status['visible'] === true;
66 66
 		}));
67 67
 	}
Please login to merge, or discard this patch.