Completed
Pull Request — master (#13)
by frey
03:48
created
src/Adapter.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             throw $exception;
96 96
         }
97 97
 
98
-        return (bool)$response;
98
+        return (bool) $response;
99 99
     }
100 100
 
101 101
     /**
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
         $this->setContentType($path, stream_get_contents($resource));
124 124
 
125
-        return (bool)$response;
125
+        return (bool) $response;
126 126
     }
127 127
 
128 128
     /**
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
             throw $exception;
158 158
         }
159 159
 
160
-        return (bool)$response;
160
+        return (bool) $response;
161 161
     }
162 162
 
163 163
     /**
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 
185 185
         $this->setContentType($path, stream_get_contents($resource));
186 186
 
187
-        return (bool)$response;
187
+        return (bool) $response;
188 188
     }
189 189
 
190 190
     /**
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      */
196 196
     public function rename($path, $newpath)
197 197
     {
198
-        return (bool)$this->normalizeResponse(
198
+        return (bool) $this->normalizeResponse(
199 199
             Cosapi::moveFile($this->getBucket(), $path, $newpath, 1)
200 200
         );
201 201
     }
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
      */
209 209
     public function copy($path, $newpath)
210 210
     {
211
-        return (bool)$this->normalizeResponse(
211
+        return (bool) $this->normalizeResponse(
212 212
             Cosapi::copyFile($this->getBucket(), $path, $newpath, 1)
213 213
         );
214 214
     }
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
      */
221 221
     public function delete($path)
222 222
     {
223
-        return (bool)$this->normalizeResponse(
223
+        return (bool) $this->normalizeResponse(
224 224
             Cosapi::delFile($this->getBucket(), $path)
225 225
         );
226 226
     }
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      */
233 233
     public function deleteDir($dirname)
234 234
     {
235
-        return (bool)$this->normalizeResponse(
235
+        return (bool) $this->normalizeResponse(
236 236
             Cosapi::delFolder($this->getBucket(), $dirname)
237 237
         );
238 238
     }
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
      */
246 246
     public function createDir($dirname, Config $config)
247 247
     {
248
-        return (bool)$this->normalizeResponse(
248
+        return (bool) $this->normalizeResponse(
249 249
             Cosapi::createFolder($this->getBucket(), $dirname)
250 250
         );
251 251
     }
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
     {
261 261
         $visibility = $visibility === AdapterInterface::VISIBILITY_PUBLIC ? 'eWPrivateRPublic' : 'eWRPrivate';
262 262
 
263
-        return (bool)$this->normalizeResponse(
263
+        return (bool) $this->normalizeResponse(
264 264
             Cosapi::update($this->getBucket(), $path, null, $visibility)
265 265
         );
266 266
     }
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
     public function has($path)
274 274
     {
275 275
         try {
276
-            return (bool)$this->getMetadata($path);
276
+            return (bool) $this->getMetadata($path);
277 277
         } catch (RuntimeException $exception) {
278 278
             return false;
279 279
         }
Please login to merge, or discard this patch.