@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | } |
337 | 337 | |
338 | 338 | if (!$filesystem->fileExists(dirname($dirname))) { |
339 | - throw new InvalidArgumentException($dirname . ' not found'); |
|
339 | + throw new InvalidArgumentException($dirname.' not found'); |
|
340 | 340 | } |
341 | 341 | |
342 | 342 | return (bool) $filesystem->createDirectory($dirname); |
@@ -494,7 +494,7 @@ discard block |
||
494 | 494 | case STREAM_META_ACCESS: |
495 | 495 | $permissions = octdec(substr(decoct($value), -4)); |
496 | 496 | $is_public = $permissions & $this->getConfiguration('public_mask'); |
497 | - $visibility = $is_public ? AdapterInterface::VISIBILITY_PUBLIC : AdapterInterface::VISIBILITY_PRIVATE; |
|
497 | + $visibility = $is_public ? AdapterInterface::VISIBILITY_PUBLIC : AdapterInterface::VISIBILITY_PRIVATE; |
|
498 | 498 | |
499 | 499 | try { |
500 | 500 | return $this->getFilesystem()->setVisibility($this->getTarget(), $visibility); |
@@ -977,7 +977,7 @@ discard block |
||
977 | 977 | // Since we're flattening out whole filesystems, at least create a |
978 | 978 | // sub-directory for each scheme to attempt to reduce the number of |
979 | 979 | // files per directory. |
980 | - $temp_dir = sys_get_temp_dir() . '/flysystem-stream-wrapper/' . $sub_dir; |
|
980 | + $temp_dir = sys_get_temp_dir().'/flysystem-stream-wrapper/'.$sub_dir; |
|
981 | 981 | |
982 | 982 | // Race free directory creation. If @mkdir() fails, fopen() will fail |
983 | 983 | // later, so there's no reason to test again. |
@@ -989,7 +989,7 @@ discard block |
||
989 | 989 | $lock_key = sha1(Util::normalizePath($this->getTarget())); |
990 | 990 | |
991 | 991 | // Relay the lock to a real filesystem lock. |
992 | - return fopen($temp_dir . '/' . $lock_key, 'c'); |
|
992 | + return fopen($temp_dir.'/'.$lock_key, 'c'); |
|
993 | 993 | } |
994 | 994 | |
995 | 995 | /** |
@@ -97,7 +97,7 @@ |
||
97 | 97 | |
98 | 98 | $ignore = $flags & FlysystemStreamWrapper::STREAM_URL_IGNORE_SIZE ? ['size'] : []; |
99 | 99 | |
100 | - if($this->filesystem->fileExists($path) === false && $this->filesystem->mimeType($path) !== 'directory') { |
|
100 | + if ($this->filesystem->fileExists($path) === false && $this->filesystem->mimeType($path) !== 'directory') { |
|
101 | 101 | return false; |
102 | 102 | } |
103 | 103 |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | return true; |
38 | 38 | } |
39 | 39 | |
40 | - if ( ! $this->isValidRename($path, $newpath)) { |
|
40 | + if (!$this->isValidRename($path, $newpath)) { |
|
41 | 41 | // Returns false if a Flysystem call fails. |
42 | 42 | return false; |
43 | 43 | } |
@@ -60,17 +60,17 @@ discard block |
||
60 | 60 | */ |
61 | 61 | protected function isValidRename($source, $dest) |
62 | 62 | { |
63 | - if ( ! $this->filesystem->fileExists($source)) { |
|
63 | + if (!$this->filesystem->fileExists($source)) { |
|
64 | 64 | throw new FileNotFoundException($source); |
65 | 65 | } |
66 | 66 | |
67 | 67 | $subdir = dirname($dest); |
68 | 68 | |
69 | - if (strlen($subdir) && $subdir != '.' && ! $this->filesystem->fileExists($subdir)) { |
|
69 | + if (strlen($subdir) && $subdir != '.' && !$this->filesystem->fileExists($subdir)) { |
|
70 | 70 | throw new FileNotFoundException($subdir); |
71 | 71 | } |
72 | 72 | |
73 | - if ( ! $this->filesystem->fileExists($dest)) { |
|
73 | + if (!$this->filesystem->fileExists($dest)) { |
|
74 | 74 | return true; |
75 | 75 | } |
76 | 76 | |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | |
116 | 116 | // Allow overwriting destination directory if not empty. |
117 | 117 | $contents = $this->filesystem->listContents($dest); |
118 | - if ( ! empty($contents)) { |
|
118 | + if (!empty($contents)) { |
|
119 | 119 | throw new DirectoryNotEmptyException(); |
120 | 120 | } |
121 | 121 |