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