diff options
-rw-r--r-- | lib/SparkPost/APIResource.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/SparkPost/APIResource.php b/lib/SparkPost/APIResource.php index e946c0f..563a56e 100644 --- a/lib/SparkPost/APIResource.php +++ b/lib/SparkPost/APIResource.php @@ -198,7 +198,7 @@ class APIResource { if ($statusCode === 404) { throw new APIResponseException('The specified resource does not exist', 404); } - throw new APIResponseException('Received bad response from '.ucfirst($this->endpoint).' API: '. $statusCode ); + throw new APIResponseException('Received bad response from ' . ucfirst($this->endpoint) . ' API: '. $statusCode ); } } @@ -210,7 +210,7 @@ class APIResource { throw $exception; } - throw new APIResponseException('Unable to contact '.ucfirst($this->endpoint).' API: '. $exception->getMessage()); + throw new APIResponseException('Unable to contact ' . ucfirst($this->endpoint) . ' API: '. $exception->getMessage()); } } |