@@ -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); |
@@ -447,7 +447,7 @@ discard block |
||
447 | 447 | case STREAM_META_ACCESS: |
448 | 448 | $permissions = octdec(substr(decoct($value), -4)); |
449 | 449 | $is_public = $permissions & $this->getConfiguration('public_mask'); |
450 | - $visibility = $is_public ? AdapterInterface::VISIBILITY_PUBLIC : AdapterInterface::VISIBILITY_PRIVATE; |
|
450 | + $visibility = $is_public ? AdapterInterface::VISIBILITY_PUBLIC : AdapterInterface::VISIBILITY_PRIVATE; |
|
451 | 451 | |
452 | 452 | try { |
453 | 453 | return $this->getFilesystem()->setVisibility($this->getTarget(), $visibility); |
@@ -925,17 +925,17 @@ discard block |
||
925 | 925 | // Since we're flattening out whole filesystems, at least create a |
926 | 926 | // sub-directory for each scheme to attempt to limit the number of files |
927 | 927 | // per directory. |
928 | - $temp_dir = sys_get_temp_dir() . '/flysystem-stream-wrapper/' . $sub_dir; |
|
928 | + $temp_dir = sys_get_temp_dir().'/flysystem-stream-wrapper/'.$sub_dir; |
|
929 | 929 | |
930 | 930 | // Race free directory creation. If @mkdir() fails, fopen() will fail |
931 | 931 | // later, so there's no reason to test again. |
932 | - ! is_dir($temp_dir) && @mkdir($temp_dir, 0777, true); |
|
932 | + !is_dir($temp_dir) && @mkdir($temp_dir, 0777, true); |
|
933 | 933 | |
934 | 934 | // Normalize paths so that locks are consistent. |
935 | 935 | $lock_key = md5(Util::normalizePath($this->getTarget())); |
936 | 936 | |
937 | 937 | // Relay the lock to a real filesystem lock. |
938 | - return fopen($temp_dir . '/' . $lock_key, 'c'); |
|
938 | + return fopen($temp_dir.'/'.$lock_key, 'c'); |
|
939 | 939 | } |
940 | 940 | |
941 | 941 | /** |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | } |
201 | 201 | |
202 | 202 | /** |
203 | - * @return array The list of registered protocols. |
|
203 | + * @return integer[] The list of registered protocols. |
|
204 | 204 | */ |
205 | 205 | public static function getRegisteredProtocols() |
206 | 206 | { |
@@ -748,7 +748,7 @@ discard block |
||
748 | 748 | * |
749 | 749 | * @param string $path The path to open. |
750 | 750 | * |
751 | - * @return resource|bool The file handle, or false. |
|
751 | + * @return resource The file handle, or false. |
|
752 | 752 | */ |
753 | 753 | protected function getWritableStream($path) |
754 | 754 | { |