Passed
Push — master ( c7dd07...06c898 )
by Morris
18:31 queued 08:47
created
apps/dav/lib/Connector/Sabre/Node.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -136,10 +136,10 @@  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
 		if (!$this->fileView->rename($this->path, $newPath)) {
142
-			throw new \Sabre\DAV\Exception('Failed to rename '. $this->path . ' to ' . $newPath);
142
+			throw new \Sabre\DAV\Exception('Failed to rename '.$this->path.' to '.$newPath);
143 143
 		}
144 144
 
145 145
 		$this->path = $newPath;
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 	public function getLastModified() {
160 160
 		$timestamp = $this->info->getMtime();
161 161
 		if (!empty($timestamp)) {
162
-			return (int)$timestamp;
162
+			return (int) $timestamp;
163 163
 		}
164 164
 		return $timestamp;
165 165
 	}
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 	 * @return string
188 188
 	 */
189 189
 	public function getETag() {
190
-		return '"' . $this->info->getEtag() . '"';
190
+		return '"'.$this->info->getEtag().'"';
191 191
 	}
192 192
 
193 193
 	/**
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 		if ($this->info->getId()) {
227 227
 			$instanceId = \OC_Util::getInstanceId();
228 228
 			$id = sprintf('%08d', $this->info->getId());
229
-			return $id . $instanceId;
229
+			return $id.$instanceId;
230 230
 		}
231 231
 
232 232
 		return null;
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 
264 264
 		if ($storage && $storage->instanceOfStorage('\OCA\Files_Sharing\SharedStorage')) {
265 265
 			/** @var \OCA\Files_Sharing\SharedStorage $storage */
266
-			$permissions = (int)$storage->getShare()->getPermissions();
266
+			$permissions = (int) $storage->getShare()->getPermissions();
267 267
 		} else {
268 268
 			$permissions = $this->info->getPermissions();
269 269
 		}
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
 			$shares = $this->shareManager->getSharedWith($user, $shareType, $this, -1);
315 315
 			foreach ($shares as $share) {
316 316
 				$note = $share->getNote();
317
-				if($share->getShareOwner() !== $user && !empty($note)) {
317
+				if ($share->getShareOwner() !== $user && !empty($note)) {
318 318
 					return $note;
319 319
 				}
320 320
 			}
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
 			throw new \InvalidArgumentException('X-OC-MTime header must be an integer (unix timestamp).');
406 406
 		}
407 407
 
408
-		return (int)$mtimeFromRequest;
408
+		return (int) $mtimeFromRequest;
409 409
 	}
410 410
 
411 411
 }
Please login to merge, or discard this patch.