Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 363-369 (lines=7) @@
360
                        break;
361
                }
362
            } else {
363
                if (!in_array($this->minifier, $this->minifiers, true)
364
                    && !is_callable(strtr($this->minifier, '-', '_'))
365
                ) {
366
                    $message = sprintf('Invalid minifier %s!', $this->minifier);
367
368
                    return Result::error($this, $message);
369
                }
370
                $minifier = $this->minifier;
371
            }
372