@@ -718,7 +718,7 @@ discard block |
||
718 | 718 | * |
719 | 719 | * @param string $path The path to open. |
720 | 720 | * |
721 | - * @return resource|bool The file handle, or false. |
|
721 | + * @return resource The file handle, or false. |
|
722 | 722 | */ |
723 | 723 | protected function getWritableStream($path) |
724 | 724 | { |
@@ -739,7 +739,7 @@ discard block |
||
739 | 739 | * |
740 | 740 | * @param string $path The path to open. |
741 | 741 | * |
742 | - * @return resource|bool The file handle, or false. |
|
742 | + * @return boolean The file handle, or false. |
|
743 | 743 | */ |
744 | 744 | protected function getAppendStream($path) |
745 | 745 | { |
@@ -407,10 +407,10 @@ discard block |
||
407 | 407 | public function stream_lock($operation) |
408 | 408 | { |
409 | 409 | // Normalize paths so that locks are consistent. |
410 | - $normalized = $this->getProtocol() . '://' . Util::normalizePath($this->getTarget()); |
|
410 | + $normalized = $this->getProtocol().'://'.Util::normalizePath($this->getTarget()); |
|
411 | 411 | |
412 | 412 | // Relay the lock to a real filesystem lock. |
413 | - $lockfile = sys_get_temp_dir() . '/flysystem-stream-wrapper-' . sha1($normalized) . '.lock'; |
|
413 | + $lockfile = sys_get_temp_dir().'/flysystem-stream-wrapper-'.sha1($normalized).'.lock'; |
|
414 | 414 | $handle = fopen($lockfile, 'w'); |
415 | 415 | $success = flock($handle, $operation); |
416 | 416 | fclose($handle); |
@@ -435,7 +435,7 @@ discard block |
||
435 | 435 | case STREAM_META_ACCESS: |
436 | 436 | $permissions = octdec(substr(decoct($value), -4)); |
437 | 437 | $is_public = $permissions & $this->getConfiguration('public_mask'); |
438 | - $visibility = $is_public ? AdapterInterface::VISIBILITY_PUBLIC : AdapterInterface::VISIBILITY_PRIVATE; |
|
438 | + $visibility = $is_public ? AdapterInterface::VISIBILITY_PUBLIC : AdapterInterface::VISIBILITY_PRIVATE; |
|
439 | 439 | |
440 | 440 | try { |
441 | 441 | return $this->getFilesystem()->setVisibility($this->getTarget(), $visibility); |
@@ -111,7 +111,7 @@ |
||
111 | 111 | $keys = array_diff($this->required, array_keys($metadata), $ignore); |
112 | 112 | |
113 | 113 | foreach ($keys as $key) { |
114 | - $method = 'get' . ucfirst($key); |
|
114 | + $method = 'get'.ucfirst($key); |
|
115 | 115 | |
116 | 116 | try { |
117 | 117 | $metadata[$key] = $this->filesystem->$method($path); |