Passed
Push — master ( 96860e...392c1d )
by f
11:16
created
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/Drivers/SevenZip.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     public static function getInstallationInstruction()
109 109
     {
110 110
         if (!class_exists('\Archive7z\Archive7z'))
111
-            return 'install library [gemorroj/archive7z]: `composer require gemorroj/archive7z`' . "\n"
111
+            return 'install library [gemorroj/archive7z]: `composer require gemorroj/archive7z`'."\n"
112 112
                 . ' and console program p7zip [7za]: `apt install p7zip-full` - depends on OS';
113 113
 
114 114
         if (Archive7z::getBinaryVersion() === false)
@@ -150,8 +150,8 @@  discard block
 block discarded – undo
150 150
             $information->files[] = $can_get_unix_path
151 151
                 ? $entry->getUnixPath()
152 152
                 : str_replace('\\', '/', $entry->getPath());
153
-            $information->compressedFilesSize += (int)$entry->getPackedSize();
154
-            $information->uncompressedFilesSize += (int)$entry->getSize();
153
+            $information->compressedFilesSize += (int) $entry->getPackedSize();
154
+            $information->uncompressedFilesSize += (int) $entry->getSize();
155 155
         }
156 156
         return $information;
157 157
     }
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
     {
210 210
         $entry = $this->sevenZip->getEntry($fileName);
211 211
         if ($entry === null) {
212
-            throw new NonExistentArchiveFileException('File ' . $fileName . ' does not exist');
212
+            throw new NonExistentArchiveFileException('File '.$fileName.' does not exist');
213 213
         }
214 214
         return $entry->getContent();
215 215
     }
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.