Passed
Push — master ( 0e4814...71cb2a )
by Sérgio Danilo
02:47 queued 01:22
created
example/several-files.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@  discard block
 block discarded – undo
7 7
 
8 8
 $zipper = new Zipper();
9 9
 
10
-$fileOne = __DIR__."/assets/files/example-file.txt";
11
-$fileTwo = __DIR__."/assets/files/example-file-two.txt";
10
+$fileOne = __DIR__ . "/assets/files/example-file.txt";
11
+$fileTwo = __DIR__ . "/assets/files/example-file-two.txt";
12 12
 
13 13
 $files = [
14 14
     $fileOne,
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 ];
17 17
 
18 18
 //Here I'll set a new folder that not exists yet.
19
-$path = __DIR__."/assets/files/ZipperFiles";
19
+$path = __DIR__ . "/assets/files/ZipperFiles";
20 20
 
21 21
 $several = $zipper->zipFiles($files, "MadeWithZipper", $path);
22 22
 
Please login to merge, or discard this patch.
example/extract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,6 +12,6 @@
 block discarded – undo
12 12
 //Here I'll set a new folder that not exists yet. But You can set a existent folder.
13 13
 $destiny = __DIR__ . "/assets/files/Storage";
14 14
 
15
-$extracted = $zipper->extract($fileToExtract,$destiny);
15
+$extracted = $zipper->extract($fileToExtract, $destiny);
16 16
 
17 17
 echo $extracted;
Please login to merge, or discard this patch.
example/single-file.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 
8 8
 $zipper = new Zipper();
9 9
 
10
-$fileExample = __DIR__."/assets/files/example-file.txt";
10
+$fileExample = __DIR__ . "/assets/files/example-file.txt";
11 11
 
12 12
 $single = $zipper->zipFile($fileExample);
13 13
 
Please login to merge, or discard this patch.
src/Zipper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@
 block discarded – undo
204 204
     public function setFileName($file): string
205 205
     {
206 206
         $dataFile = $this->dataFile($file);
207
-        $filename = $this->dataFile($file)->filename . "-" . (string)time();
207
+        $filename = $this->dataFile($file)->filename . "-" . (string) time();
208 208
         return $filename;
209 209
     }
210 210
 
Please login to merge, or discard this patch.