diff --git a/includes/utilities.php b/includes/utilities.php index bec977f..36dfa4a 100644 --- a/includes/utilities.php +++ b/includes/utilities.php @@ -75,7 +75,7 @@ function executeApiCall($apiEndpoint, $apiKey) { $response = curl_exec($ch); if (curl_errno($ch)) { - throw new CurlErrorException('cURL error: ' . curl_error($ch)); + throw new CurlErrorException("cURL error: " . curl_error($ch)); } curl_close($ch); @@ -83,7 +83,7 @@ function executeApiCall($apiEndpoint, $apiKey) { $responseData = json_decode($response, true); if (json_last_error() !== JSON_ERROR_NONE) { - throw new JsonDataException('Failed to decode JSON response: ' . json_last_error_msg()); + throw new JsonDataException("Failed to decode JSON response: " . json_last_error_msg()); } return $responseData; @@ -249,16 +249,3 @@ function getSign($number) { return '$'; } - -/** - * Print a variable to the console for debugging purposes. - * - * @param mixed $data The data to print to the console. - * - * @return void - */ -function consoleLog( $data ) { - echo ''; -}