Completed
Push — master ( 478b01...80afc2 )
by
unknown
23:07
created
apps/testing/lib/Controller/LockingController.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 	 */
95 95
 	protected function getPath(string $user, string $path): string {
96 96
 		$node = $this->rootFolder->getUserFolder($user)->get($path);
97
-		return 'files/' . md5($node->getStorage()->getId() . '::' . trim($node->getInternalPath(), '/'));
97
+		return 'files/'.md5($node->getStorage()->getId().'::'.trim($node->getInternalPath(), '/'));
98 98
 	}
99 99
 
100 100
 	/**
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
 		try {
127 127
 			$lockingProvider->acquireLock($path, $type);
128
-			$this->config->setAppValue('testing', 'locking_' . $path, (string)$type);
128
+			$this->config->setAppValue('testing', 'locking_'.$path, (string) $type);
129 129
 			return new DataResponse();
130 130
 		} catch (LockedException $e) {
131 131
 			throw new OCSException('', Http::STATUS_LOCKED, $e);
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 
149 149
 		try {
150 150
 			$lockingProvider->changeLock($path, $type);
151
-			$this->config->setAppValue('testing', 'locking_' . $path, (string)$type);
151
+			$this->config->setAppValue('testing', 'locking_'.$path, (string) $type);
152 152
 			return new DataResponse();
153 153
 		} catch (LockedException $e) {
154 154
 			throw new OCSException('', Http::STATUS_LOCKED, $e);
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 
172 172
 		try {
173 173
 			$lockingProvider->releaseLock($path, $type);
174
-			$this->config->deleteAppValue('testing', 'locking_' . $path);
174
+			$this->config->deleteAppValue('testing', 'locking_'.$path);
175 175
 			return new DataResponse();
176 176
 		} catch (LockedException $e) {
177 177
 			throw new OCSException('', Http::STATUS_LOCKED, $e);
@@ -206,12 +206,12 @@  discard block
 block discarded – undo
206 206
 			if (strpos($lock, 'locking_') === 0) {
207 207
 				$path = substr($lock, strlen('locking_'));
208 208
 
209
-				if ($type === ILockingProvider::LOCK_EXCLUSIVE && (int)$this->config->getAppValue('testing', $lock) === ILockingProvider::LOCK_EXCLUSIVE) {
210
-					$lockingProvider->releaseLock($path, (int)$this->config->getAppValue('testing', $lock));
211
-				} elseif ($type === ILockingProvider::LOCK_SHARED && (int)$this->config->getAppValue('testing', $lock) === ILockingProvider::LOCK_SHARED) {
212
-					$lockingProvider->releaseLock($path, (int)$this->config->getAppValue('testing', $lock));
209
+				if ($type === ILockingProvider::LOCK_EXCLUSIVE && (int) $this->config->getAppValue('testing', $lock) === ILockingProvider::LOCK_EXCLUSIVE) {
210
+					$lockingProvider->releaseLock($path, (int) $this->config->getAppValue('testing', $lock));
211
+				} elseif ($type === ILockingProvider::LOCK_SHARED && (int) $this->config->getAppValue('testing', $lock) === ILockingProvider::LOCK_SHARED) {
212
+					$lockingProvider->releaseLock($path, (int) $this->config->getAppValue('testing', $lock));
213 213
 				} else {
214
-					$lockingProvider->releaseLock($path, (int)$this->config->getAppValue('testing', $lock));
214
+					$lockingProvider->releaseLock($path, (int) $this->config->getAppValue('testing', $lock));
215 215
 				}
216 216
 			}
217 217
 		}
Please login to merge, or discard this patch.
apps/user_ldap/lib/Migration/Version1130Date20211102154716.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@
 block discarded – undo
214 214
 
215 215
 		while ($nextcloudId = array_shift($idList)) {
216 216
 			$update->setParameter('nextcloudId', $nextcloudId);
217
-			$update->setParameter('invalidatedUuid', 'invalidated_' . \bin2hex(\random_bytes(6)));
217
+			$update->setParameter('invalidatedUuid', 'invalidated_'.\bin2hex(\random_bytes(6)));
218 218
 			try {
219 219
 				$update->executeStatement();
220 220
 				$this->logger->warning(
Please login to merge, or discard this patch.
lib/private/Files/Config/CachedMountFileInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,6 +53,6 @@
 block discarded – undo
53 53
 	}
54 54
 
55 55
 	public function getPath(): string {
56
-		return $this->getMountPoint() . $this->getInternalPath();
56
+		return $this->getMountPoint().$this->getInternalPath();
57 57
 	}
58 58
 }
Please login to merge, or discard this patch.
lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 			foreach ($directoryRange as $child) {
68 68
 				$mountPoints[] = new MountPoint(
69 69
 					AppdataPreviewObjectStoreStorage::class,
70
-					'/appdata_' . $instanceId . '/preview/' . $parent . '/' . $child,
70
+					'/appdata_'.$instanceId.'/preview/'.$parent.'/'.$child,
71 71
 					$this->getMultiBucketObjectStore($i),
72 72
 					$loader,
73 73
 					null,
@@ -82,13 +82,13 @@  discard block
 block discarded – undo
82 82
 		$fakeRootStorage = new ObjectStoreStorage($rootStorageArguments);
83 83
 		$fakeRootStorageJail = new Jail([
84 84
 			'storage' => $fakeRootStorage,
85
-			'root' => '/appdata_' . $instanceId . '/preview',
85
+			'root' => '/appdata_'.$instanceId.'/preview',
86 86
 		]);
87 87
 
88 88
 		// add a fallback location to be able to fetch existing previews from the old bucket
89 89
 		$mountPoints[] = new MountPoint(
90 90
 			$fakeRootStorageJail,
91
-			'/appdata_' . $instanceId . '/preview/old-multibucket',
91
+			'/appdata_'.$instanceId.'/preview/old-multibucket',
92 92
 			null,
93 93
 			$loader,
94 94
 			null,
Please login to merge, or discard this patch.
lib/private/Group/MetaData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
 	 * @param string $userSearch the pattern users are search for
79 79
 	 */
80 80
 	public function get(string $groupSearch = '', string $userSearch = ''): array {
81
-		$key = $groupSearch . '::' . $userSearch;
81
+		$key = $groupSearch.'::'.$userSearch;
82 82
 		if (isset($this->metaData[$key])) {
83 83
 			return $this->metaData[$key];
84 84
 		}
Please login to merge, or discard this patch.
apps/admin_audit/lib/AuditLogger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 		$logFile = $config->getSystemValueString('logfile_audit', '');
43 43
 
44 44
 		if ($auditType === 'file' && !$logFile) {
45
-			$default = $config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data') . '/audit.log';
45
+			$default = $config->getSystemValue('datadirectory', \OC::$SERVERROOT.'/data').'/audit.log';
46 46
 			// Legacy way was appconfig, now it's paralleled with the normal log config
47 47
 			$logFile = $config->getAppValue('admin_audit', 'logfile', $default);
48 48
 		}
Please login to merge, or discard this patch.
apps/user_status/lib/Listener/BeforeTemplateRenderedListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,11 +89,11 @@
 block discarded – undo
89 89
 			return;
90 90
 		}
91 91
 
92
-		$this->initialState->provideLazyInitialState(Application::APP_ID, 'status', function () {
92
+		$this->initialState->provideLazyInitialState(Application::APP_ID, 'status', function() {
93 93
 			return $this->jsDataService;
94 94
 		});
95 95
 
96
-		$this->initialState->provideLazyInitialState(Application::APP_ID, 'profileEnabled', function () use ($user) {
96
+		$this->initialState->provideLazyInitialState(Application::APP_ID, 'profileEnabled', function() use ($user) {
97 97
 			return ['profileEnabled' => $this->profileManager->isProfileEnabled($user)];
98 98
 		});
99 99
 
Please login to merge, or discard this patch.
apps/settings/lib/Controller/AuthSettingsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 		}
147 147
 
148 148
 		if (mb_strlen($name) > 128) {
149
-			$name = mb_substr($name, 0, 120) . '…';
149
+			$name = mb_substr($name, 0, 120).'…';
150 150
 		}
151 151
 
152 152
 		$token = $this->generateRandomDeviceToken();
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 		}
247 247
 
248 248
 		if (mb_strlen($name) > 128) {
249
-			$name = mb_substr($name, 0, 120) . '…';
249
+			$name = mb_substr($name, 0, 120).'…';
250 250
 		}
251 251
 
252 252
 		if ($token instanceof INamedToken && $name !== $currentName) {
Please login to merge, or discard this patch.
lib/private/DB/QueryBuilder/FunctionBuilder/FunctionBuilder.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	}
48 48
 
49 49
 	public function md5($input): IQueryFunction {
50
-		return new QueryFunction('MD5(' . $this->helper->quoteColumnName($input) . ')');
50
+		return new QueryFunction('MD5('.$this->helper->quoteColumnName($input).')');
51 51
 	}
52 52
 
53 53
 	public function concat($x, ...$expr): IQueryFunction {
@@ -61,64 +61,64 @@  discard block
 block discarded – undo
61 61
 
62 62
 	public function groupConcat($expr, ?string $separator = ','): IQueryFunction {
63 63
 		$separator = $this->connection->quote($separator);
64
-		return new QueryFunction('GROUP_CONCAT(' . $this->helper->quoteColumnName($expr) . ' SEPARATOR ' . $separator . ')');
64
+		return new QueryFunction('GROUP_CONCAT('.$this->helper->quoteColumnName($expr).' SEPARATOR '.$separator.')');
65 65
 	}
66 66
 
67 67
 	public function substring($input, $start, $length = null): IQueryFunction {
68 68
 		if ($length) {
69
-			return new QueryFunction('SUBSTR(' . $this->helper->quoteColumnName($input) . ', ' . $this->helper->quoteColumnName($start) . ', ' . $this->helper->quoteColumnName($length) . ')');
69
+			return new QueryFunction('SUBSTR('.$this->helper->quoteColumnName($input).', '.$this->helper->quoteColumnName($start).', '.$this->helper->quoteColumnName($length).')');
70 70
 		} else {
71
-			return new QueryFunction('SUBSTR(' . $this->helper->quoteColumnName($input) . ', ' . $this->helper->quoteColumnName($start) . ')');
71
+			return new QueryFunction('SUBSTR('.$this->helper->quoteColumnName($input).', '.$this->helper->quoteColumnName($start).')');
72 72
 		}
73 73
 	}
74 74
 
75 75
 	public function sum($field): IQueryFunction {
76
-		return new QueryFunction('SUM(' . $this->helper->quoteColumnName($field) . ')');
76
+		return new QueryFunction('SUM('.$this->helper->quoteColumnName($field).')');
77 77
 	}
78 78
 
79 79
 	public function lower($field): IQueryFunction {
80
-		return new QueryFunction('LOWER(' . $this->helper->quoteColumnName($field) . ')');
80
+		return new QueryFunction('LOWER('.$this->helper->quoteColumnName($field).')');
81 81
 	}
82 82
 
83 83
 	public function add($x, $y): IQueryFunction {
84
-		return new QueryFunction($this->helper->quoteColumnName($x) . ' + ' . $this->helper->quoteColumnName($y));
84
+		return new QueryFunction($this->helper->quoteColumnName($x).' + '.$this->helper->quoteColumnName($y));
85 85
 	}
86 86
 
87 87
 	public function subtract($x, $y): IQueryFunction {
88
-		return new QueryFunction($this->helper->quoteColumnName($x) . ' - ' . $this->helper->quoteColumnName($y));
88
+		return new QueryFunction($this->helper->quoteColumnName($x).' - '.$this->helper->quoteColumnName($y));
89 89
 	}
90 90
 
91 91
 	public function count($count = '', $alias = ''): IQueryFunction {
92
-		$alias = $alias ? (' AS ' . $this->helper->quoteColumnName($alias)) : '';
92
+		$alias = $alias ? (' AS '.$this->helper->quoteColumnName($alias)) : '';
93 93
 		$quotedName = $count === '' ? '*' : $this->helper->quoteColumnName($count);
94
-		return new QueryFunction('COUNT(' . $quotedName . ')' . $alias);
94
+		return new QueryFunction('COUNT('.$quotedName.')'.$alias);
95 95
 	}
96 96
 
97 97
 	public function octetLength($field, $alias = ''): IQueryFunction {
98
-		$alias = $alias ? (' AS ' . $this->helper->quoteColumnName($alias)) : '';
98
+		$alias = $alias ? (' AS '.$this->helper->quoteColumnName($alias)) : '';
99 99
 		$quotedName = $this->helper->quoteColumnName($field);
100
-		return new QueryFunction('OCTET_LENGTH(' . $quotedName . ')' . $alias);
100
+		return new QueryFunction('OCTET_LENGTH('.$quotedName.')'.$alias);
101 101
 	}
102 102
 
103 103
 	public function charLength($field, $alias = ''): IQueryFunction {
104
-		$alias = $alias ? (' AS ' . $this->helper->quoteColumnName($alias)) : '';
104
+		$alias = $alias ? (' AS '.$this->helper->quoteColumnName($alias)) : '';
105 105
 		$quotedName = $this->helper->quoteColumnName($field);
106
-		return new QueryFunction('CHAR_LENGTH(' . $quotedName . ')' . $alias);
106
+		return new QueryFunction('CHAR_LENGTH('.$quotedName.')'.$alias);
107 107
 	}
108 108
 
109 109
 	public function max($field): IQueryFunction {
110
-		return new QueryFunction('MAX(' . $this->helper->quoteColumnName($field) . ')');
110
+		return new QueryFunction('MAX('.$this->helper->quoteColumnName($field).')');
111 111
 	}
112 112
 
113 113
 	public function min($field): IQueryFunction {
114
-		return new QueryFunction('MIN(' . $this->helper->quoteColumnName($field) . ')');
114
+		return new QueryFunction('MIN('.$this->helper->quoteColumnName($field).')');
115 115
 	}
116 116
 
117 117
 	public function greatest($x, $y): IQueryFunction {
118
-		return new QueryFunction('GREATEST(' . $this->helper->quoteColumnName($x) . ', ' . $this->helper->quoteColumnName($y) . ')');
118
+		return new QueryFunction('GREATEST('.$this->helper->quoteColumnName($x).', '.$this->helper->quoteColumnName($y).')');
119 119
 	}
120 120
 
121 121
 	public function least($x, $y): IQueryFunction {
122
-		return new QueryFunction('LEAST(' . $this->helper->quoteColumnName($x) . ', ' . $this->helper->quoteColumnName($y) . ')');
122
+		return new QueryFunction('LEAST('.$this->helper->quoteColumnName($x).', '.$this->helper->quoteColumnName($y).')');
123 123
 	}
124 124
 }
Please login to merge, or discard this patch.