@@ -50,11 +50,11 @@ discard block |
||
| 50 | 50 | public function render(): string |
| 51 | 51 | { |
| 52 | 52 | $appVariableReflection = new \ReflectionClass('\Symfony\Bridge\Twig\AppVariable'); |
| 53 | - $vendorTwigBridgeDirectory = dirname((string)$appVariableReflection->getFileName()); |
|
| 53 | + $vendorTwigBridgeDirectory = dirname((string) $appVariableReflection->getFileName()); |
|
| 54 | 54 | |
| 55 | 55 | $loader = new \Twig\Loader\FilesystemLoader([ |
| 56 | 56 | $this->getPathTemplate(), |
| 57 | - $vendorTwigBridgeDirectory . '/Resources/views/Form', |
|
| 57 | + $vendorTwigBridgeDirectory.'/Resources/views/Form', |
|
| 58 | 58 | ]); |
| 59 | 59 | |
| 60 | 60 | $twig = new \Twig\Environment($loader); |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | |
| 66 | 66 | $formEngine = new \Symfony\Bridge\Twig\Form\TwigRendererEngine(['bootstrap_4_layout.html.twig'], $twig); |
| 67 | 67 | $twig->addRuntimeLoader(new \Twig\RuntimeLoader\FactoryRuntimeLoader([ |
| 68 | - \Symfony\Component\Form\FormRenderer::class => function () use ($formEngine) { |
|
| 68 | + \Symfony\Component\Form\FormRenderer::class => function() use ($formEngine) { |
|
| 69 | 69 | return new \Symfony\Component\Form\FormRenderer($formEngine); |
| 70 | 70 | }, |
| 71 | 71 | ])); |
@@ -12,7 +12,3 @@ |
||
| 12 | 12 | $render = Input::text('foo'); |
| 13 | 13 | |
| 14 | 14 | $this->assertEquals(<<<'T' |
| 15 | -<input type="text" id="form_foo" name="form[foo]" required="required" class="form-control" /> |
|
| 16 | -T, $render); |
|
| 17 | - } |
|
| 18 | -} |
|
@@ -12,7 +12,3 @@ |
||
| 12 | 12 | $render = Input::text('foo'); |
| 13 | 13 | |
| 14 | 14 | $this->assertEquals(<<<'T' |
| 15 | -<input type="text" id="form_foo" name="form[foo]" required="required" class="form-control" /> |
|
| 16 | -T, $render); |
|
| 17 | - } |
|
| 18 | -} |
|
@@ -12,7 +12,3 @@ |
||
| 12 | 12 | $render = Input::text('foo'); |
| 13 | 13 | |
| 14 | 14 | $this->assertEquals(<<<'T' |
| 15 | -<input type="text" id="form_foo" name="form[foo]" required="required" class="form-control" /> |
|
| 16 | -T, $render); |
|
| 17 | - } |
|
| 18 | -} |
|
@@ -12,7 +12,3 @@ |
||
| 12 | 12 | $render = Input::text('foo'); |
| 13 | 13 | |
| 14 | 14 | $this->assertEquals(<<<'T' |
| 15 | -<input type="text" id="form_foo" name="form[foo]" required="required" class="form-control" /> |
|
| 16 | -T, $render); |
|
| 17 | - } |
|
| 18 | -} |
|
@@ -12,7 +12,3 @@ |
||
| 12 | 12 | $render = Input::text('foo'); |
| 13 | 13 | |
| 14 | 14 | $this->assertEquals(<<<'T' |
| 15 | -<input type="text" id="form_foo" name="form[foo]" required="required" class="form-control" /> |
|
| 16 | -T, $render); |
|
| 17 | - } |
|
| 18 | -} |
|