diff --git a/src/Processor/Processor.php b/src/Processor/Processor.php index c4f9647..d7280a0 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); } /** @@ -103,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); }