diff options
author | beardyman <nornholdj@gmail.com> | 2015-10-07 15:44:44 -0400 |
---|---|---|
committer | beardyman <nornholdj@gmail.com> | 2015-10-07 15:44:44 -0400 |
commit | 63022bf7bceb6aa7116159fd347be769594fa8b4 (patch) | |
tree | a3b7e904158fe2145673a1d54676672096675a5f /lib/SparkPost/SparkPost.php | |
parent | ada533a743125008474de854a3f6bcec5c104fbe (diff) | |
download | php-sparkpost-63022bf7bceb6aa7116159fd347be769594fa8b4.zip php-sparkpost-63022bf7bceb6aa7116159fd347be769594fa8b4.tar.gz php-sparkpost-63022bf7bceb6aa7116159fd347be769594fa8b4.tar.bz2 |
removed unhittable code and removed a unit test for it. Updated code coverage filters in phpunit.xml to ignore test files because a utility function wasn't being used
Diffstat (limited to 'lib/SparkPost/SparkPost.php')
-rw-r--r-- | lib/SparkPost/SparkPost.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/SparkPost/SparkPost.php b/lib/SparkPost/SparkPost.php index b3cef5e..f88d847 100644 --- a/lib/SparkPost/SparkPost.php +++ b/lib/SparkPost/SparkPost.php @@ -61,20 +61,13 @@ class SparkPost { /** * @desc Merges passed in headers with default headers for http requests - * @return Array - headers to be set on http requests */ - public function getHttpHeaders(Array $headers = null) { + public function getHttpHeaders() { $defaultOptions = [ 'Authorization' => $this->config['key'], 'Content-Type' => 'application/json', ]; - // Merge passed in headers with defaults - if (!is_null($headers)) { - foreach ($headers as $header => $value) { - $defaultOptions[$header] = $value; - } - } return $defaultOptions; } |