From 4e6e2009a39297d1ac772ab3ca1d007f456b38ed Mon Sep 17 00:00:00 2001 From: Raul Fraile Date: Mon, 1 Sep 2014 08:33:35 +0200 Subject: [PATCH] CS fixes --- README.md | 2 +- examples/extract_simple.php | 4 ++-- src/Distill/Extractor/Adapter/ZipAdapter.php | 2 +- src/Distill/Extractor/Extractor.php | 1 - 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6103b7f..353e81f 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ use Distill\Format\Zip; $extractor = new Distill(); -$file = new File(__DIR__.'/../tests/files/file_ok.zip', new Zip()); +$file = new File(__DIR__ . '/../tests/files/file_ok.zip', new Zip()); $extractor->extract($file, __DIR__ . '/extract'); ``` diff --git a/examples/extract_simple.php b/examples/extract_simple.php index 72905e1..ba59845 100644 --- a/examples/extract_simple.php +++ b/examples/extract_simple.php @@ -8,6 +8,6 @@ $extractor = new Distill(); -$file = new File(__DIR__.'/../tests/files/file_ok.zip', new Zip()); +$file = new File(__DIR__ . '/../tests/files/file_ok.zip', new Zip()); -$extractor->extract($file, __DIR__ . '/extract'); \ No newline at end of file +$extractor->extract($file, __DIR__ . '/extract'); diff --git a/src/Distill/Extractor/Adapter/ZipAdapter.php b/src/Distill/Extractor/Adapter/ZipAdapter.php index ddca01c..ac14332 100644 --- a/src/Distill/Extractor/Adapter/ZipAdapter.php +++ b/src/Distill/Extractor/Adapter/ZipAdapter.php @@ -78,7 +78,7 @@ protected function extractZipArchive(File $file, $path) return false; } - $archive = new ZipArchive; + $archive = new ZipArchive(); $archive->open($file->getPath()); $archive->extractTo($path); diff --git a/src/Distill/Extractor/Extractor.php b/src/Distill/Extractor/Extractor.php index 780a51f..97ea289 100644 --- a/src/Distill/Extractor/Extractor.php +++ b/src/Distill/Extractor/Extractor.php @@ -11,7 +11,6 @@ namespace Distill\Extractor; -use Distill\Extractor\Adapter; use Distill\File; class Extractor implements ExtractorInterface