Passed
Push — master ( 289fba...eed162 )
by alpha
12:43
created
src/Plugins/PutRemoteFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,6 +37,6 @@
 block discarded – undo
37 37
         // Get file stream from remote url
38 38
         $resource = fopen($remoteUrl, 'r');
39 39
 
40
-        return (bool)$this->filesystem->getAdapter()->writeStream($path, $resource, $config);
40
+        return (bool) $this->filesystem->getAdapter()->writeStream($path, $resource, $config);
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
src/Plugins/PutFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,6 @@
 block discarded – undo
34 34
             $config->setFallback($this->filesystem->getConfig());
35 35
         }
36 36
 
37
-        return (bool)$this->filesystem->getAdapter()->writeFile($path, $filePath, $config);
37
+        return (bool) $this->filesystem->getAdapter()->writeFile($path, $filePath, $config);
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
src/AliyunOssServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     {
25 25
         if ($this->app->runningInConsole()) {
26 26
             $this->publishes([
27
-                __DIR__ . '/config/config.php' => config_path('aliyun-oss.php'),
27
+                __DIR__.'/config/config.php' => config_path('aliyun-oss.php'),
28 28
             ], 'config');
29 29
         }
30 30
         $this->mergeConfigFrom(
Please login to merge, or discard this patch.
src/AliyunOssAdapter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
      */
282 282
     public function deleteDir($dirname)
283 283
     {
284
-        $dirname = rtrim($this->applyPathPrefix($dirname), '/') . '/';
284
+        $dirname = rtrim($this->applyPathPrefix($dirname), '/').'/';
285 285
         $dirObjects = $this->listDirObjects($dirname, true);
286 286
 
287 287
         if (count($dirObjects['objects']) > 0) {
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
     public function read($path)
433 433
     {
434 434
         $result = $this->readObject($path);
435
-        $result['contents'] = (string)$result['raw_contents'];
435
+        $result['contents'] = (string) $result['raw_contents'];
436 436
         unset($result['raw_contents']);
437 437
         return $result;
438 438
     }
@@ -559,7 +559,7 @@  discard block
 block discarded – undo
559 559
     public function getUrl($path)
560 560
     {
561 561
         // if (!$this->has($path)) throw new FileNotFoundException($path.' not found');
562
-        return ($this->ssl ? 'https://' : 'http://') . ($this->isCname ? ($this->cdnDomain == '' ? $this->endPoint : $this->cdnDomain) : $this->bucket . '.' . $this->endPoint) . '/' . ltrim($path, '/');
562
+        return ($this->ssl ? 'https://' : 'http://').($this->isCname ? ($this->cdnDomain == '' ? $this->endPoint : $this->cdnDomain) : $this->bucket.'.'.$this->endPoint).'/'.ltrim($path, '/');
563 563
     }
564 564
 
565 565
     /**
@@ -683,7 +683,7 @@  discard block
 block discarded – undo
683 683
     protected function logErr($func, $e)
684 684
     {
685 685
         if ($this->debug) {
686
-            Log::error($func . ": FAILED");
686
+            Log::error($func.": FAILED");
687 687
             Log::error($e->getMessage());
688 688
         }
689 689
     }
Please login to merge, or discard this patch.