@@ -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); |
@@ -734,7 +734,7 @@ |
||
734 | 734 | * |
735 | 735 | * @param string $path The path to open. |
736 | 736 | * |
737 | - * @return resource|bool The file handle, or false. |
|
737 | + * @return resource The file handle, or false. |
|
738 | 738 | */ |
739 | 739 | protected function getWritableStream($path) |
740 | 740 | { |
@@ -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); |