@@ -89,7 +89,7 @@ private function configureClients(ContainerBuilder $container, array $config)
8989 $ clients = [];
9090
9191 foreach ($ config ['clients ' ] as $ name => $ arguments ) {
92- if ($ first === null ) {
92+ if (null === $ first ) {
9393 // Save the name of the first configured client.
9494 $ first = $ name ;
9595 }
@@ -99,7 +99,7 @@ private function configureClients(ContainerBuilder $container, array $config)
9999 }
100100
101101 // If we have clients configured
102- if ($ first !== null ) {
102+ if (null !== $ first ) {
103103 // If we do not have a client named 'default'
104104 if (!isset ($ config ['clients ' ]['default ' ])) {
105105 // Alias the first client to httplug.client.default
@@ -153,6 +153,7 @@ private function configurePluginByName($name, Definition $definition, array $con
153153 ->replaceArgument (0 , new Reference ($ config ['cache_pool ' ]))
154154 ->replaceArgument (1 , new Reference ($ config ['stream_factory ' ]))
155155 ->replaceArgument (2 , $ options );
156+
156157 break ;
157158 case 'cookie ' :
158159 $ definition ->replaceArgument (0 , new Reference ($ config ['cookie_jar ' ]));
@@ -369,7 +370,7 @@ private function createUri(ContainerBuilder $container, $serviceId, $uri)
369370 private function configureAutoDiscoveryClients (ContainerBuilder $ container , array $ config )
370371 {
371372 $ httpClient = $ config ['discovery ' ]['client ' ];
372- if ($ httpClient !== ' auto ' ) {
373+ if (' auto ' !== $ httpClient ) {
373374 $ container ->removeDefinition ('httplug.auto_discovery.auto_discovered_client ' );
374375 $ container ->removeDefinition ('httplug.collector.auto_discovered_client ' );
375376
@@ -380,7 +381,7 @@ private function configureAutoDiscoveryClients(ContainerBuilder $container, arra
380381 }
381382
382383 $ asyncHttpClient = $ config ['discovery ' ]['async_client ' ];
383- if ($ asyncHttpClient !== ' auto ' ) {
384+ if (' auto ' !== $ asyncHttpClient ) {
384385 $ container ->removeDefinition ('httplug.auto_discovery.auto_discovered_async ' );
385386 $ container ->removeDefinition ('httplug.collector.auto_discovered_async ' );
386387
0 commit comments