Passed
Push — master ( b1d4f6...7824cd )
by f
10:25
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/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/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.
src/Commands/DetailsCommand.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -31,18 +31,18 @@
 block discarded – undo
31 31
         $detect_mimetype = $input->getOption('detect-mimetype');
32 32
 
33 33
         $details = $archive->getFileData($file);
34
-        $output->writeln('File <info>' . $file . '</info>');
34
+        $output->writeln('File <info>'.$file.'</info>');
35 35
         if ($detect_mimetype) {
36
-            $output->writeln('Mime type: <info>' . $this->getMimeTypeByStream($archive->getFileStream($file)).'</info>');
36
+            $output->writeln('Mime type: <info>'.$this->getMimeTypeByStream($archive->getFileStream($file)).'</info>');
37 37
         }
38 38
 
39 39
         $output->writeln('Size:');
40
-        $output->writeln("\t". 'uncompressed: '.implode(' ', $this->formatSize($details->uncompressedSize, 2)));
41
-        $output->writeln("\t" . 'compressed: ' . implode(' ', $this->formatSize($details->compressedSize, 2)));
42
-        $output->writeln("\t" . 'ratio: <info>' . round($details->uncompressedSize / $details->compressedSize, 6) . '/1 (' . floor($details->compressedSize / $details->uncompressedSize * 100) . '%</info>)');
43
-        $output->writeln('Modificated: ' . $this->formatDate($details->modificationTime));
40
+        $output->writeln("\t".'uncompressed: '.implode(' ', $this->formatSize($details->uncompressedSize, 2)));
41
+        $output->writeln("\t".'compressed: '.implode(' ', $this->formatSize($details->compressedSize, 2)));
42
+        $output->writeln("\t".'ratio: <info>'.round($details->uncompressedSize / $details->compressedSize, 6).'/1 ('.floor($details->compressedSize / $details->uncompressedSize * 100).'%</info>)');
43
+        $output->writeln('Modificated: '.$this->formatDate($details->modificationTime));
44 44
         if (!empty($comment = $details->comment))
45
-            $output->writeln('Comment: <comment>' . $comment . '</comment>');
45
+            $output->writeln('Comment: <comment>'.$comment.'</comment>');
46 46
 
47 47
         if (empty($input->getArgument('file'))) {
48 48
             $helper = $this->getHelper('question');
Please login to merge, or discard this patch.
src/Commands/TableCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
         }
89 89
 
90 90
         if ($sort !== null) {
91
-            usort($rows, function (array $a, array $b) use ($sort_field) {
91
+            usort($rows, function(array $a, array $b) use ($sort_field) {
92 92
                 if ($a[$sort_field] > $b[$sort_field]) {
93 93
                     return 1;
94 94
                 }
Please login to merge, or discard this patch.