Completed
Pull Request — master (#427)
by
unknown
02:37
created
src/Gaufrette/Adapter/Apc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
      * @param string $key    - by default ''
139 139
      * @param int    $format - by default APC_ITER_NONE
140 140
      *
141
-     * @return \APCIterator
141
+     * @return \Traversable
142 142
      */
143 143
     protected function getCachedKeysIterator($key = '', $format = APC_ITER_NONE)
144 144
     {
Please login to merge, or discard this patch.
src/Gaufrette/StreamWrapper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -213,7 +213,7 @@
 block discarded – undo
213 213
     /**
214 214
      * @param string $path
215 215
      *
216
-     * @return mixed
216
+     * @return boolean
217 217
      */
218 218
     public function unlink($path)
219 219
     {
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/AzureBlobStorage.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
  * @author Paweł Czyżewski <[email protected]>
19 19
  */
20 20
 class AzureBlobStorage implements Adapter,
21
-                                  MetadataSupporter
21
+                                    MetadataSupporter
22 22
 {
23 23
     /**
24 24
      * Error constants.
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -458,7 +458,7 @@  discard block
 block discarded – undo
458 458
     }
459 459
 
460 460
     /**
461
-     * @param string|resource $content
461
+     * @param string $content
462 462
      *
463 463
      * @return string
464 464
      */
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
     /**
477 477
      * @param string $key
478 478
      *
479
-     * @return array
479
+     * @return string[]
480 480
      * @throws \InvalidArgumentException
481 481
      */
482 482
     private function tokenizeKey($key)
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -512,10 +512,10 @@
 block discarded – undo
512 512
     {
513 513
         $blobList = $this->blobProxy->listBlobs($containerName);
514 514
         return array_map(
515
-            function (Blob $blob) use ($prefix) {
515
+            function(Blob $blob) use ($prefix) {
516 516
                 $name = $blob->getName();
517 517
                 if (null !== $prefix) {
518
-                    $name = $prefix .'/'. $name;
518
+                    $name = $prefix.'/'.$name;
519 519
                 }
520 520
                 return $name;
521 521
             },
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/AclAwareAmazonS3.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -186,6 +186,9 @@
 block discarded – undo
186 186
         return $this->users;
187 187
     }
188 188
 
189
+    /**
190
+     * @param string $key
191
+     */
189 192
     private function updateAcl($key)
190 193
     {
191 194
         $response = $this->s3->set_object_acl($this->bucketName, $key, $this->getAcl());
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
  * @deprecated The AclAwareAmazonS3 adapter is deprecated since version 0.4 and will be removed in 1.0. Use the AwsS3 adapter instead.
20 20
  */
21 21
 class AclAwareAmazonS3 implements Adapter,
22
-                                  MetadataSupporter
22
+                                    MetadataSupporter
23 23
 {
24 24
     protected $delegate;
25 25
     protected $s3;
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/AmazonS3.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
  * @deprecated The AmazonS3 adapter is deprecated since version 0.4 and will be removed in 1.0. Use the AwsS3 adapter instead.
19 19
  */
20 20
 class AmazonS3 implements Adapter,
21
-                          MetadataSupporter
21
+                            MetadataSupporter
22 22
 {
23 23
     protected $service;
24 24
     protected $bucket;
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/Sftp.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
  * @deprecated The Sftp adapter is deprecated since version 0.4 and will be removed in 1.0.
12 12
  */
13 13
 class Sftp implements Adapter,
14
-                      ChecksumCalculator
14
+                        ChecksumCalculator
15 15
 {
16 16
     protected $sftp;
17 17
     protected $directory;
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/AwsS3.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,10 +12,10 @@
 block discarded – undo
12 12
  * @author  Michael Dowling <[email protected]>
13 13
  */
14 14
 class AwsS3 implements Adapter,
15
-                       MetadataSupporter,
16
-                       ListKeysAware,
17
-                       SizeCalculator,
18
-                       MimeTypeProvider
15
+                        MetadataSupporter,
16
+                        ListKeysAware,
17
+                        SizeCalculator,
18
+                        MimeTypeProvider
19 19
 {
20 20
     /** @var S3Client */
21 21
     protected $service;
Please login to merge, or discard this patch.
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -307,6 +307,9 @@  discard block
 block discarded – undo
307 307
         return true;
308 308
     }
309 309
 
310
+    /**
311
+     * @param string $key
312
+     */
310 313
     protected function getOptions($key, array $options = [])
311 314
     {
312 315
         $options['ACL'] = $this->options['acl'];
@@ -322,6 +325,9 @@  discard block
 block discarded – undo
322 325
         return $options;
323 326
     }
324 327
 
328
+    /**
329
+     * @return string
330
+     */
325 331
     protected function computePath($key)
326 332
     {
327 333
         if (empty($this->options['directory'])) {
Please login to merge, or discard this patch.
src/Gaufrette/Filesystem.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -227,6 +227,7 @@  discard block
 block discarded – undo
227 227
 
228 228
     /**
229 229
      * {@inheritdoc}
230
+     * @param string $key
230 231
      */
231 232
     public function createStream($key)
232 233
     {
@@ -241,6 +242,7 @@  discard block
 block discarded – undo
241 242
 
242 243
     /**
243 244
      * {@inheritdoc}
245
+     * @param string $key
244 246
      */
245 247
     public function createFile($key)
246 248
     {
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/GoogleCloudClientStorage.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,6 @@  discard block
 block discarded – undo
22 22
     protected $resources    = array();
23 23
 
24 24
     /**
25
-     * @param Google\Cloud\Storage\StorageClient    $service    Authenticated storage client class
26 25
      * @param string                                $bucketName Name of the bucket
27 26
      * @param array                                 $options    Options are: "directory" and "acl" (see https://cloud.google.com/storage/docs/access-control/lists)
28 27
      */
@@ -81,6 +80,9 @@  discard block
 block discarded – undo
81 80
         return true;
82 81
     }
83 82
     
83
+    /**
84
+     * @param string $name
85
+     */
84 86
     public function setBucket($name)
85 87
     {
86 88
         $this->bucketValidated = null;
@@ -269,6 +271,7 @@  discard block
 block discarded – undo
269 271
     
270 272
     /**
271 273
      * {@inheritdoc}
274
+     * @param string $key
272 275
      */
273 276
     public function setResources($key, $data)
274 277
     {
@@ -286,6 +289,8 @@  discard block
 block discarded – undo
286 289
     
287 290
     /**
288 291
      * {@inheritdoc}
292
+     * @param string $key
293
+     * @param string $resourceName
289 294
      */
290 295
     public function getResourceByName($key, $resourceName)
291 296
     {
Please login to merge, or discard this patch.