ReviewOS

also looking at this

meemalabs/flysystem-meema

chore(deps-dev): bump pestphp/pest from 1.15.0 to 1.21.1

#57
Open dependabot[bot] wants to merge dependabot/composer/pestphp/pest-1.21.1 into main
2 files +165 -174

Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.

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)