From f4382d93a1813f9b9b9f0d15f6050ff66d0f64e0 Mon Sep 17 00:00:00 2001 From: dmzoneill Date: Wed, 2 May 2018 17:58:00 +0100 Subject: [PATCH] updates for file exist checking --- php-binance-api.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/php-binance-api.php b/php-binance-api.php index 61100b7b..c2786f23 100644 --- a/php-binance-api.php +++ b/php-binance-api.php @@ -123,7 +123,7 @@ private function setupApiConfigFromFile(string $file = null) return; } if (file_exists($file) === false) { - die( "Unable to load config from: " . $file . PHP_EOL ); + die("Unable to load config from: " . $file . PHP_EOL); } $contents = json_decode(file_get_contents($file), true); $this->api_key = isset($contents['api-key']) ? $contents['api-key'] : ""; @@ -146,7 +146,7 @@ private function setupCurlOptsFromFile(string $file = null) return; } if (file_exists($file) === false) { - die( "Unable to load config from: " . $file . PHP_EOL ); + die("Unable to load config from: " . $file . PHP_EOL); } $contents = json_decode(file_get_contents($file), true); $this->curlOpts = isset($contents['curlOpts']) && is_array($contents['curlOpts']) ? $contents['curlOpts'] : []; @@ -167,7 +167,7 @@ private function setupProxyConfigFromFile(string $file = null) return; } if (file_exists($file) === false) { - die( "Unable to load config from: " . $file . PHP_EOL ); + die("Unable to load config from: " . $file . PHP_EOL); } $contents = json_decode(file_get_contents($file), true); if (isset($contents['proto']) === false) {