@@ -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 $options; |
| 36 | 36 | }); |
| 37 | 37 | } |
@@ -2,10 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Psi\Bridge\ContentType\Twig\Tests\Functional; |
| 4 | 4 | |
| 5 | -use Psi\Bridge\ContentType\Twig\ContentTypeExtension; |
|
| 6 | -use Psi\Bridge\ContentType\Twig\TwigRenderer; |
|
| 7 | -use Psi\Component\ContentType\Standard\View\ScalarView; |
|
| 8 | -use Psi\Component\ContentType\View\View; |
|
| 9 | 5 | use Psi\Component\ContentType\Standard\View\ScalarType; |
| 10 | 6 | use Psi\Component\ContentType\Standard\View\ObjectType; |
| 11 | 7 | use Psi\Component\ContentType\Standard\View\CollectionType; |
@@ -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, |