Skip to content

Commit

Permalink
Scrutinizer Auto-Fixes
Browse files Browse the repository at this point in the history
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
  • Loading branch information
scrutinizer-auto-fixer committed Feb 23, 2020
1 parent 7a05f5d commit 17971cf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion example/extract.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
//Here I'll set a new folder that not exists yet. But You can set a existent folder.
$destiny = __DIR__ . "/assets/files/Storage";

$extracted = $zipper->extract($fileToExtract,$destiny);
$extracted = $zipper->extract($fileToExtract, $destiny);

echo $extracted;
6 changes: 3 additions & 3 deletions example/several-files.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@

$zipper = new Zipper();

$fileOne = __DIR__."/assets/files/example-file.txt";
$fileTwo = __DIR__."/assets/files/example-file-two.txt";
$fileOne = __DIR__ . "/assets/files/example-file.txt";
$fileTwo = __DIR__ . "/assets/files/example-file-two.txt";

$files = [
$fileOne,
$fileTwo
];

//Here I'll set a new folder that not exists yet.
$path = __DIR__."/assets/files/ZipperFiles";
$path = __DIR__ . "/assets/files/ZipperFiles";

$several = $zipper->zipFiles($files, "MadeWithZipper", $path);

Expand Down
2 changes: 1 addition & 1 deletion example/single-file.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

$zipper = new Zipper();

$fileExample = __DIR__."/assets/files/example-file.txt";
$fileExample = __DIR__ . "/assets/files/example-file.txt";

$single = $zipper->zipFile($fileExample);

Expand Down
2 changes: 1 addition & 1 deletion src/Zipper.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ private function destiny(string $file): string
*/
private function setFileName($file): string
{
$filename = $this->dataFile($file)->filename . "-" . (string)time();
$filename = $this->dataFile($file)->filename . "-" . (string) time();
return $filename;
}

Expand Down

0 comments on commit 17971cf

Please sign in to comment.