Skip to content

Commit

Permalink
formatting & minor optimalisation for getOption
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbakker committed Jul 2, 2020
1 parent 98a72a5 commit 660bf6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,11 +369,11 @@ protected function getHttpClient()
{
if ($this->httpClient === null) {
$this->httpClient = new HttpClient([
'base_uri' => (
'base_uri' => (
($this->getOption('mode', self::MODE_LIVE) == self::MODE_LIVE) ?
self::DIRECTORY_LIVE : self::DIRECTORY_STAGING),
'curl.options'=>[
'CURLOPT_INTERFACE'=>($this->getOption('source_ip',false) !== false) ? $this->config['source_ip'] : '0.0.0.0'
'curl.options' => [
'CURLOPT_INTERFACE' => $this->getOption('source_ip', '0.0.0.0')
]
]);
}
Expand Down

0 comments on commit 660bf6b

Please sign in to comment.