Completed
Push — master ( f3d80d...8d277a )
by Pierre
08:08 queued 05:26
created
src/Gaufrette/Adapter/AwsS3.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -272,6 +272,9 @@  discard block
 block discarded – undo
272 272
         return true;
273 273
     }
274 274
 
275
+    /**
276
+     * @param string $key
277
+     */
275 278
     protected function getOptions($key, array $options = array())
276 279
     {
277 280
         $options['ACL'] = $this->options['acl'];
@@ -287,6 +290,9 @@  discard block
 block discarded – undo
287 290
         return $options;
288 291
     }
289 292
 
293
+    /**
294
+     * @return string
295
+     */
290 296
     protected function computePath($key)
291 297
     {
292 298
         if (empty($this->options['directory'])) {
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@
 block discarded – undo
12 12
  * @author  Michael Dowling <[email protected]>
13 13
  */
14 14
 class AwsS3 implements Adapter,
15
-                       MetadataSupporter,
16
-                       ListKeysAware,
17
-                       SizeCalculator
15
+                        MetadataSupporter,
16
+                        ListKeysAware,
17
+                        SizeCalculator
18 18
 {
19 19
     protected $service;
20 20
     protected $bucket;
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/Cache.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Gaufrette\Adapter;
4 4
 
5
-use Gaufrette\File;
6 5
 use Gaufrette\Adapter;
7 6
 use Gaufrette\Adapter\InMemory as InMemoryAdapter;
8 7
 
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
  * @author  Antoine Hérault <[email protected]>
14 14
  */
15 15
 class Cache implements Adapter,
16
-                       MetadataSupporter
16
+                        MetadataSupporter
17 17
 {
18 18
     /**
19 19
      * @var Adapter
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/DoctrineDbal.php 3 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -152,6 +152,10 @@
 block discarded – undo
152 152
         return false;
153 153
     }
154 154
 
155
+    /**
156
+     * @param string $key
157
+     * @param string $column
158
+     */
155 159
     private function getColumnValue($key, $column)
156 160
     {
157 161
         $value = $this->connection->fetchColumn(
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
15 15
  * @author Leszek Prabucki <[email protected]>
16 16
  */
17 17
 class DoctrineDbal implements Adapter,
18
-                              ChecksumCalculator,
19
-                              ListKeysAware
18
+                                ChecksumCalculator,
19
+                                ListKeysAware
20 20
 {
21 21
     protected $connection;
22 22
     protected $table;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@
 block discarded – undo
183 183
 
184 184
         return array(
185 185
             'dirs' => array(),
186
-            'keys' => array_map(function ($value) {
186
+            'keys' => array_map(function($value) {
187 187
                     return $value['_key'];
188 188
                 },
189 189
                 $keys),
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
@@ -162,6 +162,9 @@
 block discarded – undo
162 162
         }
163 163
     }
164 164
 
165
+    /**
166
+     * @param string $key
167
+     */
165 168
     private function getDropboxMetadata($key)
166 169
     {
167 170
         try {
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
@@ -349,6 +349,9 @@
 block discarded – undo
349 349
         }
350 350
     }
351 351
 
352
+    /**
353
+     * @param string $key
354
+     */
352 355
     protected function computePath($key)
353 356
     {
354 357
         if (empty($this->options['directory'])) {
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/GridFS.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/PhpseclibSftp.php 2 patches
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -187,6 +187,10 @@  discard block
 block discarded – undo
187 187
         $this->initialized = true;
188 188
     }
189 189
 
190
+    /**
191
+     * @param string|null $directory
192
+     * @param boolean $create
193
+     */
190 194
     protected function ensureDirectoryExists($directory, $create)
191 195
     {
192 196
         $pwd = $this->sftp->pwd();
@@ -201,6 +205,9 @@  discard block
 block discarded – undo
201 205
         }
202 206
     }
203 207
 
208
+    /**
209
+     * @param string $key
210
+     */
204 211
     protected function computePath($key)
205 212
     {
206 213
         return $this->directory.'/'.ltrim($key, '/');
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@
 block discarded – undo
8 8
 use Gaufrette\File;
9 9
 
10 10
 class PhpseclibSftp implements Adapter,
11
-                               FileFactory,
12
-                               ListKeysAware
11
+                                FileFactory,
12
+                                ListKeysAware
13 13
 {
14 14
     protected $sftp;
15 15
     protected $directory;
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
@@ -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.