From e883d184b7b0490a3d0313b13e239d6f7661e999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sun, 28 Jun 2020 19:30:38 +0200 Subject: [PATCH] MAPG-187 refactor view parsing and linking --- src/View/Linker.php | 27 ++++++++++++--------------- src/View/Parser.php | 4 ++-- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/src/View/Linker.php b/src/View/Linker.php index b92fed3..b9e237b 100644 --- a/src/View/Linker.php +++ b/src/View/Linker.php @@ -108,7 +108,7 @@ class Linker private function generateAssets(ParsedFragment $fragment, array &$sections) { foreach ($fragment->getCss() as $cssFile) { - $asset = $this->parseAsset($cssFile, 'css'); + $asset = $this->parseAsset($cssFile); if (isset($asset['code'])) { $sections['inlineCss'] .= '