Passed
Push — master ( f73d2a...b6f14a )
by f
14:52
created
src/LzwStreamWrapper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -237,8 +237,8 @@
 block discarded – undo
237 237
                 if ($code == 0 || $code == 2 || is_null($code)) {
238 238
                     // rewrite original file
239 239
                     if (rename($this->tmp2, $this->path) !== true) {
240
-                        throw new \RuntimeException(__FILE__ . ', line ' . __LINE__ .
241
-                            ': Could not replace original file ' . $this->path);
240
+                        throw new \RuntimeException(__FILE__.', line '.__LINE__.
241
+                            ': Could not replace original file '.$this->path);
242 242
                     }
243 243
                 } else {
244 244
                     throw new \RuntimeException(__FILE__.', line '.__LINE__.
Please login to merge, or discard this patch.
src/Drivers/TarByPear.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
                 $compression = 'lzma2';
120 120
                 break;
121 121
             case 'z':
122
-                $tar_aname = 'compress.lzw://' . $archiveFileName;
122
+                $tar_aname = 'compress.lzw://'.$archiveFileName;
123 123
                 break;
124 124
         }
125 125
 
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 
172 172
             case Formats::TAR_LZW:
173 173
                 LzwStreamWrapper::registerWrapper();
174
-                $this->tar = new Archive_Tar('compress.lzw://' . $this->archiveFileName);
174
+                $this->tar = new Archive_Tar('compress.lzw://'.$this->archiveFileName);
175 175
                 break;
176 176
 
177 177
             default:
Please login to merge, or discard this patch.
src/Drivers/AlchemyZippy.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -194,8 +194,8 @@  discard block
 block discarded – undo
194 194
 
195 195
             $this->files[] = $information->files[] = str_replace('\\', '/', $member->getLocation());
196 196
             $this->members[str_replace('\\', '/', $member->getLocation())] = $member;
197
-            $information->compressedFilesSize += (int)$member->getSize();
198
-            $information->uncompressedFilesSize += (int)$member->getSize();
197
+            $information->compressedFilesSize += (int) $member->getSize();
198
+            $information->uncompressedFilesSize += (int) $member->getSize();
199 199
         }
200 200
         return $information;
201 201
     }
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
     public function getFileContent($fileName)
245 245
     {
246 246
         $member = $this->getMember($fileName);
247
-        return (string)$member;
247
+        return (string) $member;
248 248
     }
249 249
 
250 250
     /**
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
     public function getFileStream($fileName)
254 254
     {
255 255
         $member = $this->getMember($fileName);
256
-        return self::wrapStringInStream((string)$member);
256
+        return self::wrapStringInStream((string) $member);
257 257
     }
258 258
 
259 259
     /**
Please login to merge, or discard this patch.
src/Drivers/Iso.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -120,11 +120,11 @@  discard block
 block discarded – undo
120 120
                     $this->files[$file->Location] = $directory.$file->strd_FileId;
121 121
                     $this->filesSize += $file->DataLen;
122 122
 
123
-                    $this->filesData[$directory . $file->strd_FileId] =
123
+                    $this->filesData[$directory.$file->strd_FileId] =
124 124
                         [
125 125
                             'size' => $file->DataLen,
126 126
                             'mtime' =>
127
-                                strtotime((string)$file->isoRecDate),
127
+                                strtotime((string) $file->isoRecDate),
128 128
                         ];
129 129
                 }
130 130
             }
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
             return false;
173 173
 
174 174
         return new ArchiveEntry($fileName, $this->filesData[$fileName]['size'],
175
-            $this->filesData[$fileName]['size'], $this->filesData[$fileName]['mtime'],false);
175
+            $this->filesData[$fileName]['size'], $this->filesData[$fileName]['mtime'], false);
176 176
     }
177 177
 
178 178
     /**
Please login to merge, or discard this patch.
src/Drivers/Zip.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 
48 48
     public static function getDescription()
49 49
     {
50
-        return 'adapter for ext-zip'.(extension_loaded('zip') && defined('\ZipArchive::LIBZIP_VERSION') ? ' ('. ZipArchive::LIBZIP_VERSION.')' : null);
50
+        return 'adapter for ext-zip'.(extension_loaded('zip') && defined('\ZipArchive::LIBZIP_VERSION') ? ' ('.ZipArchive::LIBZIP_VERSION.')' : null);
51 51
     }
52 52
 
53 53
     public static function getInstallationInstruction()
Please login to merge, or discard this patch.
src/Drivers/OneFile/Gzip.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     {
16 16
         $fp = fopen($file, 'rb');
17 17
         if (filesize($file) < 18 || strcmp(fread($fp, 2), "\x1f\x8b")) {
18
-            return false;  // Not GZIP format (See RFC 1952)
18
+            return false; // Not GZIP format (See RFC 1952)
19 19
         }
20 20
         $method = fread($fp, 1);
21 21
         $flags = fread($fp, 1);
Please login to merge, or discard this patch.
src/Drivers/OneFile/Lzma.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
  */
12 12
 class Lzma extends OneFileDriver
13 13
 {
14
-    const FORMAT_SUFFIX =  'xz';
14
+    const FORMAT_SUFFIX = 'xz';
15 15
 
16 16
     /**
17 17
      * @return array
Please login to merge, or discard this patch.
src/Drivers/OneFile/Bzip.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 
6 6
 class Bzip extends OneFileDriver
7 7
 {
8
-    const FORMAT_SUFFIX =  'bz2';
8
+    const FORMAT_SUFFIX = 'bz2';
9 9
 
10 10
     /**
11 11
      * @return array
Please login to merge, or discard this patch.
src/Drivers/SevenZip.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,8 +139,8 @@
 block discarded – undo
139 139
             $information->files[] = $can_get_unix_path
140 140
                 ? $entry->getUnixPath()
141 141
                 : str_replace('\\', '/', $entry->getPath());
142
-            $information->compressedFilesSize += (int)$entry->getPackedSize();
143
-            $information->uncompressedFilesSize += (int)$entry->getSize();
142
+            $information->compressedFilesSize += (int) $entry->getPackedSize();
143
+            $information->uncompressedFilesSize += (int) $entry->getSize();
144 144
         }
145 145
         return $information;
146 146
     }
Please login to merge, or discard this patch.