@@ -20,10 +20,10 @@ |
||
| 20 | 20 | |
| 21 | 21 | private function loadTwig() |
| 22 | 22 | { |
| 23 | - $this['psi_content_type.view.twig.renderer'] = function ($container) { |
|
| 23 | + $this['psi_content_type.view.twig.renderer'] = function($container) { |
|
| 24 | 24 | return new TwigRenderer($container['twig']); |
| 25 | 25 | }; |
| 26 | - $this['twig'] = function ($container) { |
|
| 26 | + $this['twig'] = function($container) { |
|
| 27 | 27 | $twig = new \Twig_Environment(new \Twig_Loader_Filesystem(__DIR__ . '/../../templates'), [ |
| 28 | 28 | 'debug' => true, |
| 29 | 29 | 'strict_variables' => true, |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use Psi\Component\ContentType\Standard\View\ObjectType; |
| 8 | 8 | use Psi\Component\ContentType\Standard\View\ScalarType; |
| 9 | 9 | use Psi\Component\ContentType\Tests\Functional\Example\Model\Article; |
| 10 | -use Psi\Component\ContentType\View\View; |
|
| 11 | 10 | |
| 12 | 11 | class TwigRendererTest extends TestCase |
| 13 | 12 | { |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Psi\Component\ContentType\Standard\Field; |
| 6 | 6 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | public function configureOptions(FieldOptionsResolver $options) |
| 32 | 32 | { |
| 33 | 33 | $options->setDefault('tag', null); |
| 34 | - $options->setViewMapper(function (array $options) { |
|
| 34 | + $options->setViewMapper(function(array $options) { |
|
| 35 | 35 | return [ |
| 36 | 36 | 'tag' => $options['tag'], |
| 37 | 37 | ]; |