@@ -5,8 +5,8 @@ |
||
5 | 5 | use Symfony\Component\Config\Definition\Builder\NodeBuilder; |
6 | 6 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
7 | 7 | |
8 | -interface CaptchaConfigurator |
|
9 | -{ |
|
8 | +interface CaptchaConfigurator |
|
9 | +{ |
|
10 | 10 | public function buildConfiguration(NodeBuilder $node); |
11 | 11 | |
12 | 12 | public function configureClient(ContainerBuilder $container, $clientServiceKey, array $options = []); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | { |
17 | 17 | $cache = []; |
18 | 18 | |
19 | - return preg_replace_callback('/{\s*([A-Za-z_\-\.0-9]+)\s*}/', function (array $matches) use ($request, $response, $error, &$cache) { |
|
19 | + return preg_replace_callback('/{\s*([A-Za-z_\-\.0-9]+)\s*}/', function(array $matches) use ($request, $response, $error, &$cache) { |
|
20 | 20 | |
21 | 21 | if (isset($cache[$matches[1]])) { |
22 | 22 | return $cache[$matches[1]]; |
@@ -39,7 +39,7 @@ |
||
39 | 39 | { |
40 | 40 | return $handler($request, $options)->then(function(ResponseInterface $response) use ($request) { |
41 | 41 | $code = (int)floor(intval($response->getStatusCode()) / 100); |
42 | - if($code === 2) { |
|
42 | + if ($code === 2) { |
|
43 | 43 | $this->adapter->save($request, $response); |
44 | 44 | } |
45 | 45 |