Skip to content

Commit 19f93da

Browse files
author
Eugene Matvejev
authored
Merge pull request #20 from eugene-matvejev/rc1-php5
RC3 - improve messages and cleanup
2 parents b0c5e26 + d348090 commit 19f93da

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

src/Processor/Processor.php

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ public function saveOutput()
103103

104104
$directory = dirname($path);
105105
if (!is_dir($dir = $directory)) {
106-
$this->io->write("creating directory: {$directory}");
106+
$this->io->write("<info>creating directory</info>: {$directory}");
107107
mkdir($directory, 0755, true);
108108
}
109109

110-
$this->io->write("creating output: {$path}");
110+
$this->io->write("<info>save output into</info>: {$path}");
111111
file_put_contents($path, $content);
112112
}
113113
}
@@ -130,22 +130,9 @@ public function processFiles($formatter)
130130
default:
131131
throw new \InvalidArgumentException('available options are: xxx');
132132
}
133-
// -f=format Set the output format, includes "default", "compressed"
134-
135-
// switch ($formatter) {
136-
// case 'compressed':
137-
// case 'crunched':
138-
// case 'expanded':
139-
// case 'nested':
140-
// case 'compact':
141-
// $formatter = 'Leafo\\ScssPhp\\Formatter\\' . ucfirst($formatter);
142-
// break;
143-
// default:
144-
// throw new \InvalidArgumentException('available options are: xxx');
145-
// }
146133

147134
foreach ($this->files as $file) {
148-
$this->io->write("processing file: {$file->getSourcePath()}");
135+
$this->io->write("<info>processing</info>: {$file->getSourcePath()}");
149136
$file->setSourceContentFromSourcePath();
150137

151138
switch ($file->getType()) {

0 commit comments

Comments
 (0)