Completed
Push — master ( 4cf76b...b13682 )
by Pierre
02:58
created
src/Gaufrette/Adapter/Zip.php 2 patches
Switch Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -167,36 +167,36 @@
 block discarded – undo
167 167
 
168 168
         if (true !== ($resultCode = $this->zipArchive->open($this->zipFile, ZipArchive::CREATE))) {
169 169
             switch ($resultCode) {
170
-            case ZipArchive::ER_EXISTS:
171
-                $errMsg = 'File already exists.';
172
-                break;
173
-            case ZipArchive::ER_INCONS:
174
-                $errMsg = 'Zip archive inconsistent.';
175
-                break;
176
-            case ZipArchive::ER_INVAL:
177
-                $errMsg = 'Invalid argument.';
178
-                break;
179
-            case ZipArchive::ER_MEMORY:
180
-                $errMsg = 'Malloc failure.';
181
-                break;
182
-            case ZipArchive::ER_NOENT:
183
-                $errMsg = 'Invalid argument.';
184
-                break;
185
-            case ZipArchive::ER_NOZIP:
186
-                $errMsg = 'Not a zip archive.';
187
-                break;
188
-            case ZipArchive::ER_OPEN:
189
-                $errMsg = 'Can\'t open file.';
190
-                break;
191
-            case ZipArchive::ER_READ:
192
-                $errMsg = 'Read error.';
193
-                break;
194
-            case ZipArchive::ER_SEEK;
195
-                $errMsg = 'Seek error.';
196
-                break;
197
-            default:
198
-                $errMsg = 'Unknown error.';
199
-                break;
170
+                case ZipArchive::ER_EXISTS:
171
+                    $errMsg = 'File already exists.';
172
+                    break;
173
+                case ZipArchive::ER_INCONS:
174
+                    $errMsg = 'Zip archive inconsistent.';
175
+                    break;
176
+                case ZipArchive::ER_INVAL:
177
+                    $errMsg = 'Invalid argument.';
178
+                    break;
179
+                case ZipArchive::ER_MEMORY:
180
+                    $errMsg = 'Malloc failure.';
181
+                    break;
182
+                case ZipArchive::ER_NOENT:
183
+                    $errMsg = 'Invalid argument.';
184
+                    break;
185
+                case ZipArchive::ER_NOZIP:
186
+                    $errMsg = 'Not a zip archive.';
187
+                    break;
188
+                case ZipArchive::ER_OPEN:
189
+                    $errMsg = 'Can\'t open file.';
190
+                    break;
191
+                case ZipArchive::ER_READ:
192
+                    $errMsg = 'Read error.';
193
+                    break;
194
+                case ZipArchive::ER_SEEK;
195
+                    $errMsg = 'Seek error.';
196
+                    break;
197
+                default:
198
+                    $errMsg = 'Unknown error.';
199
+                    break;
200 200
             }
201 201
 
202 202
             throw new \RuntimeException(sprintf('%s', $errMsg));
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
      * Returns the stat of a file in the zip archive
136 136
      *  (name, index, crc, mtime, compression size, compression method, filesize).
137 137
      *
138
-     * @param $key
138
+     * @param string $key
139 139
      *
140 140
      * @return array|bool
141 141
      */
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/AzureBlobStorage.php 2 patches
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.
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.
src/Gaufrette/Adapter/MogileFS.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
 
90 90
                 if ($status) {
91 91
                     $params = array('key' => $key, 'class' => $metadata['mogile_class'], 'devid' => $res['devid'],
92
-                                    'fid' => $res['fid'], 'path' => urldecode($res['path']), );
92
+                                    'fid' => $res['fid'], 'path' => urldecode($res['path']),);
93 93
                     $closeres = $this->doRequest('CREATE_CLOSE', $params);
94 94
                 }
95 95
             }
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
     /**
251 251
      * Makes request to MogileFS tracker.
252 252
      *
253
-     * @param cmd Command
253
+     * @param cmd string
254 254
      * @param args Array of arguments
255 255
      *
256 256
      * @return mixed Array on success, false on failure
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
     /**
303 303
      * Get file location at server from MogileFS tracker.
304 304
      *
305
-     * @param key File key
305
+     * @param key string key
306 306
      *
307 307
      * @return mixed Array on success, false on failure
308 308
      */
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
      * Sends file to MogileFS tracker.
319 319
      *
320 320
      * @param path Save path at server
321
-     * @param data Data to save
321
+     * @param data string to save
322 322
      *
323 323
      * @return bool
324 324
      */
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/Flysystem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      */
59 59
     public function keys()
60 60
     {
61
-        return array_map(function ($content) {
61
+        return array_map(function($content) {
62 62
             return $content['path'];
63 63
         }, $this->adapter->listContents());
64 64
     }
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/InMemory.php 1 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 InMemory implements Adapter,
16
-                          MimeTypeProvider
16
+                            MimeTypeProvider
17 17
 {
18 18
     protected $files = array();
19 19
 
Please login to merge, or discard this patch.
src/Gaufrette/Adapter/Ftp.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         $this->ensureDirectoryExists($this->directory, $this->create);
122 122
 
123 123
         $file  = $this->computePath($key);
124
-        $lines = ftp_rawlist($this->getConnection(), '-al ' . \Gaufrette\Util\Path::dirname($file));
124
+        $lines = ftp_rawlist($this->getConnection(), '-al '.\Gaufrette\Util\Path::dirname($file));
125 125
 
126 126
         if (false === $lines) {
127 127
             return false;
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
         }
527 527
 
528 528
         // enable utf8 mode if configured
529
-        if($this->utf8 == true) {
529
+        if ($this->utf8 == true) {
530 530
             ftp_raw($this->connection, "OPTS UTF8 ON");
531 531
         }
532 532
 
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@  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,
17
-                     SizeCalculator
15
+                        FileFactory,
16
+                        ListKeysAware,
17
+                        SizeCalculator
18 18
 {
19 19
     protected $connection = null;
20 20
     protected $directory;
@@ -263,8 +263,8 @@  discard block
 block discarded – undo
263 263
         $this->fileData = array_merge($fileData, $this->fileData);
264 264
 
265 265
         return array(
266
-           'keys' => array_keys($fileData),
267
-           'dirs' => $dirs,
266
+            'keys' => array_keys($fileData),
267
+            'dirs' => $dirs,
268 268
         );
269 269
     }
270 270
 
Please login to merge, or discard this patch.
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.