Skip to content

Commit 6faad63

Browse files
committed
Simplify code thanks to new options API
1 parent acf4c39 commit 6faad63

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/JsPhpize/JsPhpizePhug.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@ public function __construct(ModuleContainerInterface $container)
4545
//Apply options from container
4646
$this->setOptionsRecursive($compiler->getOption(['module_options', 'jsphpize']));
4747

48-
$formatter = $compiler->getFormatter();
49-
$formatter->setOptionsRecursive([
48+
$compiler->setOptionsRecursive([
5049
'patterns' => [
51-
'transform_expression' => function ($jsCode) use ($compiler, $formatter) {
50+
'transform_expression' => function ($jsCode) use ($compiler) {
5251

5352
/** @var JsPhpize $jsPhpize */
5453
$jsPhpize = $compiler->getOption('jsphpize_engine');

0 commit comments

Comments
 (0)