Passed
Push — master ( 96860e...392c1d )
by f
11:16
created
src/Commands/InfoCommand.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -26,15 +26,15 @@
 block discarded – undo
26 26
         $file = realpath($input->getArgument('archive'));
27 27
         $archive = $this->getArchive($input, $output);
28 28
 
29
-        $output->writeln('Filename: ' . $file . ' (changed <comment>' . $this->formatDate(filemtime($file)) . '</comment>)');
30
-        $output->writeln('Type: <info>' . $archive->getFormat() . '</info>, mime <info>' . $archive->getMimeType() . '</info> (via driver <comment>' . $archive->getDriverType() . '</comment>)');
31
-        $output->writeln('Contains: ' . $archive->countFiles() . ' file' . ($archive->countFiles() > 1 ? 's' : null));
29
+        $output->writeln('Filename: '.$file.' (changed <comment>'.$this->formatDate(filemtime($file)).'</comment>)');
30
+        $output->writeln('Type: <info>'.$archive->getFormat().'</info>, mime <info>'.$archive->getMimeType().'</info> (via driver <comment>'.$archive->getDriverType().'</comment>)');
31
+        $output->writeln('Contains: '.$archive->countFiles().' file'.($archive->countFiles() > 1 ? 's' : null));
32 32
         $output->writeln('Size:');
33
-        $output->writeln("\t". 'uncompressed: '.implode(' ', $this->formatSize($archive->getOriginalSize(), 2)));
34
-        $output->writeln("\t" . 'compressed: ' . implode(' ', $this->formatSize($archive->getCompressedSize(), 2)));
35
-        $output->writeln("\t" . 'ratio: <info>' . round($archive->getOriginalSize() / $archive->getCompressedSize(), 6) . '/1 (' . floor($archive->getCompressedSize() / $archive->getOriginalSize() * 100) . '%</info>)');
33
+        $output->writeln("\t".'uncompressed: '.implode(' ', $this->formatSize($archive->getOriginalSize(), 2)));
34
+        $output->writeln("\t".'compressed: '.implode(' ', $this->formatSize($archive->getCompressedSize(), 2)));
35
+        $output->writeln("\t".'ratio: <info>'.round($archive->getOriginalSize() / $archive->getCompressedSize(), 6).'/1 ('.floor($archive->getCompressedSize() / $archive->getOriginalSize() * 100).'%</info>)');
36 36
         if (!empty($comment = $archive->getComment()))
37
-            $output->writeln('Comment: <comment>' . $comment . '</comment>');
37
+            $output->writeln('Comment: <comment>'.$comment.'</comment>');
38 38
 
39 39
         return 0;
40 40
     }
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,9 @@
 block discarded – undo
33 33
         $output->writeln("\t". 'uncompressed: '.implode(' ', $this->formatSize($archive->getOriginalSize(), 2)));
34 34
         $output->writeln("\t" . 'compressed: ' . implode(' ', $this->formatSize($archive->getCompressedSize(), 2)));
35 35
         $output->writeln("\t" . 'ratio: <info>' . round($archive->getOriginalSize() / $archive->getCompressedSize(), 6) . '/1 (' . floor($archive->getCompressedSize() / $archive->getOriginalSize() * 100) . '%</info>)');
36
-        if (!empty($comment = $archive->getComment()))
37
-            $output->writeln('Comment: <comment>' . $comment . '</comment>');
36
+        if (!empty($comment = $archive->getComment())) {
37
+                    $output->writeln('Comment: <comment>' . $comment . '</comment>');
38
+        }
38 39
 
39 40
         return 0;
40 41
     }
Please login to merge, or discard this patch.
src/Commands/ExtractFilesCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         $entry_selector = $input->getArgument('entrySelector');
34 34
 
35 35
         $archive->extractFiles($output_dir, $entry_selector, true);
36
-        $output->writeln('<info>Extracted:</info> ' . implode(', ', $entry_selector) . ' (' . count($entry_selector) . ') file(s)');
36
+        $output->writeln('<info>Extracted:</info> '.implode(', ', $entry_selector).' ('.count($entry_selector).') file(s)');
37 37
 
38 38
         return 0;
39 39
     }
Please login to merge, or discard this patch.
src/Commands/DeleteFileCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         list($archive, $file) = $this->getArchiveAndFile($input, $output);
34 34
 
35 35
         $archive->deleteFiles($file);
36
-        $output->writeln('<comment>- file "' . $file . '"</comment>');
36
+        $output->writeln('<comment>- file "'.$file.'"</comment>');
37 37
 
38 38
         return 0;
39 39
     }
Please login to merge, or discard this patch.
src/Commands/ExtractFileCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,14 +27,14 @@
 block discarded – undo
27 27
         list($archive, $file) = $this->getArchiveAndFile($input, $output);
28 28
         $destination = $input->getArgument('destination');
29 29
         if (is_dir($destination)) {
30
-            $destination = $destination . '/' . basename($file);
30
+            $destination = $destination.'/'.basename($file);
31 31
         }
32 32
 
33 33
         $overwrite = $input->getOption('overwrite');
34 34
 
35 35
         if (file_exists($destination) && !$overwrite) {
36 36
             if ($input->getOption('no-interaction')) {
37
-                throw new \LogicException('File destination ' . $destination . ' exists');
37
+                throw new \LogicException('File destination '.$destination.' exists');
38 38
             }
39 39
         }
40 40
 
Please login to merge, or discard this patch.
src/ArchiveEntry.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,9 @@
 block discarded – undo
46 46
         $this->compressedSize = $compressedSize;
47 47
         $this->uncompressedSize = $uncompressedSize;
48 48
         $this->modificationTime = $modificationTime;
49
-        if ($isCompressed === null)
50
-            $isCompressed = $uncompressedSize !== $compressedSize;
49
+        if ($isCompressed === null) {
50
+                    $isCompressed = $uncompressedSize !== $compressedSize;
51
+        }
51 52
         $this->isCompressed = $isCompressed;
52 53
         $this->comment = $comment;
53 54
         $this->crc32 = $crc32;
Please login to merge, or discard this patch.
src/Commands/TestCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@
 block discarded – undo
28 28
             $output->writeln('<info>Archive is ok!</info>');
29 29
         } else {
30 30
             $output->writeln('<error>Failed:</error>:');
31
-            array_walk($test_result, static function ($file) use ($output) {
32
-                $output->writeln('- ' . $file);
31
+            array_walk($test_result, static function($file) use ($output) {
32
+                $output->writeln('- '.$file);
33 33
             });
34 34
         }
35 35
         return 0;
Please login to merge, or discard this patch.