@@ -4,7 +4,7 @@ |
||
| 4 | 4 | use Symfony\Component\Debug\Debug; |
| 5 | 5 | use Symfony\Component\HttpFoundation\Request; |
| 6 | 6 | |
| 7 | -require __DIR__ . '/../../vendor/autoload.php'; |
|
| 7 | +require __DIR__.'/../../vendor/autoload.php'; |
|
| 8 | 8 | |
| 9 | 9 | Debug::enable(); |
| 10 | 10 | require_once __DIR__.'/../app/AppKernel.php'; |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | new \Twig_SimpleFunction('psi_render_object', null, [ |
| 21 | 21 | 'node_class' => RenderObjectNode::class, |
| 22 | 22 | ], [ |
| 23 | - 'is_safe' => ['html'], |
|
| 23 | + 'is_safe' => [ 'html' ], |
|
| 24 | 24 | ]), |
| 25 | 25 | ]; |
| 26 | 26 | } |
@@ -25,14 +25,14 @@ |
||
| 25 | 25 | } |
| 26 | 26 | $objectArg = $args->getNode(0); |
| 27 | 27 | $compiler |
| 28 | - ->write('$this->loadTemplate(') |
|
| 29 | - ->write('$this->env->getExtension("Psi\Bundle\ObjectRender\Twig\ObjectRenderExtension")->locateFile(') |
|
| 30 | - ->subcompile($objectArg) |
|
| 31 | - ->raw('), ') |
|
| 32 | - ->repr($this->getAttribute('name')) |
|
| 33 | - ->raw(', ') |
|
| 34 | - ->repr($this->getLine()) |
|
| 35 | - ->raw(')'); |
|
| 28 | + ->write('$this->loadTemplate(') |
|
| 29 | + ->write('$this->env->getExtension("Psi\Bundle\ObjectRender\Twig\ObjectRenderExtension")->locateFile(') |
|
| 30 | + ->subcompile($objectArg) |
|
| 31 | + ->raw('), ') |
|
| 32 | + ->repr($this->getAttribute('name')) |
|
| 33 | + ->raw(', ') |
|
| 34 | + ->repr($this->getLine()) |
|
| 35 | + ->raw(')'); |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | protected function addTemplateArguments(\Twig_Compiler $compiler) |