@@ -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 | } |
@@ -11,10 +11,10 @@ |
||
| 11 | 11 | { |
| 12 | 12 | public function loadInternal(array $configs, ContainerBuilder $container) |
| 13 | 13 | { |
| 14 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 14 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 15 | 15 | $loader->load('services.yml'); |
| 16 | 16 | foreach ($configs as $key => $value) { |
| 17 | - $container->setParameter('karser_recaptcha3.'.$key, $value); |
|
| 17 | + $container->setParameter('karser_recaptcha3.' . $key, $value); |
|
| 18 | 18 | } |
| 19 | 19 | $this->injectTemplate($container); |
| 20 | 20 | } |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | $this->validator->validate($testToken, new Recaptcha3(['message' => 'myMessage'])); |
| 63 | 63 | |
| 64 | 64 | $this->buildViolation('myMessage') |
| 65 | - ->setParameter('{{ value }}', '"'.$testToken.'"') |
|
| 65 | + ->setParameter('{{ value }}', '"' . $testToken . '"') |
|
| 66 | 66 | ->setCode(Recaptcha3::INVALID_FORMAT_ERROR) |
| 67 | 67 | ->assertRaised(); |
| 68 | 68 | } |