@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $loader |
46 | 46 | ->expects($this->once()) |
47 | 47 | ->method('addPath') |
48 | - ->with($templatePath[0], FilesystemLoader::MAIN_NAMESPACE); |
|
48 | + ->with($templatePath[ 0 ], FilesystemLoader::MAIN_NAMESPACE); |
|
49 | 49 | |
50 | 50 | $plugin->expects($this->once())->method('getTwigNamespace')->willReturn(null); |
51 | 51 | $plugin->expects($this->once())->method('getTwigTemplatePaths')->willReturn($templatePath); |
@@ -61,8 +61,8 @@ discard block |
||
61 | 61 | public function dataProvider(): array |
62 | 62 | { |
63 | 63 | return [ |
64 | - [FilesystemLoader::class, null], |
|
65 | - [LoaderInterface::class, \InvalidArgumentException::class], |
|
64 | + [ FilesystemLoader::class, null ], |
|
65 | + [ LoaderInterface::class, \InvalidArgumentException::class ], |
|
66 | 66 | ]; |
67 | 67 | } |
68 | 68 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | ->expects($this->once()) |
44 | 44 | ->method('provideTwigExtensions') |
45 | 45 | ->willReturn(new \ArrayObject( |
46 | - [$extension] |
|
46 | + [ $extension ] |
|
47 | 47 | )); |
48 | 48 | |
49 | 49 | $loader->load($env, $objectValid); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | { |
25 | 25 | public function testCreate() |
26 | 26 | { |
27 | - $appConfig = new DefaultApplicationConfiguration([]); |
|
27 | + $appConfig = new DefaultApplicationConfiguration([ ]); |
|
28 | 28 | $pluginConfig = new TwigPluginConfiguration($appConfig); |
29 | 29 | |
30 | 30 | $envLoader = $this->createMock(LoaderProcessorInterface::class); |
@@ -40,7 +40,7 @@ |
||
40 | 40 | */ |
41 | 41 | public function provideDependencies(Container $container): void |
42 | 42 | { |
43 | - $container->register(TwigFacadeInterface::class, function ( |
|
43 | + $container->register(TwigFacadeInterface::class, function( |
|
44 | 44 | KernelInterface $kernel |
45 | 45 | ) { |
46 | 46 | $this->kernel = $kernel; |
@@ -22,7 +22,7 @@ |
||
22 | 22 | /** |
23 | 23 | * {@inheritdoc} |
24 | 24 | */ |
25 | - public function render(string $templateName, array $arguments = []): string |
|
25 | + public function render(string $templateName, array $arguments = [ ]): string |
|
26 | 26 | { |
27 | 27 | return $this->twigRendererFactory |
28 | 28 | ->create() |