Passed
Push — master ( 6f30dc...d012e1 )
by Stanislau
02:52
created
tests/Unit/Business/Loader/TemplateLoaderTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
tests/Unit/Business/Loader/ExtensionLoaderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/Unit/Business/Environment/EnvironmentFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/TwigPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/TwigFacade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.