Passed
Push — master ( ba6632...96860e )
by f
44:24 queued 29:21
created
src/Commands/ExtractArchiveCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,11 +31,11 @@
 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
         return 0;
41 41
     }
Please login to merge, or discard this patch.
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.