Completed
Pull Request — master (#14)
by frey
12:43
created
src/Adapter.php 2 patches
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     }
40 40
 
41 41
     /**
42
-     * @return mixed
42
+     * @return string
43 43
      */
44 44
     public function getBucket()
45 45
     {
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     }
48 48
 
49 49
     /**
50
-     * @param $path
50
+     * @param string $path
51 51
      *
52 52
      * @return string
53 53
      */
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
     /**
276 276
      * @param string $path
277 277
      *
278
-     * @return array
278
+     * @return string
279 279
      */
280 280
     public function read($path)
281 281
     {
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
     }
385 385
 
386 386
     /**
387
-     * @param $content
387
+     * @param string $content
388 388
      *
389 389
      * @return bool|string
390 390
      */
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
     }
401 401
 
402 402
     /**
403
-     * @param $tmpfname
403
+     * @param boolean|string $tmpfname
404 404
      */
405 405
     private function deleteTempFile($tmpfname)
406 406
     {
@@ -408,8 +408,8 @@  discard block
 block discarded – undo
408 408
     }
409 409
 
410 410
     /**
411
-     * @param $path
412
-     * @param $content
411
+     * @param string $path
412
+     * @param string $content
413 413
      *
414 414
      * @return bool
415 415
      */
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
             $this->deleteTempFile($tmpfname);
78 78
 			
79
-			$this->setContentType($path, $contents);
79
+            $this->setContentType($path, $contents);
80 80
         } catch (RuntimeException $exception) {
81 81
             $this->deleteTempFile($tmpfname);
82 82
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                 Cosapi::upload($this->getBucket(), $uri, $path)
107 107
             );
108 108
 			
109
-			$this->setContentType($path, stream_get_contents($resource));
109
+            $this->setContentType($path, stream_get_contents($resource));
110 110
         } catch (RuntimeException $exception) {
111 111
             if ($exception->getCode() == -4018) {
112 112
                 return $this->getMetadata($path);
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 
137 137
             $this->deleteTempFile($tmpfname);
138 138
 			
139
-			$this->setContentType($path, $contents);
139
+            $this->setContentType($path, $contents);
140 140
         } catch (RuntimeException $exception) {
141 141
             $this->deleteTempFile($tmpfname);
142 142
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
                 Cosapi::upload($this->getBucket(), $uri, $path, $path, null, null, 0)
167 167
             );
168 168
 			
169
-			$this->setContentType($path, stream_get_contents($resource));
169
+            $this->setContentType($path, stream_get_contents($resource));
170 170
         } catch (RuntimeException $exception) {
171 171
             if ($exception->getCode() == -4018) {
172 172
                 return $this->getMetadata($path);
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
      */
200 200
     public function copy($path, $newpath)
201 201
     {
202
-		$resource = $this->read($path);
202
+        $resource = $this->read($path);
203 203
 		
204 204
         return $this->update($newpath, $resource['contents'], new Config());
205 205
     }
Please login to merge, or discard this patch.