Skip to content

Commit

Permalink
Merge pull request #27 from phplicengine/scrutinizer-patch-4
Browse files Browse the repository at this point in the history
Scrutinizer Auto-Fixes
  • Loading branch information
phplicengine committed Apr 8, 2021
2 parents 8bcecd5 + 2f1033b commit 9000f3f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions lib/PHPLicengine/Cache/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Cache {

private $config;

public function __construct (array $config)
public function __construct(array $config)
{
$this->config = $config;
}
Expand All @@ -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':
Expand Down
2 changes: 1 addition & 1 deletion lib/PHPLicengine/Service/Bsd.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
18 changes: 9 additions & 9 deletions lib/PHPLicengine/Service/Campaign.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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);
}

/*
Expand All @@ -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);
}

/*
Expand All @@ -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);
}

/*
Expand All @@ -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);
}

/*
Expand All @@ -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);
}

/*
Expand All @@ -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);
}

/*
Expand All @@ -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);
}

/*
Expand All @@ -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);
}

}
12 changes: 6 additions & 6 deletions lib/PHPLicengine/Service/Custom.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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);
}

/*
Expand All @@ -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);
}

/*
Expand All @@ -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);
}

/*
Expand All @@ -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);
}

}
2 changes: 1 addition & 1 deletion lib/PHPLicengine/Service/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 9000f3f

Please sign in to comment.