Skip to content

Commit

Permalink
Merge pull request #1 from ovac/scrutinizer-patch-1
Browse files Browse the repository at this point in the history
Scrutinizer Auto-Fixes
  • Loading branch information
ovac committed Aug 14, 2017
2 parents a2380ba + 8590be6 commit 450eb11
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Utility/HubtelHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ public function __construct(Config $config)
public function createHandler()
{
$this->pushHeaderMiddleware(
function (RequestInterface $request) {
function(RequestInterface $request) {
return $request->withHeader('User-Agent', 'OVAC-Hubtel-Payment' . $this->config->getPackageVersion());
}
);

$this->pushHeaderMiddleware(
function (RequestInterface $request) {
function(RequestInterface $request) {
return $request->withHeader(
'Authorization', 'Basic ' . base64_encode(
$this->config->getClientId() . ':' . $this->config->getClientSecret()
Expand Down Expand Up @@ -156,7 +156,7 @@ protected static function decider()
* @see http://docs.guzzlephp.org/en/stable/handlers-and-middleware.html Guzzle: Handlers and Middlewares.
*/

return function (
return function(
$retries,
RequestInterface $request,
ResponseInterface $response = null,
Expand Down Expand Up @@ -192,7 +192,7 @@ protected static function delay()
* @see http://docs.guzzlephp.org/en/stable/handlers-and-middleware.html Guzzle: Handlers and Middlewares.
*/

return function ($retries) {
return function($retries) {
return (int) pow(2, $retries) * 1000;
};
}
Expand Down

0 comments on commit 450eb11

Please sign in to comment.