ReviewOS

also looking at this

meemalabs/flysystem-meema

Apply fixes from StyleCI

#6
Merged glennmichael123 wants to merge analysis-pedo24 into develop
2 files +13 -12
src/Client.phpmodifiedformatting only+3-3
Changes to src/Client.php
@@ -39,13 +39,13 @@ class Client
3939 ])
4040 ->getBody()
4141 ->getContents();
42
42
4343 $body = json_decode($content, true);
44
44
4545 if ($body && array_key_exists('data', $body)) {
4646 return $body['data'];
4747 }
4848
4949 return $body;
5050 }
51}⧵
51}
src/MeemaAdapter.phpmodified+10-9
Changes to src/MeemaAdapter.php
@@ -10,21 +10,22 @@ use League\Flysystem\Config;
1010
1111class MeemaAdapter extends AbstractAdapter
1212{
13 /**
13 /**
1414 * @var \Meema\Flysystem\Client
15 */
15 */
1616 protected $client;
1717
1818 public function __construct()
1919 {
2020 $this->client = new Client('pk_live|2|1|kDLnNyPvkdlA8sXJky7SJePO1IdabMzncYxypyC2');
2121 }
22
2223 /**
2324 * Write a new file.
2425 *
2526 * @param string $path
2627 * @param string $contents
27 * @param Config $config Config object
28 * @param Config $config Config object
2829 *
2930 * @return false|array false on failure file meta data on success
3031 */
formatting only · 8 hidden lines
Changes to src/MeemaAdapter.php
@@ -181,7 +182,7 @@ class MeemaAdapter extends AbstractAdapter formatting only
181182 * List contents of a directory.
182183 *
183184 * @param string $directory
184 * @param bool $recursive
185 * @param bool $recursive
185186 *
186187 * @return array
187188 */
formatting only · 12 hidden lines
Changes to src/MeemaAdapter.php
@@ -298,9 +299,9 @@ class MeemaAdapter extends AbstractAdapter formatting only
298299 /**
299300 * Upload the file stream to s3.
300301 *
301 * @param string $signedUrl
302 * @param array $headers
303 * @param string $fileName
302 * @param string $signedUrl
303 * @param array $headers
304 * @param string $fileName
304305 * @param GuzzleHttp\Psr7 $stream
305306 *
306307 * @return void
formatting only · 8 hidden lines
Changes to src/MeemaAdapter.php
@@ -315,7 +316,7 @@ class MeemaAdapter extends AbstractAdapter formatting only
315316 new Psr7\MultipartStream(
316317 [
317318 [
318 'name' => $fileName,
319 'name' => $fileName,
319320 'contents' => $stream,
320321 ],
321322 ]
formatting only · 5 hidden lines
Changes to src/MeemaAdapter.php
@@ -324,4 +325,4 @@ class MeemaAdapter extends AbstractAdapter formatting only
324325
325326 $client->send($request);
326327 }
327}⧵
328}