Passed
Push — master ( f9e8e5...d4fd39 )
by f
15:34
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/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/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/UnifiedArchive.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     public static function open($fileName, $password = null)
63 63
     {
64 64
         if (!file_exists($fileName) || !is_readable($fileName)) {
65
-            throw new InvalidArgumentException('Could not open file: ' . $fileName.' is not readable');
65
+            throw new InvalidArgumentException('Could not open file: '.$fileName.' is not readable');
66 66
         }
67 67
 
68 68
         $format = Formats::detectArchiveFormat($fileName);
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
     public function getFileData($fileName)
273 273
     {
274 274
         if (!in_array($fileName, $this->files, true)) {
275
-            throw new NonExistentArchiveFileException('File ' . $fileName . ' does not exist in archive');
275
+            throw new NonExistentArchiveFileException('File '.$fileName.' does not exist in archive');
276 276
         }
277 277
 
278 278
         return $this->archive->getFileData($fileName);
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
     public function getFileContent($fileName)
289 289
     {
290 290
         if (!in_array($fileName, $this->files, true)) {
291
-            throw new NonExistentArchiveFileException('File ' . $fileName . ' does not exist in archive');
291
+            throw new NonExistentArchiveFileException('File '.$fileName.' does not exist in archive');
292 292
         }
293 293
 
294 294
         return $this->archive->getFileContent($fileName);
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
     public function getFileStream($fileName)
305 305
     {
306 306
         if (!in_array($fileName, $this->files, true)) {
307
-            throw new NonExistentArchiveFileException('File ' . $fileName . ' does not exist in archive');
307
+            throw new NonExistentArchiveFileException('File '.$fileName.' does not exist in archive');
308 308
         }
309 309
 
310 310
         return $this->archive->getFileStream($fileName);
@@ -559,7 +559,7 @@  discard block
 block discarded – undo
559 559
     public static function archiveFile($file, $archiveName, $compressionLevel = BasicDriver::COMPRESSION_AVERAGE, $password = null)
560 560
     {
561 561
         if (!is_file($file)) {
562
-            throw new InvalidArgumentException($file . ' is not a valid file to archive');
562
+            throw new InvalidArgumentException($file.' is not a valid file to archive');
563 563
         }
564 564
 
565 565
         return static::archiveFiles($file, $archiveName, $compressionLevel, $password) === 1;
@@ -630,8 +630,8 @@  discard block
 block discarded – undo
630 630
                 if (is_array($source)) {
631 631
                     foreach ($source as $sourceItem) {
632 632
                         static::importFilesFromDir(
633
-                            rtrim($sourceItem, '/\\*') . '/*',
634
-                            !empty($destination) ? $destination . '/' : null,
633
+                            rtrim($sourceItem, '/\\*').'/*',
634
+                            !empty($destination) ? $destination.'/' : null,
635 635
                             true,
636 636
                             $files
637 637
                         );
@@ -639,8 +639,8 @@  discard block
 block discarded – undo
639 639
                 } else if (is_dir($source)) {
640 640
                     // one source for directories
641 641
                     static::importFilesFromDir(
642
-                        rtrim($source, '/\\*') . '/*',
643
-                        !empty($destination) ? $destination . '/' : null,
642
+                        rtrim($source, '/\\*').'/*',
643
+                        !empty($destination) ? $destination.'/' : null,
644 644
                         true,
645 645
                         $files
646 646
                     );
Please login to merge, or discard this patch.
src/Commands/CommentCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         }
30 30
 
31 31
         if (!empty($previous_comment = $archive->getComment())) {
32
-            $output->writeln('Comment "' . $previous_comment . '" replaced', OutputInterface::OUTPUT_RAW);
32
+            $output->writeln('Comment "'.$previous_comment.'" replaced', OutputInterface::OUTPUT_RAW);
33 33
         } else if ($comment === null) {
34 34
             $output->writeln('Comment deleted', OutputInterface::OUTPUT_RAW);
35 35
         } else {
Please login to merge, or discard this patch.
src/Commands/ExtractArchiveCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,10 +31,10 @@
 block discarded – undo
31 31
         $archive = $this->getArchive($input, $output);
32 32
 
33 33
         if (disk_free_space($output_dir) < $archive->getOriginalSize()) {
34
-            throw new \LogicException('Archive size ' . implode($this->formatSize($archive->getOriginalSize())) . ' is more that available on disk '
34
+            throw new \LogicException('Archive size '.implode($this->formatSize($archive->getOriginalSize())).' is more that available on disk '
35 35
                                       . implode($this->formatSize(disk_free_space($output_dir))));
36 36
         }
37 37
         $archive->extractFiles($output_dir, $entry_selector, true);
38
-        $output->writeln('<info>Extracted all archive contents (' . implode($this->formatSize($archive->getOriginalSize())) . ')</info>');
38
+        $output->writeln('<info>Extracted all archive contents ('.implode($this->formatSize($archive->getOriginalSize())).')</info>');
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
src/Commands/AddFileCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             if (empty($destination)) {
49 49
                 throw new \LogicException('Source and destination can not be empty');
50 50
             }
51
-            $output->writeln('<info>Read ' . $data_size . ' from input</info>');
51
+            $output->writeln('<info>Read '.$data_size.' from input</info>');
52 52
         } else {
53 53
             $data_size = filesize($source);
54 54
         }
@@ -75,9 +75,9 @@  discard block
 block discarded – undo
75 75
         }
76 76
         if ($added_files === 1) {
77 77
             $details = $archive->getFileData($destination);
78
-            $output->writeln('Added <comment>' . $source . '</comment>('
79
-                             . implode($this->formatSize($data_size)) . ') as '
80
-                             . $destination . ' ('
78
+            $output->writeln('Added <comment>'.$source.'</comment>('
79
+                             . implode($this->formatSize($data_size)).') as '
80
+                             . $destination.' ('
81 81
                              . implode($this->formatSize($details->compressedSize))
82 82
                              . ')');
83 83
         }
Please login to merge, or discard this patch.