Passed
Push — master ( 3fb6e3...48681f )
by f
41:38 queued 26:41
created
src/Drivers/Iso.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -136,11 +136,11 @@  discard block
 block discarded – undo
136 136
                     $this->files[$file->Location] = $directory.$file->strd_FileId;
137 137
                     $this->filesSize += $file->DataLen;
138 138
 
139
-                    $this->filesData[$directory . $file->strd_FileId] =
139
+                    $this->filesData[$directory.$file->strd_FileId] =
140 140
                         [
141 141
                             'size' => $file->DataLen,
142 142
                             'mtime' =>
143
-                                strtotime((string)$file->isoRecDate),
143
+                                strtotime((string) $file->isoRecDate),
144 144
                         ];
145 145
                 }
146 146
             }
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
     public function extractFiles($outputFolder, array $files)
243 243
     {
244 244
         foreach ($files as $file) {
245
-            $destination_file = rtrim($outputFolder, '/'). '/' . ltrim($file, '/');
245
+            $destination_file = rtrim($outputFolder, '/').'/'.ltrim($file, '/');
246 246
             $destination_dir = dirname($destination_file);
247 247
 
248 248
             if (!empty($destination_dir)) {
Please login to merge, or discard this patch.
Braces   +18 added lines, -11 removed lines patch added patch discarded remove patch
@@ -84,8 +84,9 @@  discard block
 block discarded – undo
84 84
     {
85 85
         parent::__construct($archiveFileName, $format);
86 86
         $this->open($archiveFileName);
87
-        if ($password !== null)
88
-            throw new UnsupportedOperationException('Iso archive does not support password!');
87
+        if ($password !== null) {
88
+                    throw new UnsupportedOperationException('Iso archive does not support password!');
89
+        }
89 90
     }
90 91
 
91 92
     /**
@@ -108,8 +109,9 @@  discard block
 block discarded – undo
108 109
 
109 110
         /** @var \CVolumeDescriptor $usedDesc */
110 111
         $usedDesc = $this->iso->GetDescriptor(SUPPLEMENTARY_VOLUME_DESC);
111
-        if (!$usedDesc)
112
-            $usedDesc = $this->iso->GetDescriptor(PRIMARY_VOLUME_DESC);
112
+        if (!$usedDesc) {
113
+                    $usedDesc = $this->iso->GetDescriptor(PRIMARY_VOLUME_DESC);
114
+        }
113 115
         $this->blockSize = $usedDesc->iBlockSize;
114 116
         $directories = $usedDesc->LoadMPathTable($this->iso);
115 117
         // iterate over all directories
@@ -131,8 +133,9 @@  discard block
 block discarded – undo
131 133
             if ($files) {
132 134
                 /** @var \CFileDirDescriptors $file */
133 135
                 foreach ($files as $file) {
134
-                    if (in_array($file->strd_FileId, ['.', '..']) || $file->IsDirectory())
135
-                        continue;
136
+                    if (in_array($file->strd_FileId, ['.', '..']) || $file->IsDirectory()) {
137
+                                            continue;
138
+                    }
136 139
                     $this->files[$file->Location] = $directory.$file->strd_FileId;
137 140
                     $this->filesSize += $file->DataLen;
138 141
 
@@ -184,8 +187,9 @@  discard block
 block discarded – undo
184 187
      */
185 188
     public function getFileData($fileName)
186 189
     {
187
-        if (!isset($this->filesData[$fileName]))
188
-            return false;
190
+        if (!isset($this->filesData[$fileName])) {
191
+                    return false;
192
+        }
189 193
 
190 194
         return new ArchiveEntry(
191 195
             $fileName,
@@ -225,11 +229,14 @@  discard block
 block discarded – undo
225 229
     protected function prepareForFileExtracting($fileName)
226 230
     {
227 231
         $Location = array_search($fileName, $this->files, true);
228
-        if (!isset($this->filesData[$fileName])) return false;
232
+        if (!isset($this->filesData[$fileName])) {
233
+         return false;
234
+        }
229 235
         $data = $this->filesData[$fileName];
230 236
         $Location_Real = $Location * $this->blockSize;
231
-        if ($this->iso->Seek($Location_Real, SEEK_SET) === false)
232
-            return false;
237
+        if ($this->iso->Seek($Location_Real, SEEK_SET) === false) {
238
+                    return false;
239
+        }
233 240
         return $data;
234 241
     }
235 242
 
Please login to merge, or discard this patch.
src/Drivers/NelexaZip.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,8 +87,9 @@
 block discarded – undo
87 87
             : $this->zip->getEntries();
88 88
 
89 89
         foreach ($files as $info) {
90
-            if (method_exists($info, 'isFolder') ? $info->isFolder() : $info->isDirectory())
91
-                continue;
90
+            if (method_exists($info, 'isFolder') ? $info->isFolder() : $info->isDirectory()) {
91
+                            continue;
92
+            }
92 93
 
93 94
             $this->files[] = $information->files[] = str_replace('\\', '/', $info->getName());
94 95
             $information->compressedFilesSize += $info->getCompressedSize();
Please login to merge, or discard this patch.