src/Task/Assets/CssPreprocessor.php 1 location
|
@@ 163-169 (lines=7) @@
|
160 |
|
*/ |
161 |
|
public function run() |
162 |
|
{ |
163 |
|
if (!in_array($this->compiler, $this->compilers, true) |
164 |
|
&& !is_callable($this->compiler) |
165 |
|
) { |
166 |
|
$message = sprintf('Invalid ' . static::FORMAT_NAME . ' compiler %s!', $this->compiler); |
167 |
|
|
168 |
|
return Result::error($this, $message); |
169 |
|
} |
170 |
|
|
171 |
|
foreach ($this->files as $in => $out) { |
172 |
|
if (!file_exists($in)) { |
src/Task/Assets/ImageMinify.php 1 location
|
@@ 365-371 (lines=7) @@
|
362 |
|
break; |
363 |
|
} |
364 |
|
} else { |
365 |
|
if (!in_array($this->minifier, $this->minifiers, true) |
366 |
|
&& !is_callable(strtr($this->minifier, '-', '_')) |
367 |
|
) { |
368 |
|
$message = sprintf('Invalid minifier %s!', $this->minifier); |
369 |
|
|
370 |
|
return Result::error($this, $message); |
371 |
|
} |
372 |
|
$minifier = $this->minifier; |
373 |
|
} |
374 |
|
|