for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of Cecil.
*
* Copyright (c) Arnaud Ligny <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Cecil\Step\Optimize;
use MatthiasMullie\Minify;
/**
* Optimize CSS files.
class Css extends AbstractOptimize
{
* {@inheritdoc}
public function getName(): string
return 'Optimizing CSS';
}
public function init(array $options): void
$this->type = 'css';
parent::init($options);
public function setProcessor(): void
public function processFile(\Symfony\Component\Finder\SplFileInfo $file): string
$minifier = new Minify\CSS($file->getPathname());
return $minifier->minify();