@@ -22,7 +22,7 @@ |
||
22 | 22 | $configuration = new Configuration(); |
23 | 23 | $config = $this->processConfiguration($configuration, $configs); |
24 | 24 | |
25 | - $loader = new Loader\PhpFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
25 | + $loader = new Loader\PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
26 | 26 | $loader->load('services.php'); |
27 | 27 | |
28 | 28 | $container->setParameter('wanna_speak.api.account_id', $config['api']['credentials']['account_id']); |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | |
5 | 5 | use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; |
6 | 6 | |
7 | -return static function (ContainerConfigurator $containerConfigurator): void { |
|
7 | +return static function(ContainerConfigurator $containerConfigurator): void { |
|
8 | 8 | $services = $containerConfigurator->services(); |
9 | 9 | |
10 | 10 | $services->defaults() |
@@ -12,12 +12,12 @@ discard block |
||
12 | 12 | ->autowire() |
13 | 13 | ->autoconfigure(); |
14 | 14 | |
15 | - $services->load('Yproximite\WannaSpeakBundle\\', __DIR__.'/../..') |
|
15 | + $services->load('Yproximite\WannaSpeakBundle\\', __DIR__ . '/../..') |
|
16 | 16 | ->exclude([ |
17 | - __DIR__.'/../../DependencyInjection', |
|
18 | - __DIR__.'/../../Exception', |
|
19 | - __DIR__.'/../../Resources', |
|
20 | - __DIR__.'/../../WannaSpeakBundle.php', |
|
17 | + __DIR__ . '/../../DependencyInjection', |
|
18 | + __DIR__ . '/../../Exception', |
|
19 | + __DIR__ . '/../../Resources', |
|
20 | + __DIR__ . '/../../WannaSpeakBundle.php', |
|
21 | 21 | ]); |
22 | 22 | |
23 | 23 | $services->get(\Yproximite\WannaSpeakBundle\HttpClient::class) |
@@ -283,7 +283,7 @@ |
||
283 | 283 | { |
284 | 284 | $fieldsAllFound = false; |
285 | 285 | |
286 | - $client = $this->createHttpClient(static function (string $method, string $url, array $options) use (&$fieldsAllFound) { |
|
286 | + $client = $this->createHttpClient(static function(string $method, string $url, array $options) use (&$fieldsAllFound) { |
|
287 | 287 | $body = ''; |
288 | 288 | while ($part = $options['body']()) { |
289 | 289 | $body .= $part; |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | ]); |
74 | 74 | |
75 | 75 | // Prevent FormDataPart to throw when encountering a non-string value |
76 | - $fields = array_reduce(array_keys($fields), function (array $acc, string $fieldKey) use ($fields) { |
|
76 | + $fields = array_reduce(array_keys($fields), function(array $acc, string $fieldKey) use ($fields) { |
|
77 | 77 | $fieldValue = $fields[$fieldKey]; |
78 | 78 | |
79 | 79 | if (true === $fieldValue) { |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | { |
104 | 104 | $timeStamp = time(); |
105 | 105 | |
106 | - return $timeStamp.'-'.md5($this->accountId.$timeStamp.$this->secretKey); |
|
106 | + return $timeStamp . '-' . md5($this->accountId . $timeStamp . $this->secretKey); |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | /** |