summaryrefslogtreecommitdiffstats
path: root/lib/SparkPost/SparkPost.php
diff options
context:
space:
mode:
authorAvi Goldman <avrahamymgoldman@gmail.com>2017-01-04 09:20:23 -0500
committerAvi Goldman <avrahamymgoldman@gmail.com>2017-01-04 09:20:23 -0500
commit0bee98bce7b94bf22906853889ee091ed50a29a2 (patch)
treee7526bae011920092aa928318749c0dae1705a37 /lib/SparkPost/SparkPost.php
parent73baa0387523238a0f3695c2851fca3e149672c0 (diff)
downloadphp-sparkpost-0bee98bce7b94bf22906853889ee091ed50a29a2.zip
php-sparkpost-0bee98bce7b94bf22906853889ee091ed50a29a2.tar.gz
php-sparkpost-0bee98bce7b94bf22906853889ee091ed50a29a2.tar.bz2
ran fix style
Diffstat (limited to 'lib/SparkPost/SparkPost.php')
-rw-r--r--lib/SparkPost/SparkPost.php18
1 files changed, 10 insertions, 8 deletions
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)