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
|
@@ 368-374 (lines=7) @@
|
| 365 |
|
break; |
| 366 |
|
} |
| 367 |
|
} else { |
| 368 |
|
if (!in_array($this->minifier, $this->minifiers, true) |
| 369 |
|
&& !is_callable(strtr($this->minifier, '-', '_')) |
| 370 |
|
) { |
| 371 |
|
$message = sprintf('Invalid minifier %s!', $this->minifier); |
| 372 |
|
|
| 373 |
|
return Result::error($this, $message); |
| 374 |
|
} |
| 375 |
|
$minifier = $this->minifier; |
| 376 |
|
} |
| 377 |
|
|