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 #26

Closed
wants to merge 1 commit into from
Closed
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
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);
}

}