Skip to content

Commit 5a32dce

Browse files
committed
fix formatting
1 parent dfe266c commit 5a32dce

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Twig/InlineCssNode.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function __construct(\Twig_Node $body, $css, $lineno = 0, $debug, $tag =
2525

2626
public function compile(Twig_Compiler $compiler)
2727
{
28-
if(is_string($this->getAttribute('css'))){
28+
if (is_string($this->getAttribute('css'))) {
2929
if ($this->debug) {
3030
$css = sprintf("file_get_contents('%s')", $this->getAttribute('css'));
3131
} else {
@@ -36,7 +36,7 @@ public function compile(Twig_Compiler $compiler)
3636
->subcompile($this->getNode('body'))
3737
->write(sprintf('echo $context["inlinecss"]->inlineCSS(ob_get_clean(), %s);' . "\n", $css))
3838
;
39-
}else{
39+
} else {
4040
//get path of css
4141
$compiler
4242
->addDebugInfo($this)
@@ -45,7 +45,8 @@ public function compile(Twig_Compiler $compiler)
4545
->subcompile($this->getAttribute('css'))
4646
->raw('));')
4747
->subcompile($this->getNode('body'))
48-
->write('echo $context["inlinecss"]->inlineCSS(ob_get_clean(), $css);' . "\n");
48+
->write('echo $context["inlinecss"]->inlineCSS(ob_get_clean(), $css);' . "\n")
49+
;
4950
}
5051

5152
}

0 commit comments

Comments
 (0)