@@ -96,17 +96,17 @@ discard block |
||
96 | 96 | // Allowed only for Symfony 4.2+ |
97 | 97 | if (\method_exists($container, 'registerAliasForArgument')) { |
98 | 98 | if ('%eight_points_guzzle_bundle.http_client.class%' !== $options['class']) { |
99 | - $container->registerAliasForArgument($serviceName, $options['class'], $name . 'Client'); |
|
99 | + $container->registerAliasForArgument($serviceName, $options['class'], $name.'Client'); |
|
100 | 100 | } |
101 | - $container->registerAliasForArgument($serviceName, ClientInterface::class, $name . 'Client'); |
|
101 | + $container->registerAliasForArgument($serviceName, ClientInterface::class, $name.'Client'); |
|
102 | 102 | } |
103 | 103 | } |
104 | 104 | |
105 | - $clientsWithLogging = array_filter($config['clients'], function ($options) use ($logging) { |
|
105 | + $clientsWithLogging = array_filter($config['clients'], function($options) use ($logging) { |
|
106 | 106 | return $options['logging'] !== false && $logging !== false; |
107 | 107 | }); |
108 | 108 | |
109 | - if (count($clientsWithLogging)>0) { |
|
109 | + if (count($clientsWithLogging) > 0) { |
|
110 | 110 | $this->defineTwigDebugExtension($container); |
111 | 111 | $this->defineDataCollector($container, $config['slow_response_time'] / 1000); |
112 | 112 | $this->defineFormatter($container); |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | $container->setDefinition($eventServiceName, $eventService); |
135 | 135 | |
136 | 136 | // Create the event Dispatch Middleware |
137 | - $eventExpression = new Expression(sprintf("service('%s').dispatchEvent()", $eventServiceName)); |
|
137 | + $eventExpression = new Expression(sprintf("service('%s').dispatchEvent()", $eventServiceName)); |
|
138 | 138 | |
139 | 139 | $handler = new Definition(HandlerStack::class); |
140 | 140 | $handler->setFactory([HandlerStack::class, 'create']); |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | */ |
183 | 183 | private function convertLogMode($logMode) : int |
184 | 184 | { |
185 | - if ($logMode === true){ |
|
185 | + if ($logMode === true) { |
|
186 | 186 | return Logger::LOG_MODE_REQUEST_AND_RESPONSE; |
187 | 187 | } elseif ($logMode === false) { |
188 | 188 | return Logger::LOG_MODE_NONE; |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | protected function defineDataCollector(ContainerBuilder $container, float $slowResponseTime) : void |
240 | 240 | { |
241 | 241 | $dataCollectorDefinition = new Definition('%eight_points_guzzle.data_collector.class%'); |
242 | - $dataCollectorDefinition->addArgument(array_map(function ($loggerId) : Reference { |
|
242 | + $dataCollectorDefinition->addArgument(array_map(function($loggerId) : Reference { |
|
243 | 243 | return new Reference($loggerId); |
244 | 244 | }, array_keys($container->findTaggedServiceIds('eight_points_guzzle.logger')))); |
245 | 245 |