Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrutinizer Auto-Fixes #27

Merged
merged 1 commit into from
Apr 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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