File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ public function compile(Twig_Compiler $compiler)
3434 $ compiler ->addDebugInfo ($ this )
3535 ->write ("ob_start(); \n" )
3636 ->subcompile ($ this ->getNode ('body ' ))
37- ->write (sprintf ('echo $context["inlinecss"]->inlineCSS(ob_get_clean(), %s); ' . "\n" , $ css ));
37+ ->write (sprintf ('echo $context["inlinecss"]->inlineCSS(ob_get_clean(), %s); ' . "\n" , $ css ))
38+ ;
3839 } else {
3940 //get path of css
4041 $ compiler
@@ -44,7 +45,8 @@ public function compile(Twig_Compiler $compiler)
4445 ->subcompile ($ this ->getAttribute ('css ' ))
4546 ->raw (')); ' )
4647 ->subcompile ($ this ->getNode ('body ' ))
47- ->write ('echo $context["inlinecss"]->inlineCSS(ob_get_clean(), $css); ' . "\n" );
48+ ->write ('echo $context["inlinecss"]->inlineCSS(ob_get_clean(), $css); ' . "\n" )
49+ ;
4850 }
4951
5052 }
Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ public function parse(Twig_Token $token)
5656 {
5757 $ lineNo = $ token ->getLine ();
5858 $ stream = $ this ->parser ->getStream ();
59- if ($ stream ->test (Twig_Token::STRING_TYPE )){
59+ if ($ stream ->test (Twig_Token::STRING_TYPE )) {
6060 $ css = $ this ->resolvePath ($ stream ->expect (Twig_Token::STRING_TYPE )->getValue ());
61- }else {
61+ } else {
6262 $ css = $ this ->parser ->getExpressionParser ()->parseExpression ();
6363 }
6464 $ stream ->expect (Twig_Token::BLOCK_END_TYPE );
@@ -94,7 +94,7 @@ private function resolvePath($path)
9494 return $ this ->locator ->locate ($ path , $ this ->webRoot );
9595 } catch (\InvalidArgumentException $ e ) {
9696 // happens when path is not bundle relative
97- return $ this ->webRoot . '/ ' . $ path ;
97+ return $ this ->webRoot . '/ ' . $ path ;
9898 }
9999 }
100100}
You can’t perform that action at this time.
0 commit comments