@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | $soapClient->setLogger($this->logger); |
86 | 86 | $this->logger->info('Created SoapClient for ' . $this->config->getPlatformConfig()->getPlatformName()); |
87 | 87 | $this->logger->debug('Created SoapClient', ['SoapClient' => print_r($soapClient, true)]); |
88 | - $this->logger->debug('Settings', ['settings' => (array) $settings]); |
|
88 | + $this->logger->debug('Settings', ['settings' => (array)$settings]); |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | return $soapClient; |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | */ |
103 | 103 | private function createCurlClient(array $settings, Manager $manager) |
104 | 104 | { |
105 | - $settings['url'] = (string) $manager->getActiveEndpoint()->getUri(); |
|
105 | + $settings['url'] = (string)$manager->getActiveEndpoint()->getUri(); |
|
106 | 106 | |
107 | 107 | $factory = GuzzleClientFactory::build($this->config->getPlatformConfig()); |
108 | 108 | if ($this->hasLogger() === true) { |
@@ -79,10 +79,10 @@ discard block |
||
79 | 79 | |
80 | 80 | // throws an Exception when no endpoint is met |
81 | 81 | $active = $this->manager->getActiveEndpoint(); |
82 | - $this->log('Initial endpoint is ' . (string) $active->getUri(), LogLevel::INFO); |
|
82 | + $this->log('Initial endpoint is ' . (string)$active->getUri(), LogLevel::INFO); |
|
83 | 83 | |
84 | 84 | // initiate the native PHP SoapClient for fetching all the WSDL stuff |
85 | - parent::__construct((string) $active->getUri()->withQuery('wsdl'), $this->settings->toArray()); |
|
85 | + parent::__construct((string)$active->getUri()->withQuery('wsdl'), $this->settings->toArray()); |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | /** |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | { |
106 | 106 | $active = $this->manager->getActiveEndpoint(); |
107 | 107 | try { |
108 | - $response = $this->doHttpRequest($request, (string) $active->getUri(), $action); |
|
108 | + $response = $this->doHttpRequest($request, (string)$active->getUri(), $action); |
|
109 | 109 | $this->manager->updateLastConnected(); |
110 | 110 | |
111 | 111 | return $response; |
@@ -191,11 +191,11 @@ discard block |
||
191 | 191 | $requestObj = new Request($method, $location, $headers, $requestBody); |
192 | 192 | $response = $this->httpClient->send($requestObj); |
193 | 193 | // Throw a SoapFault if the response was received, but it can't be read into valid XML |
194 | - if ($response->getStatusCode() > 399 && @simplexml_load_string((string) $response->getBody()) === false) { |
|
194 | + if ($response->getStatusCode() > 399 && @simplexml_load_string((string)$response->getBody()) === false) { |
|
195 | 195 | throw new \SoapFault('Server', 'Invalid SoapResponse'); |
196 | 196 | } |
197 | 197 | |
198 | - return (string) $response->getBody(); |
|
198 | + return (string)$response->getBody(); |
|
199 | 199 | } catch (ClientException $e) { |
200 | 200 | // if a client exception is thrown, the guzzle instance, is configured to throw exceptions |
201 | 201 | $code = ($e->getResponse() !== null) ? 'Server' : 'Client.Input'; |