Please note that this service is under alpha statement, we are actively working on it. It may be unstable and might completely change without warning. Help us by reporting!

nexylan/slack-bundle

Analysis #27915 FAILED

Diff

Download raw diff

diff --git a/tests/IntegrationTest.php b/tests/IntegrationTest.php
index ecd0cf024eab1d755e77ec240510c248a9016e7f..0a54561bb867d61f06a359697e8df57161563920 100644
--- a/tests/IntegrationTest.php
+++ b/tests/IntegrationTest.php
@@ -1,5 +1,16 @@
 <?php
 
+declare(strict_types=1);
+
+/*
+ * This file is part of the Nexylan packages.
+ *
+ * (c) Nexylan SAS <contact@nexylan.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
 namespace Nexy\SlackBundle\Tests;
 
 use Http\HttplugBundle\HttplugBundle;
@@ -16,7 +27,7 @@ use Symfony\Component\Routing\RouteCollectionBuilder;
 
 class IntegrationTest extends TestCase
 {
-    public function testServiceIntegration()
+    public function testServiceIntegration(): void
     {
         $kernel = new NexySlackIntegrationTestKernel();
         $kernel->boot();
@@ -42,21 +53,10 @@ abstract class AbstractNexySlackIntegrationTestKernel extends Kernel
         return [
             new FrameworkBundle(),
             new NexySlackBundle(),
-            new HttplugBundle()
+            new HttplugBundle(),
         ];
     }
 
-    protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader)
-    {
-        $container->loadFromExtension('framework', [
-            'secret' => 'foo',
-        ]);
-
-        $container->loadFromExtension('nexy_slack', [
-            'endpoint' => 'http://localhost'
-        ]);
-    }
-
     public function getCacheDir()
     {
         return sys_get_temp_dir().'/cache'.spl_object_hash($this);
@@ -66,17 +66,30 @@ abstract class AbstractNexySlackIntegrationTestKernel extends Kernel
     {
         return sys_get_temp_dir().'/logs'.spl_object_hash($this);
     }
+
+    protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void
+    {
+        $container->loadFromExtension('framework', [
+            'secret' => 'foo',
+        ]);
+
+        $container->loadFromExtension('nexy_slack', [
+            'endpoint' => 'http://localhost',
+        ]);
+    }
 }
 
 if (method_exists(AbstractNexySlackIntegrationTestKernel::class, 'configureRouting')) {
-    class NexySlackIntegrationTestKernel extends AbstractNexySlackIntegrationTestKernel {
+    class NexySlackIntegrationTestKernel extends AbstractNexySlackIntegrationTestKernel
+    {
         protected function configureRouting(RoutingConfigurator $routes): void
         {
         }
     }
 } else {
-    class NexySlackIntegrationTestKernel extends AbstractNexySlackIntegrationTestKernel {
-        protected function configureRoutes(RouteCollectionBuilder $routes)
+    class NexySlackIntegrationTestKernel extends AbstractNexySlackIntegrationTestKernel
+    {
+        protected function configureRoutes(RouteCollectionBuilder $routes): void
         {
         }
     }