10000 Merge pull request #42 from eugene-matvejev/cleanup · learn-symfony/css-compiler@8e03dd4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8e03dd4

Browse files
author
Eugene Matvejev
authored
Merge pull request #42 from eugene-matvejev/cleanup
RC5 - cleanup
2 parents d226728 + c58ff67 commit 8e03dd4

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/Processor/Processor.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ class Processor
3939
* @var LESSCompiler
4040
*/
4141
private $less;
42-
/**
43-
* @var CompassCompiler
44-
*/
45-
private $compass;
4642

4743
public function __construct(IOInterface $io)
4844
{
@@ -55,7 +51,7 @@ protected function initCompilers()
5551
$this->less = new LESSCompiler();
5652
$this->sass = new SASSCompiler();
5753
/** attaches compass functionality to the SASS compiler */
58-
$this->compass = new CompassCompiler($this->sass);
54+
new CompassCompiler($this->sass);
5955
}
6056

6157
/**
@@ -103,9 +99,8 @@ public function concatOutput()
10399
public function saveOutput()
104100
{
105101
foreach ($this->concatOutput() as $path => $content) {
106-
107102
$directory = dirname($path);
108-
if (!is_dir($dir = $directory)) {
103+
if (!is_dir($directory)) {
109104
$this->io->write("<info>creating directory</info>: {$directory}");
110105
mkdir($directory, 0755, true);
111106
}

0 commit comments

Comments
 (0)
0