Completed
Pull Request — master (#1)
by Jiajian
01:51
created
src/UpyunServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 block discarded – undo
16 16
      */
17 17
     public function boot()
18 18
     {
19
-        Storage::extend('upyun', function ($app, $config) {
19
+        Storage::extend('upyun', function($app, $config) {
20 20
             $adapter = new UpyunAdapter(
21 21
                 $config['bucket'], $config['operator'],
22
-                $config['password'],$config['domain']
22
+                $config['password'], $config['domain']
23 23
             );
24 24
 
25 25
             $filesystem = new Filesystem($adapter);
Please login to merge, or discard this patch.
src/UpyunAdapter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      */
98 98
     public function rename($path, $newpath)
99 99
     {
100
-        $this->copy($path,$newpath);
100
+        $this->copy($path, $newpath);
101 101
         return $this->delete($path);
102 102
     }
103 103
 
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
     {
180 180
         $list = [];
181 181
 
182
-        $result = $this->client()->read($directory, null, [ 'X-List-Limit' => 100, 'X-List-Iter' => null]);
182
+        $result = $this->client()->read($directory, null, ['X-List-Limit' => 100, 'X-List-Iter' => null]);
183 183
 
184 184
         foreach ($result['files'] as $files) {
185 185
             $list[] = $this->normalizeFileInfo($files, $directory);
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
      */
274 274
     protected function normalizeFileInfo(array $stats, string $directory)
275 275
     {
276
-        $filePath = ltrim($directory . '/' . $stats['name'], '/');
276
+        $filePath = ltrim($directory.'/'.$stats['name'], '/');
277 277
 
278 278
         return [
279 279
             'type' => $this->getType($filePath)['type'],
Please login to merge, or discard this patch.