formatting & minor optimalisation for getOption

This commit is contained in:
peterbakker
2020-07-02 14:14:13 +02:00
parent 98a72a50ac
commit 660bf6b961

View File

@@ -373,7 +373,7 @@ class Client
($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'
'CURLOPT_INTERFACE' => $this->getOption('source_ip', '0.0.0.0')
]
]);
}