Passed
Push — master ( a1ed1d...263a69 )
by John
16:05 queued 13s
created
core/Command/Encryption/ChangeKeyStorageRoot.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 		}
143 143
 
144 144
 		$result = $this->rootView->file_put_contents(
145
-			$newRoot . '/' . Storage::KEY_STORAGE_MARKER,
145
+			$newRoot.'/'.Storage::KEY_STORAGE_MARKER,
146 146
 			'Nextcloud will detect this folder as key storage root only if this file exists'
147 147
 		);
148 148
 
@@ -160,10 +160,10 @@  discard block
 block discarded – undo
160 160
 	 */
161 161
 	protected function moveSystemKeys($oldRoot, $newRoot) {
162 162
 		if (
163
-			$this->rootView->is_dir($oldRoot . '/files_encryption') &&
164
-			$this->targetExists($newRoot . '/files_encryption') === false
163
+			$this->rootView->is_dir($oldRoot.'/files_encryption') &&
164
+			$this->targetExists($newRoot.'/files_encryption') === false
165 165
 		) {
166
-			$this->rootView->rename($oldRoot . '/files_encryption', $newRoot . '/files_encryption');
166
+			$this->rootView->rename($oldRoot.'/files_encryption', $newRoot.'/files_encryption');
167 167
 		}
168 168
 	}
169 169
 
@@ -217,13 +217,13 @@  discard block
 block discarded – undo
217 217
 	 */
218 218
 	protected function moveUserEncryptionFolder($user, $oldRoot, $newRoot) {
219 219
 		if ($this->userManager->userExists($user)) {
220
-			$source = $oldRoot . '/' . $user . '/files_encryption';
221
-			$target = $newRoot . '/' . $user . '/files_encryption';
220
+			$source = $oldRoot.'/'.$user.'/files_encryption';
221
+			$target = $newRoot.'/'.$user.'/files_encryption';
222 222
 			if (
223 223
 				$this->rootView->is_dir($source) &&
224 224
 				$this->targetExists($target) === false
225 225
 			) {
226
-				$this->prepareParentFolder($newRoot . '/' . $user);
226
+				$this->prepareParentFolder($newRoot.'/'.$user);
227 227
 				$this->rootView->rename($source, $target);
228 228
 			}
229 229
 		}
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 			$sub_dirs = explode('/', ltrim($path, '/'));
242 242
 			$dir = '';
243 243
 			foreach ($sub_dirs as $sub_dir) {
244
-				$dir .= '/' . $sub_dir;
244
+				$dir .= '/'.$sub_dir;
245 245
 				if ($this->rootView->file_exists($dir) === false) {
246 246
 					$this->rootView->mkdir($dir);
247 247
 				}
Please login to merge, or discard this patch.
core/Command/TwoFactorAuth/State.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,9 +99,9 @@
 block discarded – undo
99 99
 			return;
100 100
 		}
101 101
 
102
-		$output->writeln($title . ":");
102
+		$output->writeln($title.":");
103 103
 		foreach ($providers as $provider) {
104
-			$output->writeln("- " . $provider);
104
+			$output->writeln("- ".$provider);
105 105
 		}
106 106
 	}
107 107
 }
Please login to merge, or discard this patch.
core/Command/Config/System/DeleteConfig.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
 		if (count($configNames) > 1) {
69 69
 			if ($input->hasParameterOption('--error-if-not-exists') && !in_array($configName, $this->systemConfig->getKeys())) {
70
-				$output->writeln('<error>System config ' . implode(' => ', $configNames) . ' could not be deleted because it did not exist</error>');
70
+				$output->writeln('<error>System config '.implode(' => ', $configNames).' could not be deleted because it did not exist</error>');
71 71
 				return 1;
72 72
 			}
73 73
 
@@ -76,21 +76,21 @@  discard block
 block discarded – undo
76 76
 			try {
77 77
 				$value = $this->removeSubValue(array_slice($configNames, 1), $value, $input->hasParameterOption('--error-if-not-exists'));
78 78
 			} catch (\UnexpectedValueException $e) {
79
-				$output->writeln('<error>System config ' . implode(' => ', $configNames) . ' could not be deleted because it did not exist</error>');
79
+				$output->writeln('<error>System config '.implode(' => ', $configNames).' could not be deleted because it did not exist</error>');
80 80
 				return 1;
81 81
 			}
82 82
 
83 83
 			$this->systemConfig->setValue($configName, $value);
84
-			$output->writeln('<info>System config value ' . implode(' => ', $configNames) . ' deleted</info>');
84
+			$output->writeln('<info>System config value '.implode(' => ', $configNames).' deleted</info>');
85 85
 			return 0;
86 86
 		} else {
87 87
 			if ($input->hasParameterOption('--error-if-not-exists') && !in_array($configName, $this->systemConfig->getKeys())) {
88
-				$output->writeln('<error>System config ' . $configName . ' could not be deleted because it did not exist</error>');
88
+				$output->writeln('<error>System config '.$configName.' could not be deleted because it did not exist</error>');
89 89
 				return 1;
90 90
 			}
91 91
 
92 92
 			$this->systemConfig->deleteValue($configName);
93
-			$output->writeln('<info>System config value ' . $configName . ' deleted</info>');
93
+			$output->writeln('<info>System config value '.$configName.' deleted</info>');
94 94
 			return 0;
95 95
 		}
