From 2f1033ba6042e1b51a27e0506fc8729103960dd4 Mon Sep 17 00:00:00 2001 From: Scrutinizer Auto-Fixer Date: Thu, 8 Apr 2021 17:16:53 +0000 Subject: [PATCH] Scrutinizer Auto-Fixes This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com --- lib/PHPLicengine/Cache/Cache.php | 4 ++-- lib/PHPLicengine/Service/Bsd.php | 2 +- lib/PHPLicengine/Service/Campaign.php | 18 +++++++++--------- lib/PHPLicengine/Service/Custom.php | 12 ++++++------ lib/PHPLicengine/Service/Webhook.php | 2 +- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/lib/PHPLicengine/Cache/Cache.php b/lib/PHPLicengine/Cache/Cache.php index aefe52a..79784f3 100644 --- a/lib/PHPLicengine/Cache/Cache.php +++ b/lib/PHPLicengine/Cache/Cache.php @@ -28,7 +28,7 @@ class Cache { private $config; - public function __construct (array $config) + public function __construct(array $config) { $this->config = $config; } @@ -38,7 +38,7 @@ public function __construct (array $config) Whatever option you need to setup the cache type, must be passed as array to constructor. https://www.doctrine-project.org/projects/doctrine-cache/en/1.8/index.html */ - public function getCache () + public function getCache() { switch ($this->config['type']) { case 'apc': diff --git a/lib/PHPLicengine/Service/Bsd.php b/lib/PHPLicengine/Service/Bsd.php index 505c911..238675c 100644 --- a/lib/PHPLicengine/Service/Bsd.php +++ b/lib/PHPLicengine/Service/Bsd.php @@ -31,7 +31,7 @@ class Bsd { private $url; private $api; - public function __construct (ApiInterface $api) + public function __construct(ApiInterface $api) { $this->api = $api; $this->url = 'https://api-ssl.bitly.com/v4/bsds'; diff --git a/lib/PHPLicengine/Service/Campaign.php b/lib/PHPLicengine/Service/Campaign.php index c2fa98a..6c6afb3 100644 --- a/lib/PHPLicengine/Service/Campaign.php +++ b/lib/PHPLicengine/Service/Campaign.php @@ -31,7 +31,7 @@ class Campaign { private $url; private $api; - public function __construct (ApiInterface $api) + public function __construct(ApiInterface $api) { $this->api = $api; $this->url = 'https://api-ssl.bitly.com/v4'; @@ -43,7 +43,7 @@ public function __construct (ApiInterface $api) */ public function createChannel(array $params) { - return $this->api->post($this->url . '/channels', $params); + return $this->api->post($this->url.'/channels', $params); } /* @@ -52,7 +52,7 @@ public function createChannel(array $params) */ public function getChannels(array $params) { - return $this->api->get($this->url . '/channels', $params); + return $this->api->get($this->url.'/channels', $params); } /* @@ -61,7 +61,7 @@ public function getChannels(array $params) */ public function createCampaign(array $params) { - return $this->api->post($this->url . '/campaigns', $params); + return $this->api->post($this->url.'/campaigns', $params); } /* @@ -70,7 +70,7 @@ public function createCampaign(array $params) */ public function getCampaigns(array $params) { - return $this->api->get($this->url . '/campaigns', $params); + return $this->api->get($this->url.'/campaigns', $params); } /* @@ -79,7 +79,7 @@ public function getCampaigns(array $params) */ public function getCampaign(string $campaign_guid) { - return $this->api->get($this->url . '/campaigns/'.$campaign_guid); + return $this->api->get($this->url.'/campaigns/'.$campaign_guid); } /* @@ -88,7 +88,7 @@ public function getCampaign(string $campaign_guid) */ public function updateCampaign(string $campaign_guid, array $params) { - return $this->api->patch($this->url . '/campaigns/'.$campaign_guid, $params); + return $this->api->patch($this->url.'/campaigns/'.$campaign_guid, $params); } /* @@ -97,7 +97,7 @@ public function updateCampaign(string $campaign_guid, array $params) */ public function getChannel(string $channel_guid) { - return $this->api->get($this->url . '/channels/'.$channel_guid); + return $this->api->get($this->url.'/channels/'.$channel_guid); } /* @@ -106,7 +106,7 @@ public function getChannel(string $channel_guid) */ public function updateChannel(string $channel_guid, array $params) { - return $this->api->patch($this->url . '/channels/'.$channel_guid, $params); + return $this->api->patch($this->url.'/channels/'.$channel_guid, $params); } } diff --git a/lib/PHPLicengine/Service/Custom.php b/lib/PHPLicengine/Service/Custom.php index 86e7b33..d4527fd 100644 --- a/lib/PHPLicengine/Service/Custom.php +++ b/lib/PHPLicengine/Service/Custom.php @@ -26,12 +26,12 @@ use PHPLicengine\Exception\CurlException; use PHPLicengine\Api\ApiInterface; -class Custom { +class Custom { private $url; private $api; - public function __construct (ApiInterface $api) + public function __construct(ApiInterface $api) { $this->api = $api; $this->url = 'https://api-ssl.bitly.com/v4/custom_bitlinks'; @@ -43,7 +43,7 @@ public function __construct (ApiInterface $api) */ public function updateCustomBitlink(string $custom_bitlink, array $params) { - return $this->api->patch($this->url . '/'.$custom_bitlink, $params); + return $this->api->patch($this->url.'/'.$custom_bitlink, $params); } /* @@ -52,7 +52,7 @@ public function updateCustomBitlink(string $custom_bitlink, array $params) */ public function getCustomBitlink(string $custom_bitlink) { - return $this->api->get($this->url . '/'.$custom_bitlink); + return $this->api->get($this->url.'/'.$custom_bitlink); } /* @@ -70,7 +70,7 @@ public function addCustomBitlink(array $params) */ public function getCustomBitlinkMetricsByDestination(string $custom_bitlink, array $params = array()) { - return $this->api->get($this->url . '/'.$custom_bitlink.'/clicks_by_destination', $params); + return $this->api->get($this->url.'/'.$custom_bitlink.'/clicks_by_destination', $params); } /* @@ -79,7 +79,7 @@ public function getCustomBitlinkMetricsByDestination(string $custom_bitlink, arr */ public function getClicksForCustomBitlink(string $custom_bitlink, array $params = array()) { - return $this->api->get($this->url . '/'.$custom_bitlink."/clicks", $params); + return $this->api->get($this->url.'/'.$custom_bitlink."/clicks", $params); } } diff --git a/lib/PHPLicengine/Service/Webhook.php b/lib/PHPLicengine/Service/Webhook.php index a14f3c6..316f1d5 100644 --- a/lib/PHPLicengine/Service/Webhook.php +++ b/lib/PHPLicengine/Service/Webhook.php @@ -31,7 +31,7 @@ class Webhook { private $url; private $api; - public function __construct (ApiInterface $api) + public function __construct(ApiInterface $api) { $this->api = $api; $this->url = 'https://api-ssl.bitly.com/v4/webhooks';