Skip to content

Commit

Permalink
Assets::saveSection() method made a bit cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
paveljanda committed Nov 22, 2017
1 parent 462a1e0 commit c78ee4d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Generator/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,7 @@ private function saveLayout(string $content, string $outputFile): void

private function saveSection(string $content, string $outputFile): void
{
$template = $content;

$this->replaceHttpAuth($template);
$this->replaceTitle($template, $content);
$this->replaceContent($template, $content);

file_put_contents($outputFile, $this->minifyHtml($template));
file_put_contents($outputFile, $this->minifyHtml($content));
}


Expand Down

0 comments on commit c78ee4d

Please sign in to comment.