Completed
Pull Request — master (#390)
by Саша
09:26 queued 06:27
created
src/Gaufrette/Adapter/Sftp.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 use Ssh\Sftp as SftpClient;
7 7
 
8 8
 class Sftp implements Adapter,
9
-                      ChecksumCalculator
9
+                        ChecksumCalculator
10 10
 {
11 11
     protected $sftp;
12 12
     protected $directory;
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/OpenCloud.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
  * @author  Daniel Richter <[email protected]>
19 19
  */
20 20
 class OpenCloud implements Adapter,
21
-                           ChecksumCalculator
21
+                            ChecksumCalculator
22 22
 {
23 23
     /**
24 24
      * @var Service
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      *
85 85
      * @param string $key
86 86
      *
87
-     * @return string|bool if cannot read content
87
+     * @return string if cannot read content
88 88
      */
89 89
     public function read($key)
90 90
     {
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      *
157 157
      * @param string $key
158 158
      *
159
-     * @return int|bool An UNIX like timestamp or false
159
+     * @return string|false An UNIX like timestamp or false
160 160
      */
161 161
     public function mtime($key)
162 162
     {
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/Local.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@
 block discarded – undo
15 15
  * @author Leszek Prabucki <[email protected]>
16 16
  */
17 17
 class Local implements Adapter,
18
-                       StreamFactory,
19
-                       ChecksumCalculator,
20
-                       SizeCalculator,
21
-                       MimeTypeProvider
18
+                        StreamFactory,
19
+                        ChecksumCalculator,
20
+                        SizeCalculator,
21
+                        MimeTypeProvider
22 22
 {
23 23
     protected $directory;
24 24
     private $create;
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
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
  * @author  Leszek Prabucki <[email protected]>
16 16
  */
17 17
 class AmazonS3 implements Adapter,
18
-                          MetadataSupporter
18
+                            MetadataSupporter
19 19
 {
20 20
     protected $service;
21 21
     protected $bucket;
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/AclAwareAmazonS3.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
  * @author Johannes M. Schmitt <[email protected]>
17 17
  */
18 18
 class AclAwareAmazonS3 implements Adapter,
19
-                                  MetadataSupporter
19
+                                    MetadataSupporter
20 20
 {
21 21
     protected $delegate;
22 22
     protected $s3;
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/Dropbox.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -145,6 +145,9 @@
 block discarded – undo
145 145
         return isset($this->metadata[$key]) ? $this->metadata[$key] : array();
146 146
     }
147 147
 
148
+    /**
149
+     * @param string $key
150
+     */
148 151
     private function find($key, array $fields = array())
149 152
     {
150 153
         return $this->gridFS->findOne($key, $fields);
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/GoogleCloudStorage.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -145,6 +145,9 @@
 block discarded – undo
145 145
         return isset($this->metadata[$key]) ? $this->metadata[$key] : array();
146 146
     }
147 147
 
148
+    /**
149
+     * @param string $key
150
+     */
148 151
     private function find($key, array $fields = array())
149 152
     {
150 153
         return $this->gridFS->findOne($key, $fields);
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/AzureBlobStorage.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
  * @author Johannes M. Schmitt <[email protected]>
17 17
  */
18 18
 class AclAwareAmazonS3 implements Adapter,
19
-                                  MetadataSupporter
19
+                                    MetadataSupporter
20 20
 {
21 21
     protected $delegate;
22 22
     protected $s3;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@
 block discarded – undo
207 207
             $blobList = $this->blobProxy->listBlobs($this->containerName);
208 208
 
209 209
             return array_map(
210
-                function ($blob) {
210
+                function($blob) {
211 211
                     return $blob->getName();
212 212
                 },
213 213
                 $blobList->getBlobs()
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/Ftp.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@  discard block
 block discarded – undo
12 12
  * @author  Antoine Hérault <[email protected]>
13 13
  */
14 14
 class Ftp implements Adapter,
15
-                     FileFactory,
16
-                     ListKeysAware
15
+                        FileFactory,
16
+                        ListKeysAware
17 17
 {
18 18
     protected $connection = null;
19 19
     protected $directory;
@@ -258,8 +258,8 @@  discard block
 block discarded – undo
258 258
         $this->fileData = array_merge($fileData, $this->fileData);
259 259
 
260 260
         return array(
261
-           'keys' => array_keys($fileData),
262
-           'dirs' => $dirs,
261
+            'keys' => array_keys($fileData),
262
+            'dirs' => $dirs,
263 263
         );
264 264
     }
265 265
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
         $this->ensureDirectoryExists($this->directory, $this->create);
120 120
 
121 121
         $file  = $this->computePath($key);
122
-        $lines = ftp_rawlist($this->getConnection(), '-al ' . str_replace('\\', '/', dirname($file)));
122
+        $lines = ftp_rawlist($this->getConnection(), '-al '.str_replace('\\', '/', dirname($file)));
123 123
 
124 124
         if (false === $lines) {
125 125
             return false;
Please login to merge, or discard this patch.