Passed
Push — 0.1.x ( 46203b...52c1e4 )
by f
02:32
created
src/CamApplication.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
         if (!empty($not_installed)) {
61 61
             echo 'Not supported archive types:'.PHP_EOL;
62
-            array_walk($not_installed, function ($instruction, $extension) {
62
+            array_walk($not_installed, function($instruction, $extension) {
63 63
                 echo '- '.$extension.': '.$instruction.PHP_EOL;
64 64
             });
65 65
         }
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
             if ($archived_files === false)
290 290
                 echo 'Error'.PHP_EOL;
291 291
             else
292
-                echo 'Created archive ' . $args['ARCHIVE'] . ' with ' . $archived_files . ' file(s) of total size ' . implode('', $this->formatSize(filesize($args['ARCHIVE']))) . PHP_EOL;
292
+                echo 'Created archive '.$args['ARCHIVE'].' with '.$archived_files.' file(s) of total size '.implode('', $this->formatSize(filesize($args['ARCHIVE']))).PHP_EOL;
293 293
         }
294 294
     }
295 295
 }
Please login to merge, or discard this patch.
src/Formats/Zip.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@
 block discarded – undo
205 205
      * @return false|int
206 206
      * @throws \Exception
207 207
      */
208
-    public static function createArchive(array $files, $archiveFileName){
208
+    public static function createArchive(array $files, $archiveFileName) {
209 209
         $zip = new ZipArchive();
210 210
         $result = $zip->open($archiveFileName, ZipArchive::CREATE);
211 211
         if ($result !== true)
Please login to merge, or discard this patch.
src/Formats/OneFileFormat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
      * @return false|int
130 130
      * @throws \wapmorgan\UnifiedArchive\UnsupportedOperationException
131 131
      */
132
-    public static function createArchive(array $files, $archiveFileName){
132
+    public static function createArchive(array $files, $archiveFileName) {
133 133
         if (count($files) > 1) return false;
134 134
         $filename = array_shift($files);
135 135
         if (is_null($filename)) return false; // invalid list
Please login to merge, or discard this patch.
src/Formats/SevenZip.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@
 block discarded – undo
35 35
         $information = new ArchiveInformation();
36 36
         foreach ($this->sevenZip->getEntries() as $entry) {
37 37
             $information->files[] = $entry->getPath();
38
-            $information->compressedFilesSize += (int)$entry->getPackedSize();
39
-            $information->uncompressedFilesSize += (int)$entry->getSize();
38
+            $information->compressedFilesSize += (int) $entry->getPackedSize();
39
+            $information->uncompressedFilesSize += (int) $entry->getSize();
40 40
         }
41 41
         return $information;
42 42
     }
Please login to merge, or discard this patch.
src/Formats/Rar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
      * @param string $archiveFileName
168 168
      * @throws \wapmorgan\UnifiedArchive\UnsupportedOperationException
169 169
      */
170
-    public static function createArchive(array $files, $archiveFileName){
170
+    public static function createArchive(array $files, $archiveFileName) {
171 171
         throw new UnsupportedOperationException();
172 172
     }
173 173
 }
174 174
\ No newline at end of file
Please login to merge, or discard this patch.
src/Formats/Lzma.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  */
10 10
 class Lzma extends OneFileFormat
11 11
 {
12
-    const FORMAT_SUFFIX =  'xz';
12
+    const FORMAT_SUFFIX = 'xz';
13 13
 
14 14
     /**
15 15
      * Lzma constructor.
Please login to merge, or discard this patch.
src/Formats/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 OneFileFormat
7 7
 {
8
-    const FORMAT_SUFFIX =  'bz2';
8
+    const FORMAT_SUFFIX = 'bz2';
9 9
 
10 10
     /**
11 11
      * Bzip constructor.
Please login to merge, or discard this patch.
src/Formats/Cab.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
      * @return false|int
169 169
      * @throws UnsupportedOperationException
170 170
      */
171
-    public static function createArchive(array $files, $archiveFileName){
171
+    public static function createArchive(array $files, $archiveFileName) {
172 172
         throw new UnsupportedOperationException();
173 173
     }
174 174
 }
175 175
\ No newline at end of file
Please login to merge, or discard this patch.
src/Formats/Tar.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
                 $compression = 'lzma2';
173 173
                 break;
174 174
             case 'z':
175
-                $tar_aname = 'compress.lzw://' . $archiveFileName;
175
+                $tar_aname = 'compress.lzw://'.$archiveFileName;
176 176
                 break;
177 177
         }
178 178
 
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
                 }
328 328
 
329 329
                 LzwStreamWrapper::registerWrapper();
330
-                $this->tar = new Archive_Tar('compress.lzw://' . $this->archiveFileName);
330
+                $this->tar = new Archive_Tar('compress.lzw://'.$this->archiveFileName);
331 331
                 break;
332 332
 
333 333
             default:
Please login to merge, or discard this patch.