summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/SparkPost/Resource.php4
-rw-r--r--lib/SparkPost/ResourceBase.php3
-rw-r--r--lib/SparkPost/SparkPost.php18
-rw-r--r--lib/SparkPost/SparkPostException.php9
-rw-r--r--lib/SparkPost/SparkPostPromise.php3
-rw-r--r--lib/SparkPost/SparkPostResponse.php10
6 files changed, 24 insertions, 23 deletions
diff --git a/lib/SparkPost/Resource.php b/lib/SparkPost/Resource.php
index 4b3550d..84fa20f 100644
--- a/lib/SparkPost/Resource.php
+++ b/lib/SparkPost/Resource.php
@@ -3,8 +3,8 @@
namespace SparkPost;
/**
- * Class Resource
- * @package SparkPost
+ * Class Resource.
+ *
* @deprecated Soft reservations placed on name Resource (as of PHP7)
*/
class Resource extends ResourceBase
diff --git a/lib/SparkPost/ResourceBase.php b/lib/SparkPost/ResourceBase.php
index 4e11ac2..3620192 100644
--- a/lib/SparkPost/ResourceBase.php
+++ b/lib/SparkPost/ResourceBase.php
@@ -3,8 +3,7 @@
namespace SparkPost;
/**
- * Class ResourceBase
- * @package SparkPost
+ * Class ResourceBase.
*/
class ResourceBase
{
diff --git a/lib/SparkPost/SparkPost.php b/lib/SparkPost/SparkPost.php
index 8f61910..24b71bf 100644
--- a/lib/SparkPost/SparkPost.php
+++ b/lib/SparkPost/SparkPost.php
@@ -11,12 +11,12 @@ use Psr\Http\Message\RequestInterface;
class SparkPost
{
/**
- * @var string Library version, used for setting User-Agent.
+ * @var string Library version, used for setting User-Agent
*/
private $version = '2.0.3';
/**
- * @var HttpClient|HttpAsyncClient used to make requests.
+ * @var HttpClient|HttpAsyncClient used to make requests
*/
private $httpClient;
@@ -26,7 +26,7 @@ class SparkPost
private $messageFactory;
/**
- * @var array Options for requests.
+ * @var array Options for requests
*/
private $options;
@@ -40,11 +40,11 @@ class SparkPost
'key' => '',
'version' => 'v1',
'async' => true,
- 'debug' => false
+ 'debug' => false,
];
/**
- * @var Transmission Instance of Transmission class.
+ * @var Transmission Instance of Transmission class
*/
public $transmissions;
@@ -161,14 +161,15 @@ class SparkPost
'method' => $method,
'url' => $url,
'headers' => $headers,
- 'body' => $body
+ 'body' => $body,
];
}
/**
- * Build RequestInterface from given params
+ * Build RequestInterface from given params.
*
* @param array $requestValues
+ *
* @return RequestInterface
*/
public function buildRequest($method, $uri, $headers, $body)
@@ -266,9 +267,10 @@ class SparkPost
}
/**
- * Returns the given value if debugging, an empty instance otherwise
+ * Returns the given value if debugging, an empty instance otherwise.
*
* @param any $param
+ *
* @return any $param
*/
private function ifDebug($param)
diff --git a/lib/SparkPost/SparkPostException.php b/lib/SparkPost/SparkPostException.php
index ee4664c..8f06845 100644
--- a/lib/SparkPost/SparkPostException.php
+++ b/lib/SparkPost/SparkPostException.php
@@ -12,7 +12,7 @@ class SparkPostException extends \Exception
private $body = null;
/**
- * Array with the request values sent
+ * Array with the request values sent.
*/
private $request;
@@ -37,11 +37,12 @@ class SparkPostException extends \Exception
}
/**
- * Returns the request values sent
+ * Returns the request values sent.
*
- * @return Array $request
+ * @return array $request
*/
- public function getRequest() {
+ public function getRequest()
+ {
return $this->request;
}
diff --git a/lib/SparkPost/SparkPostPromise.php b/lib/SparkPost/SparkPostPromise.php
index 42187ca..6e4ef3f 100644
--- a/lib/SparkPost/SparkPostPromise.php
+++ b/lib/SparkPost/SparkPostPromise.php
@@ -3,7 +3,6 @@
namespace SparkPost;
use Http\Promise\Promise as HttpPromise;
-use Psr\Http\Message\RequestInterface as RequestInterface;
class SparkPostPromise implements HttpPromise
{
@@ -13,7 +12,7 @@ class SparkPostPromise implements HttpPromise
private $promise;
/**
- * Array with the request values sent
+ * Array with the request values sent.
*/
private $request;
diff --git a/lib/SparkPost/SparkPostResponse.php b/lib/SparkPost/SparkPostResponse.php
index ef1be92..846dff5 100644
--- a/lib/SparkPost/SparkPostResponse.php
+++ b/lib/SparkPost/SparkPostResponse.php
@@ -4,7 +4,6 @@ namespace SparkPost;
use Psr\Http\Message\ResponseInterface as ResponseInterface;
use Psr\Http\Message\StreamInterface as StreamInterface;
-use Psr\Http\Message\RequestInterface as RequestInterface;
class SparkPostResponse implements ResponseInterface
{
@@ -14,7 +13,7 @@ class SparkPostResponse implements ResponseInterface
private $response;
/**
- * Array with the request values sent
+ * Array with the request values sent.
*/
private $request;
@@ -30,11 +29,12 @@ class SparkPostResponse implements ResponseInterface
}
/**
- * Returns the request values sent
+ * Returns the request values sent.
*
- * @return Array $request
+ * @return array $request
*/
- public function getRequest() {
+ public function getRequest()
+ {
return $this->request;
}