Passed
Push — master ( 61dfc6...246672 )
by Dmitrii
02:48
created
Tests/TestKernel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,11 +41,11 @@
 block discarded – undo
41 41
 
42 42
     public function getLogDir()
43 43
     {
44
-        return sys_get_temp_dir().'/KarserRecaptcha3Bundle/log';
44
+        return sys_get_temp_dir() . '/KarserRecaptcha3Bundle/log';
45 45
     }
46 46
 
47 47
     public function getCacheDir()
48 48
     {
49
-        return sys_get_temp_dir().'/KarserRecaptcha3Bundle/cache/'.$this->environment;
49
+        return sys_get_temp_dir() . '/KarserRecaptcha3Bundle/cache/' . $this->environment;
50 50
     }
51 51
 }
Please login to merge, or discard this patch.
Tests/FunctionalTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@
 block discarded – undo
172 172
 
173 173
     private function bootKernel(string $config): ContainerInterface
174 174
     {
175
-        $this->kernel->setConfigurationFilename(__DIR__ . '/fixtures/config/'.$config);
175
+        $this->kernel->setConfigurationFilename(__DIR__ . '/fixtures/config/' . $config);
176 176
         $this->kernel->boot();
177 177
         $container = $this->kernel->getContainer();
178 178
         $this->formFactory = $container->get('form.factory');
Please login to merge, or discard this patch.
DependencyInjection/KarserRecaptcha3Extension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,10 +12,10 @@
 block discarded – undo
12 12
 {
13 13
     public function loadInternal(array $configs, ContainerBuilder $container)
14 14
     {
15
-        $loader = new Loader\PhpFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
15
+        $loader = new Loader\PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
16 16
         $loader->load('services.php');
17 17
         foreach ($configs as $key => $value) {
18
-            $container->setParameter('karser_recaptcha3.'.$key, $value);
18
+            $container->setParameter('karser_recaptcha3.' . $key, $value);
19 19
         }
20 20
     }
21 21
 
Please login to merge, or discard this patch.
Tests/Validator/Constraints/Recaptcha3ValidatorTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         $this->validator->validate($testToken, new Recaptcha3(['message' => 'myMessage']));
62 62
 
63 63
         $this->buildViolation('myMessage')
64
-            ->setParameter('{{ value }}', '"'.$testToken.'"')
64
+            ->setParameter('{{ value }}', '"' . $testToken . '"')
65 65
             ->setParameter('{{ errorCodes }}', '"test1; test2"')
66 66
             ->setCode(Recaptcha3::INVALID_FORMAT_ERROR)
67 67
             ->assertRaised();
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         $this->validator->validate($testToken, new Recaptcha3(['messageMissingValue' => 'messageMissingValue']));
84 84
 
85 85
         $this->buildViolation('messageMissingValue')
86
-            ->setParameter('{{ value }}', '"'.$testToken.'"')
86
+            ->setParameter('{{ value }}', '"' . $testToken . '"')
87 87
             ->setParameter('{{ errorCodes }}', '""')
88 88
             ->setCode(Recaptcha3::INVALID_FORMAT_ERROR)
89 89
             ->assertRaised();
Please login to merge, or discard this patch.
Resources/config/services.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
12 12
 use Symfony\Component\DependencyInjection\Loader\Configurator\ReferenceConfigurator;
13 13
 
14
-return static function (ContainerConfigurator $containerConfigurator): void {
14
+return static function(ContainerConfigurator $containerConfigurator): void {
15 15
     $services = $containerConfigurator->services();
16 16
 
17 17
     $services->set('karser_recaptcha3.form.type', Recaptcha3Type::class)
Please login to merge, or discard this patch.