Skip to content

Commit

Permalink
QA
Browse files Browse the repository at this point in the history
  • Loading branch information
weakbit committed Jul 10, 2023
1 parent 87f0e30 commit b08d6e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Classes/EventListener/RenderedEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,15 @@

class RenderedEventListener
{
protected MinifyService $minifyService;

public function __construct(MinifyService $minifyService)
public function __construct(protected MinifyService $minifyService)
{
$this->minifyService = $minifyService;
}

public function __invoke(RenderedEvent $event): void
{
$html = $event->getHtml();
$html = $this->minifyService->minify($html);

$event->setHtml($html);
}
}
3 changes: 2 additions & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use PLUS\GrumPHPConfig\RectorSettings;
use Rector\Config\RectorConfig;
use Rector\Caching\ValueObject\Storage\FileCacheStorage;
use Rector\Privatization\Rector\Class_\FinalizeClassesWithoutChildrenRector;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->parallel();
Expand All @@ -31,7 +32,7 @@
[
...RectorSettings::skip(),
...RectorSettings::skipTypo3(),

FinalizeClassesWithoutChildrenRector::class,
/**
* rector should not touch these files
*/
Expand Down

0 comments on commit b08d6e5

Please sign in to comment.