From ea6fbcc8c93f0102ab08172d5ba379991f99364d Mon Sep 17 00:00:00 2001 From: Eugene Matvejev Date: Tue, 21 Jun 2016 00:31:21 +0300 Subject: [PATCH 1/2] cleanup --- src/Processor/Processor.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Processor/Processor.php b/src/Processor/Processor.php index c4f9647..1913db5 100644 --- a/src/Processor/Processor.php +++ b/src/Processor/Processor.php @@ -39,10 +39,6 @@ class Processor * @var LESSCompiler */ private $less; - /** - * @var CompassCompiler - */ - private $compass; public function __construct(IOInterface $io) { @@ -55,7 +51,7 @@ protected function initCompilers() $this->less = new LESSCompiler(); $this->sass = new SASSCompiler(); /** attaches compass functionality to the SASS compiler */ - $this->compass = new CompassCompiler($this->sass); + new CompassCompiler($this->sass); } /** From c58ff67092782d6fe02ac8ccf30400dfcdfecfcf Mon Sep 17 00:00:00 2001 From: Eugene Matvejev Date: Tue, 21 Jun 2016 00:34:24 +0300 Subject: [PATCH 2/2] cleanup --- src/Processor/Processor.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Processor/Processor.php b/src/Processor/Processor.php index 1913db5..d7280a0 100644 --- a/src/Processor/Processor.php +++ b/src/Processor/Processor.php @@ -99,9 +99,8 @@ public function concatOutput() public function saveOutput() { foreach ($this->concatOutput() as $path => $content) { - $directory = dirname($path); - if (!is_dir($dir = $directory)) { + if (!is_dir($directory)) { $this->io->write("creating directory: {$directory}"); mkdir($directory, 0755, true); }