@@ -70,7 +70,7 @@ |
||
| 70 | 70 | { |
| 71 | 71 | $contents = $this->getForStorage(); |
| 72 | 72 | |
| 73 | - if (! is_null($this->expire)) { |
|
| 73 | + if (!is_null($this->expire)) { |
|
| 74 | 74 | $this->cache->set($this->key, $contents, $this->expire); |
| 75 | 75 | } else { |
| 76 | 76 | $this->cache->set($this->key, $contents); |
@@ -90,16 +90,16 @@ |
||
| 90 | 90 | $config = []; |
| 91 | 91 | |
| 92 | 92 | foreach ([ |
| 93 | - 'host', |
|
| 94 | - 'port', |
|
| 95 | - 'username', |
|
| 96 | - 'password', |
|
| 97 | - 'timeout', |
|
| 98 | - 'root', |
|
| 99 | - 'privateKey', |
|
| 100 | - 'permPrivate', |
|
| 101 | - 'permPublic', |
|
| 102 | - ] as $name) { |
|
| 93 | + 'host', |
|
| 94 | + 'port', |
|
| 95 | + 'username', |
|
| 96 | + 'password', |
|
| 97 | + 'timeout', |
|
| 98 | + 'root', |
|
| 99 | + 'privateKey', |
|
| 100 | + 'permPrivate', |
|
| 101 | + 'permPublic', |
|
| 102 | + ] as $name) { |
|
| 103 | 103 | if ($this->$name !== null) { |
| 104 | 104 | $config[$name] = $this->$name; |
| 105 | 105 | } |
@@ -63,13 +63,13 @@ |
||
| 63 | 63 | $config = []; |
| 64 | 64 | |
| 65 | 65 | foreach ([ |
| 66 | - 'baseUri', |
|
| 67 | - 'userName', |
|
| 68 | - 'password', |
|
| 69 | - 'proxy', |
|
| 70 | - 'authType', |
|
| 71 | - 'encoding', |
|
| 72 | - ] as $name) { |
|
| 66 | + 'baseUri', |
|
| 67 | + 'userName', |
|
| 68 | + 'password', |
|
| 69 | + 'proxy', |
|
| 70 | + 'authType', |
|
| 71 | + 'encoding', |
|
| 72 | + ] as $name) { |
|
| 73 | 73 | if ($this->$name !== null) { |
| 74 | 74 | $config[$name] = $this->$name; |
| 75 | 75 | } |
@@ -84,6 +84,6 @@ |
||
| 84 | 84 | ]; |
| 85 | 85 | $cosApi = new Api($config); |
| 86 | 86 | |
| 87 | - return new \Freyo\Flysystem\QcloudCOSv4\Adapter($cosApi,$config); |
|
| 87 | + return new \Freyo\Flysystem\QcloudCOSv4\Adapter($cosApi, $config); |
|
| 88 | 88 | } |
| 89 | 89 | } |
@@ -89,18 +89,18 @@ |
||
| 89 | 89 | { |
| 90 | 90 | $config = []; |
| 91 | 91 | foreach ([ |
| 92 | - 'host', |
|
| 93 | - 'port', |
|
| 94 | - 'username', |
|
| 95 | - 'password', |
|
| 96 | - 'ssl', |
|
| 97 | - 'timeout', |
|
| 98 | - 'root', |
|
| 99 | - 'permPrivate', |
|
| 100 | - 'permPublic', |
|
| 101 | - 'passive', |
|
| 102 | - 'transferMode', |
|
| 103 | - ] as $name) { |
|
| 92 | + 'host', |
|
| 93 | + 'port', |
|
| 94 | + 'username', |
|
| 95 | + 'password', |
|
| 96 | + 'ssl', |
|
| 97 | + 'timeout', |
|
| 98 | + 'root', |
|
| 99 | + 'permPrivate', |
|
| 100 | + 'permPublic', |
|
| 101 | + 'passive', |
|
| 102 | + 'transferMode', |
|
| 103 | + ] as $name) { |
|
| 104 | 104 | if ($this->$name !== null) { |
| 105 | 105 | $config[$name] = $this->$name; |
| 106 | 106 | } |