Passed
Push — master ( 814bf0...daee22 )
by Morris
13:03
created
apps/dav/lib/Connector/Sabre/FilesPlugin.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 		$this->server->on('propPatch', array($this, 'handleUpdateProperties'));
174 174
 		$this->server->on('afterBind', array($this, 'sendFileIdHeader'));
175 175
 		$this->server->on('afterWriteContent', array($this, 'sendFileIdHeader'));
176
-		$this->server->on('afterMethod:GET', [$this,'httpGet']);
176
+		$this->server->on('afterMethod:GET', [$this, 'httpGet']);
177 177
 		$this->server->on('afterMethod:GET', array($this, 'handleDownloadToken'));
178 178
 		$this->server->on('afterResponse', function($request, ResponseInterface $response) {
179 179
 			$body = $response->getBody();
@@ -203,11 +203,11 @@  discard block
 block discarded – undo
203 203
 		if ($sourceDir !== $destinationDir) {
204 204
 			$sourceNodeFileInfo = $sourceNode->getFileInfo();
205 205
 			if ($sourceNodeFileInfo === null) {
206
-				throw new NotFound($source . ' does not exist');
206
+				throw new NotFound($source.' does not exist');
207 207
  			}
208 208
 
209 209
 			if (!$sourceNodeFileInfo->isDeletable()) {
210
-				throw new Forbidden($source . " cannot be deleted");
210
+				throw new Forbidden($source." cannot be deleted");
211 211
 			}
212 212
 		}
213 213
 	}
@@ -260,10 +260,10 @@  discard block
 block discarded – undo
260 260
 					Request::USER_AGENT_ANDROID_MOBILE_CHROME,
261 261
 					Request::USER_AGENT_FREEBOX,
262 262
 				])) {
263
-				$response->addHeader('Content-Disposition', 'attachment; filename="' . rawurlencode($filename) . '"');
263
+				$response->addHeader('Content-Disposition', 'attachment; filename="'.rawurlencode($filename).'"');
264 264
 			} else {
265
-				$response->addHeader('Content-Disposition', 'attachment; filename*=UTF-8\'\'' . rawurlencode($filename)
266
-													 . '; filename="' . rawurlencode($filename) . '"');
265
+				$response->addHeader('Content-Disposition', 'attachment; filename*=UTF-8\'\''.rawurlencode($filename)
266
+													 . '; filename="'.rawurlencode($filename).'"');
267 267
 			}
268 268
 		}
269 269
 
@@ -352,13 +352,13 @@  discard block
 block discarded – undo
352 352
 				}
353 353
 			});
354 354
 
355
-			$propFind->handle(self::HAS_PREVIEW_PROPERTYNAME, function () use ($node) {
355
+			$propFind->handle(self::HAS_PREVIEW_PROPERTYNAME, function() use ($node) {
356 356
 				return json_encode($this->previewManager->isAvailable($node->getFileInfo()));
357 357
 			});
358 358
 			$propFind->handle(self::SIZE_PROPERTYNAME, function() use ($node) {
359 359
 				return $node->getSize();
360 360
 			});
361
-			$propFind->handle(self::MOUNT_TYPE_PROPERTYNAME, function () use ($node) {
361
+			$propFind->handle(self::MOUNT_TYPE_PROPERTYNAME, function() use ($node) {
362 362
 				return $node->getFileInfo()->getMountPoint()->getMountType();
363 363
 			});
364 364
 
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
 			list($path, $name) = \Sabre\Uri\split($filePath);
484 484
 			$info = \OC_FileChunking::decodeName($name);
485 485
 			if (!empty($info)) {
486
-				$filePath = $path . '/' . $info['name'];
486
+				$filePath = $path.'/'.$info['name'];
487 487
 			}
488 488
 		}
489 489
 
Please login to merge, or discard this patch.
apps/dav/lib/Connector/Sabre/Node.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 		// verify path of the target
137 137
 		$this->verifyPath();
138 138
 
139
-		$newPath = $parentPath . '/' . $newName;
139
+		$newPath = $parentPath.'/'.$newName;
140 140
 
141 141
 		$this->fileView->rename($this->path, $newPath);
142 142
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 	public function getLastModified() {
158 158
 		$timestamp = $this->info->getMtime();
159 159
 		if (!empty($timestamp)) {
160
-			return (int)$timestamp;
160
+			return (int) $timestamp;
161 161
 		}
162 162
 		return $timestamp;
163 163
 	}
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 	 * @return string
186 186
 	 */
187 187
 	public function getETag() {
188
-		return '"' . $this->info->getEtag() . '"';
188
+		return '"'.$this->info->getEtag().'"';
189 189
 	}
190 190
 
191 191
 	/**
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
 		if ($this->info->getId()) {
225 225
 			$instanceId = \OC_Util::getInstanceId();
226 226
 			$id = sprintf('%08d', $this->info->getId());
227
-			return $id . $instanceId;
227
+			return $id.$instanceId;
228 228
 		}
229 229
 
230 230
 		return null;
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 
262 262
 		if ($storage && $storage->instanceOfStorage('\OCA\Files_Sharing\SharedStorage')) {
263 263
 			/** @var \OCA\Files_Sharing\SharedStorage $storage */
264
-			$permissions = (int)$storage->getShare()->getPermissions();
264
+			$permissions = (int) $storage->getShare()->getPermissions();
265 265
 		} else {
266 266
 			$permissions = $this->info->getPermissions();
267 267
 		}
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
 			$shares = $this->shareManager->getSharedWith($user, $shareType, $this, -1);
313 313
 			foreach ($shares as $share) {
314 314
 				$note = $share->getNote();
315
-				if($share->getShareOwner() !== $user && !empty($note)) {
315
+				if ($share->getShareOwner() !== $user && !empty($note)) {
316 316
 					return $note;
317 317
 				}
318 318
 			}
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
 			throw new \InvalidArgumentException('X-OC-MTime header must be an integer (unix timestamp).');
404 404
 		}
405 405
 
406
-		return (int)$mtimeFromRequest;
406
+		return (int) $mtimeFromRequest;
407 407
 	}
408 408
 
409 409
 }
Please login to merge, or discard this patch.