@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | $this->mkdir($path2); |
220 | 220 | while ($file = readdir($dir)) { |
221 | 221 | if (!Filesystem::isIgnoredDir($file)) { |
222 | - if (!$this->copy($path1 . '/' . $file, $path2 . '/' . $file)) { |
|
222 | + if (!$this->copy($path1.'/'.$file, $path2.'/'.$file)) { |
|
223 | 223 | return false; |
224 | 224 | } |
225 | 225 | } |
@@ -273,12 +273,12 @@ discard block |
||
273 | 273 | if (is_resource($dh)) { |
274 | 274 | while (($file = readdir($dh)) !== false) { |
275 | 275 | if (!\OC\Files\Filesystem::isIgnoredDir($file)) { |
276 | - if ($this->is_dir($path . '/' . $file)) { |
|
277 | - mkdir($target . '/' . $file); |
|
278 | - $this->addLocalFolder($path . '/' . $file, $target . '/' . $file); |
|
276 | + if ($this->is_dir($path.'/'.$file)) { |
|
277 | + mkdir($target.'/'.$file); |
|
278 | + $this->addLocalFolder($path.'/'.$file, $target.'/'.$file); |
|
279 | 279 | } else { |
280 | - $tmp = $this->toTmpFile($path . '/' . $file); |
|
281 | - rename($tmp, $target . '/' . $file); |
|
280 | + $tmp = $this->toTmpFile($path.'/'.$file); |
|
281 | + rename($tmp, $target.'/'.$file); |
|
282 | 282 | } |
283 | 283 | } |
284 | 284 | } |
@@ -297,10 +297,10 @@ discard block |
||
297 | 297 | while (($item = readdir($dh)) !== false) { |
298 | 298 | if (\OC\Files\Filesystem::isIgnoredDir($item)) continue; |
299 | 299 | if (strstr(strtolower($item), strtolower($query)) !== false) { |
300 | - $files[] = $dir . '/' . $item; |
|
300 | + $files[] = $dir.'/'.$item; |
|
301 | 301 | } |
302 | - if ($this->is_dir($dir . '/' . $item)) { |
|
303 | - $files = array_merge($files, $this->searchInDir($query, $dir . '/' . $item)); |
|
302 | + if ($this->is_dir($dir.'/'.$item)) { |
|
303 | + $files = array_merge($files, $this->searchInDir($query, $dir.'/'.$item)); |
|
304 | 304 | } |
305 | 305 | } |
306 | 306 | } |
@@ -351,7 +351,7 @@ discard block |
||
351 | 351 | if (!isset($this->watcher)) { |
352 | 352 | $this->watcher = new Watcher($storage); |
353 | 353 | $globalPolicy = \OC::$server->getConfig()->getSystemValue('filesystem_check_changes', Watcher::CHECK_NEVER); |
354 | - $this->watcher->setPolicy((int)$this->getMountOption('filesystem_check_changes', $globalPolicy)); |
|
354 | + $this->watcher->setPolicy((int) $this->getMountOption('filesystem_check_changes', $globalPolicy)); |
|
355 | 355 | } |
356 | 356 | return $this->watcher; |
357 | 357 | } |
@@ -425,7 +425,7 @@ discard block |
||
425 | 425 | */ |
426 | 426 | public function cleanPath($path) { |
427 | 427 | if (strlen($path) == 0 or $path[0] != '/') { |
428 | - $path = '/' . $path; |
|
428 | + $path = '/'.$path; |
|
429 | 429 | } |
430 | 430 | |
431 | 431 | $output = array(); |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | \OC::$server->getLogger()->info("External storage not available: stat() failed"); |
454 | 454 | return false; |
455 | 455 | } catch (\Exception $e) { |
456 | - \OC::$server->getLogger()->info("External storage not available: " . $e->getMessage()); |
|
456 | + \OC::$server->getLogger()->info("External storage not available: ".$e->getMessage()); |
|
457 | 457 | \OC::$server->getLogger()->logException($e, ['level' => ILogger::DEBUG]); |
458 | 458 | return false; |
459 | 459 | } |
@@ -604,7 +604,7 @@ discard block |
||
604 | 604 | if (is_resource($dh)) { |
605 | 605 | while ($result and ($file = readdir($dh)) !== false) { |
606 | 606 | if (!Filesystem::isIgnoredDir($file)) { |
607 | - $result &= $this->copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file); |
|
607 | + $result &= $this->copyFromStorage($sourceStorage, $sourceInternalPath.'/'.$file, $targetInternalPath.'/'.$file); |
|
608 | 608 | } |
609 | 609 | } |
610 | 610 | } |
@@ -630,7 +630,7 @@ discard block |
||
630 | 630 | $this->getCache()->remove($targetInternalPath); |
631 | 631 | } |
632 | 632 | } |
633 | - return (bool)$result; |
|
633 | + return (bool) $result; |
|
634 | 634 | } |
635 | 635 | |
636 | 636 | /** |
@@ -710,7 +710,7 @@ discard block |
||
710 | 710 | ); |
711 | 711 | } |
712 | 712 | try { |
713 | - $provider->acquireLock('files/' . md5($this->getId() . '::' . trim($path, '/')), $type); |
|
713 | + $provider->acquireLock('files/'.md5($this->getId().'::'.trim($path, '/')), $type); |
|
714 | 714 | } catch (LockedException $e) { |
715 | 715 | if ($logger) { |
716 | 716 | $logger->logException($e); |
@@ -742,7 +742,7 @@ discard block |
||
742 | 742 | ); |
743 | 743 | } |
744 | 744 | try { |
745 | - $provider->releaseLock('files/' . md5($this->getId() . '::' . trim($path, '/')), $type); |
|
745 | + $provider->releaseLock('files/'.md5($this->getId().'::'.trim($path, '/')), $type); |
|
746 | 746 | } catch (LockedException $e) { |
747 | 747 | if ($logger) { |
748 | 748 | $logger->logException($e); |
@@ -774,7 +774,7 @@ discard block |
||
774 | 774 | ); |
775 | 775 | } |
776 | 776 | try { |
777 | - $provider->changeLock('files/' . md5($this->getId() . '::' . trim($path, '/')), $type); |
|
777 | + $provider->changeLock('files/'.md5($this->getId().'::'.trim($path, '/')), $type); |
|
778 | 778 | } catch (LockedException $e) { |
779 | 779 | \OC::$server->getLogger()->logException($e); |
780 | 780 | throw $e; |
@@ -134,7 +134,7 @@ |
||
134 | 134 | } else if ($existing === 'exclusive') { |
135 | 135 | return $existing; |
136 | 136 | } else { |
137 | - return $existing . ' shared locks'; |
|
137 | + return $existing.' shared locks'; |
|
138 | 138 | } |
139 | 139 | } |
140 | 140 | } |
@@ -50,9 +50,9 @@ |
||
50 | 50 | * @since 8.1.0 |
51 | 51 | */ |
52 | 52 | public function __construct(string $path, \Exception $previous = null, string $existingLock = null) { |
53 | - $message = '"' . $path . '" is locked'; |
|
53 | + $message = '"'.$path.'" is locked'; |
|
54 | 54 | if ($existingLock) { |
55 | - $message .= ', existing lock on file: ' . $existingLock; |
|
55 | + $message .= ', existing lock on file: '.$existingLock; |
|
56 | 56 | } |
57 | 57 | parent::__construct($message, 0, $previous); |
58 | 58 | $this->path = $path; |