96 96
 	}
Please login to merge, or discard this patch.
core/Controller/CssController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 		if (strpos($encoding, 'gzip') !== false) {
109 109
 			try {
110 110
 				$gzip = true;
111
-				return $folder->getFile($fileName . '.gzip'); # Safari doesn't like .gz
111
+				return $folder->getFile($fileName.'.gzip'); # Safari doesn't like .gz
112 112
 			} catch (NotFoundException $e) {
113 113
 				// continue
114 114
 			}
Please login to merge, or discard this patch.
core/Controller/ClientFlowLoginV2Controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -295,6 +295,6 @@
 block discarded – undo
295 295
 		}
296 296
 
297 297
 		$protocol = $this->request->getServerProtocol();
298
-		return $protocol . '://' . $this->request->getServerHost() . $serverPostfix;
298
+		return $protocol.'://'.$this->request->getServerHost().$serverPostfix;
299 299
 	}
300 300
 }
Please login to merge, or discard this patch.
core/templates/403.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 	require_once '../../lib/base.php';
8 8
 
9 9
 	$urlGenerator = \OC::$server->getURLGenerator();
10
-	header('Location: ' . $urlGenerator->getAbsoluteURL('/'));
10
+	header('Location: '.$urlGenerator->getAbsoluteURL('/'));
11 11
 	exit;
12 12
 }
13 13
 // @codeCoverageIgnoreEnd
Please login to merge, or discard this patch.
core/Controller/JsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 		if (strpos($encoding, 'gzip') !== false) {
109 109
 			try {
110 110
 				$gzip = true;
111
-				return $folder->getFile($fileName . '.gzip'); # Safari doesn't like .gz
111
+				return $folder->getFile($fileName.'.gzip'); # Safari doesn't like .gz
112 112
 			} catch (NotFoundException $e) {
113 113
 				// continue
114 114
 			}
Please login to merge, or discard this patch.
apps/dav/lib/DAV/Sharing/Plugin.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -101,11 +101,11 @@  discard block
 block discarded – undo
101 101
 	 */
102 102
 	public function initialize(Server $server) {
103 103
 		$this->server = $server;
104
-		$this->server->xml->elementMap['{' . Plugin::NS_OWNCLOUD . '}share'] = ShareRequest::class;
105
-		$this->server->xml->elementMap['{' . Plugin::NS_OWNCLOUD . '}invite'] = Invite::class;
104
+		$this->server->xml->elementMap['{'.Plugin::NS_OWNCLOUD.'}share'] = ShareRequest::class;
105
+		$this->server->xml->elementMap['{'.Plugin::NS_OWNCLOUD.'}invite'] = Invite::class;
106 106
 
107 107
 		$this->server->on('method:POST', [$this, 'httpPost']);
108
-		$this->server->on('propFind',    [$this, 'propFind']);
108
+		$this->server->on('propFind', [$this, 'propFind']);
109 109
 	}
110 110
 
111 111
 	/**
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 
149 149
 			// Dealing with the 'share' document, which modified invitees on a
150 150
 			// calendar.
151
-			case '{' . self::NS_OWNCLOUD . '}share':
151
+			case '{'.self::NS_OWNCLOUD.'}share':
152 152
 
153 153
 				// We can only deal with IShareableCalendar objects
154 154
 				if (!$node instanceof IShareable) {
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
 	 */
191 191
 	public function propFind(PropFind $propFind, INode $node) {
192 192
 		if ($node instanceof IShareable) {
193
-			$propFind->handle('{' . Plugin::NS_OWNCLOUD . '}invite', function () use ($node) {
193
+			$propFind->handle('{'.Plugin::NS_OWNCLOUD.'}invite', function() use ($node) {
194 194
 				return new Invite(
195 195
 					$node->getShares()
196 196
 				);
Please login to merge, or discard this patch.
apps/dav/lib/Connector/Sabre/ShareeList.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,10 +52,10 @@
 block discarded – undo
52 52
 	 */
53 53
 	public function xmlSerialize(Writer $writer) {
54 54
 		foreach ($this->shares as $share) {
55
-			$writer->startElement('{' . self::NS_NEXTCLOUD . '}sharee');
56
-			$writer->writeElement('{' . self::NS_NEXTCLOUD . '}id', $share->getSharedWith());
57
-			$writer->writeElement('{' . self::NS_NEXTCLOUD . '}display-name', $share->getSharedWithDisplayName());
58
-			$writer->writeElement('{' . self::NS_NEXTCLOUD . '}type', $share->getShareType());
55
+			$writer->startElement('{'.self::NS_NEXTCLOUD.'}sharee');
56
+			$writer->writeElement('{'.self::NS_NEXTCLOUD.'}id', $share->getSharedWith());
57
+			$writer->writeElement('{'.self::NS_NEXTCLOUD.'}display-name', $share->getSharedWithDisplayName());
58
+			$writer->writeElement('{'.self::NS_NEXTCLOUD.'}type', $share->getShareType());
59 59
 			$writer->endElement();
60 60
 		}
61 61
 	}
Please login to merge, or discard this patch.