Passed
Push — master ( e83d3e...f8b104 )
by alpha
02:24
created
src/AliyunOssReadTrait.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -112,6 +112,7 @@
 block discarded – undo
112 112
 
113 113
     /**
114 114
      * {@inheritdoc}
115
+     * @param string $path
115 116
      */
116 117
     public function getVisibility($path)
117 118
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     public function read($path)
26 26
     {
27 27
         $result = $this->readObject($path);
28
-        $result['contents'] = (string)$result['raw_contents'];
28
+        $result['contents'] = (string) $result['raw_contents'];
29 29
         unset($result['raw_contents']);
30 30
         return $result;
31 31
     }
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         $contents = $dirObjects["objects"];
55 55
 
56 56
         $result = array_map([$this, 'normalizeResponse'], $contents);
57
-        $result = array_filter($result, function ($value) {
57
+        $result = array_filter($result, function($value) {
58 58
             return $value['path'] !== false;
59 59
         });
60 60
 
Please login to merge, or discard this patch.
src/AliyunOssAdapterTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
      */
164 164
     public function deleteDir($dirname)
165 165
     {
166
-        $dirname = rtrim($this->applyPathPrefix($dirname), '/') . '/';
166
+        $dirname = rtrim($this->applyPathPrefix($dirname), '/').'/';
167 167
         $dirObjects = $this->listDirObjects($dirname, true);
168 168
 
169 169
         if (count($dirObjects['objects']) > 0) {
Please login to merge, or discard this patch.
src/AliyunOssAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     public function getUrl($path)
92 92
     {
93 93
         // if (!$this->has($path)) throw new FileNotFoundException($path.' not found');
94
-        return ($this->ssl ? 'https://' : 'http://') . ($this->isCname ? ($this->cdnDomain == '' ? $this->endPoint : $this->cdnDomain) : $this->bucket . '.' . $this->endPoint) . '/' . ltrim($path, '/');
94
+        return ($this->ssl ? 'https://' : 'http://').($this->isCname ? ($this->cdnDomain == '' ? $this->endPoint : $this->cdnDomain) : $this->bucket.'.'.$this->endPoint).'/'.ltrim($path, '/');
95 95
     }
96 96
 
97 97
     /**
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
     protected function logErr($func, $e)
312 312
     {
313 313
         if ($this->debug) {
314
-            Log::error($func . ": FAILED");
314
+            Log::error($func.": FAILED");
315 315
             Log::error($e->getMessage());
316 316
         }
317 317
     }
Please login to merge, or discard this patch.