@@ -136,10 +136,10 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | } |