@@ -41,11 +41,11 @@ |
||
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 | } |
@@ -172,7 +172,7 @@ |
||
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'); |
@@ -12,10 +12,10 @@ |
||
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 |
@@ -11,7 +11,7 @@ |
||
11 | 11 | use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; |
12 | 12 | use function Symfony\Component\DependencyInjection\Loader\Configurator\ref; |
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) |
@@ -60,7 +60,7 @@ |
||
60 | 60 | $this->validator->validate($testToken, new Recaptcha3(['message' => 'myMessage', 'messageMissingValue' => 'myMessage'])); |
61 | 61 | |
62 | 62 | $this->buildViolation('myMessage') |
63 | - ->setParameter('{{ value }}', '"'.$testToken.'"') |
|
63 | + ->setParameter('{{ value }}', '"' . $testToken . '"') |
|
64 | 64 | ->setCode(Recaptcha3::INVALID_FORMAT_ERROR) |
65 | 65 | ->assertRaised(); |
66 | 66 | } |