ReviewOS

also looking at this

meemalabs/flysystem-meema

chore(deps): bump league/flysystem from 1.1.4 to 1.1.6

#52
Merged dependabot[bot] wants to merge dependabot/composer/league/flysystem-1.1.6 into main
2 files +45 -64
composer.lockmodified+13-13
Changes to composer.lock
@@ -1108,16 +1108,16 @@
11081108 },
11091109 {
11101110 "name": "league/flysystem",
1111 "version": "1.1.4",
1111 "version": "1.1.6",
11121112 "source": {
11131113 "type": "git",
11141114 "url": "https://github.com/thephpleague/flysystem.git",
1115 "reference": "f3ad69181b8afed2c9edf7be5a2918144ff4ea32"
1115 "reference": "627be7fcde84c71aa0f15097fcf48fd5f2be5287"
11161116 },
11171117 "dist": {
11181118 "type": "zip",
1119 "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/f3ad69181b8afed2c9edf7be5a2918144ff4ea32",
1120 "reference": "f3ad69181b8afed2c9edf7be5a2918144ff4ea32",
1119 "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/627be7fcde84c71aa0f15097fcf48fd5f2be5287",
1120 "reference": "627be7fcde84c71aa0f15097fcf48fd5f2be5287",
11211121 "shasum": ""
11221122 },
11231123 "require": {
@@ -1190,7 +1190,7 @@
11901190 ],
11911191 "support": {
11921192 "issues": "https://github.com/thephpleague/flysystem/issues",
1193 "source": "https://github.com/thephpleague/flysystem/tree/1.1.4"
1193 "source": "https://github.com/thephpleague/flysystem/tree/1.1.6"
11941194 },
11951195 "funding": [
11961196 {
@@ -1198,20 +1198,20 @@
11981198 "type": "other"
11991199 }
12001200 ],
1201 "time": "2021-06-23T21:56:05+00:00"
1201 "time": "2021-11-21T11:04:36+00:00"
12021202 },
12031203 {
12041204 "name": "league/mime-type-detection",
1205 "version": "1.7.0",
1205 "version": "1.9.0",
12061206 "source": {
12071207 "type": "git",
12081208 "url": "https://github.com/thephpleague/mime-type-detection.git",
1209 "reference": "3b9dff8aaf7323590c1d2e443db701eb1f9aa0d3"
1209 "reference": "aa70e813a6ad3d1558fc927863d47309b4c23e69"
12101210 },
12111211 "dist": {
12121212 "type": "zip",
1213 "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/3b9dff8aaf7323590c1d2e443db701eb1f9aa0d3",
1214 "reference": "3b9dff8aaf7323590c1d2e443db701eb1f9aa0d3",
1213 "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/aa70e813a6ad3d1558fc927863d47309b4c23e69",
1214 "reference": "aa70e813a6ad3d1558fc927863d47309b4c23e69",
12151215 "shasum": ""
12161216 },
12171217 "require": {
@@ -1219,7 +1219,7 @@
12191219 "php": "^7.2 || ^8.0"
12201220 },
12211221 "require-dev": {
1222 "friendsofphp/php-cs-fixer": "^2.18",
1222 "friendsofphp/php-cs-fixer": "^3.2",
12231223 "phpstan/phpstan": "^0.12.68",
12241224 "phpunit/phpunit": "^8.5.8 || ^9.3"
12251225 },
@@ -1242,7 +1242,7 @@
12421242 "description": "Mime-type detection for Flysystem",
12431243 "support": {
12441244 "issues": "https://github.com/thephpleague/mime-type-detection/issues",
1245 "source": "https://github.com/thephpleague/mime-type-detection/tree/1.7.0"
1245 "source": "https://github.com/thephpleague/mime-type-detection/tree/1.9.0"
12461246 },
12471247 "funding": [
12481248 {
@@ -1254,7 +1254,7 @@
12541254 "type": "tidelift"
12551255 }
12561256 ],
1257 "time": "2021-01-18T20:58:21+00:00"
1257 "time": "2021-11-21T11:48:40+00:00"
12581258 },
12591259 {
12601260 "name": "meema/meema-client-php",
src/MeemaAdapter.phpmodified+32-51
Changes to src/MeemaAdapter.php
@@ -21,10 +21,9 @@ class MeemaAdapter extends AbstractAdapter
2121 /**
2222 * Write a new file.
2323 *
24 * @param string $path
25 * @param string $contents
26 * @param Config $config Config object
27 *
24 * @param string $path
25 * @param string $contents
26 * @param Config $config Config object
2827 * @return false|array false on failure file meta data on success
2928 */
3029 public function write($path, $contents, Config $config)
@@ -35,10 +34,9 @@ class MeemaAdapter extends AbstractAdapter
3534 /**
3635 * Write a new file using a stream.
3736 *
38 * @param string $path
39 * @param resource $resource
40 * @param Config $config Config object
41 *
37 * @param string $path
38 * @param resource $resource
39 * @param Config $config Config object
4240 * @return array|false false on failure file meta data on success
4341 */
4442 public function writeStream($path, $resource, Config $config)
@@ -49,10 +47,9 @@ class MeemaAdapter extends AbstractAdapter
4947 /**
5048 * Update a file.
5149 *
52 * @param string $path
53 * @param string $contents
54 * @param Config $config Config object
55 *
50 * @param string $path
51 * @param string $contents
52 * @param Config $config Config object
5653 * @return array|false false on failure file meta data on success
5754 */
5855 public function update($path, $contents, Config $config)
@@ -63,10 +60,9 @@ class MeemaAdapter extends AbstractAdapter
6360 /**
6461 * Update a file using a stream.
6562 *
66 * @param string $path
67 * @param resource $resource
68 * @param Config $config Config object
69 *
63 * @param string $path
64 * @param resource $resource
65 * @param Config $config Config object
7066 * @return array|false false on failure file meta data on success
7167 */
7268 public function updateStream($path, $resource, Config $config)
@@ -77,9 +73,8 @@ class MeemaAdapter extends AbstractAdapter
7773 /**
7874 * Rename a file.
7975 *
80 * @param string $path
81 * @param string $newpath
82 *
76 * @param string $path
77 * @param string $newpath
8378 * @return bool
8479 */
8580 public function rename($path, $newpath)
@@ -90,9 +85,8 @@ class MeemaAdapter extends AbstractAdapter
9085 /**
9186 * Copy a file.
9287 *
93 * @param string $path
94 * @param string $newpath
95 *
88 * @param string $path
89 * @param string $newpath
9690 * @return bool
9791 */
9892 public function copy($path, $newpath)
@@ -103,8 +97,7 @@ class MeemaAdapter extends AbstractAdapter
10397 /**
10498 * Delete a file.
10599 *
106 * @param string $path
107 *
100 * @param string $path
108101 * @return bool
109102 */
110103 public function delete($path)
@@ -115,8 +108,7 @@ class MeemaAdapter extends AbstractAdapter
115108 /**
116109 * Delete a directory.
117110 *
118 * @param string $dirname
119 *
111 * @param string $dirname
120112 * @return bool
121113 */
122114 public function deleteDir($dirname)
@@ -127,9 +119,8 @@ class MeemaAdapter extends AbstractAdapter
127119 /**
128120 * Create a directory.
129121 *
130 * @param string $dirname directory name
131 * @param Config $config
132 *
122 * @param string $dirname directory name
123 * @param Config $config
133124 * @return array|false
134125 */
135126 public function createDir($dirname, Config $config)
@@ -140,9 +131,8 @@ class MeemaAdapter extends AbstractAdapter
140131 /**
141132 * Set the visibility for a file.
142133 *
143 * @param string $path
144 * @param string $visibility
145 *
134 * @param string $path
135 * @param string $visibility
146136 * @return array|false file meta data
147137 */
148138 public function setVisibility($path, $visibility)
@@ -153,8 +143,7 @@ class MeemaAdapter extends AbstractAdapter
153143 /**
154144 * Check whether a file exists.
155145 *
156 * @param string $path
157 *
146 * @param string $path
158147 * @return bool
159148 */
160149 public function has($path)
@@ -165,8 +154,7 @@ class MeemaAdapter extends AbstractAdapter
165154 /**
166155 * Read a file.
167156 *
168 * @param string $path
169 *
157 * @param string $path
170158 * @return false|array
171159 */
172160 public function read($path)
@@ -177,9 +165,8 @@ class MeemaAdapter extends AbstractAdapter
177165 /**
178166 * List contents of a directory.
179167 *
180 * @param string $directory
181 * @param bool $recursive
182 *
168 * @param string $directory
169 * @param bool $recursive
183170 * @return array
184171 */
185172 public function listContents($directory = '', $recursive = false)
@@ -190,8 +177,7 @@ class MeemaAdapter extends AbstractAdapter
190177 /**
191178 * Read a file as a stream.
192179 *
193 * @param string $path
194 *
180 * @param string $path
195181 * @return array|false
196182 */
197183 public function readStream($path)
@@ -202,8 +188,7 @@ class MeemaAdapter extends AbstractAdapter
202188 /**
203189 * Get all the meta data of a file or directory.
204190 *
205 * @param string $path
206 *
191 * @param string $path
207192 * @return false|array
208193 */
209194 public function getMetadata($path)
@@ -214,8 +199,7 @@ class MeemaAdapter extends AbstractAdapter
214199 /**
215200 * Get all the meta data of a file or directory.
216201 *
217 * @param string $path
218 *
202 * @param string $path
219203 * @return false|array
220204 */
221205 public function getSize($path)
@@ -226,8 +210,7 @@ class MeemaAdapter extends AbstractAdapter
226210 /**
227211 * Get the mimetype of a file.
228212 *
229 * @param string $path
230 *
213 * @param string $path
231214 * @return false|array
232215 */
233216 public function getMimetype($path)
@@ -238,8 +221,7 @@ class MeemaAdapter extends AbstractAdapter
238221 /**
239222 * Get the timestamp of a file.
240223 *
241 * @param string $path
242 *
224 * @param string $path
243225 * @return false|array
244226 */
245227 public function getTimestamp($path)
@@ -250,8 +232,7 @@ class MeemaAdapter extends AbstractAdapter
250232 /**
251233 * Get the visibility of a file.
252234 *
253 * @param string $path
254 *
235 * @param string $path
255236 * @return array|false
256237 */
257238 public function getVisibility($path)