Skip to content

Commit

Permalink
Merge pull request #15 from phplicengine/scrutinizer-patch-3
Browse files Browse the repository at this point in the history
Scrutinizer Auto-Fixes
  • Loading branch information
phplicengine authored Jan 10, 2021
2 parents 92ac773 + af9c28f commit bf15b8b
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions lib/PHPLicengine/Service/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Group {
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/groups';
Expand All @@ -43,7 +43,7 @@ public function __construct (ApiInterface $api)
*/
public function getGroupTags(string $group_guid)
{
return $this->api->get($this->url . '/'.$group_guid.'/tags');
return $this->api->get($this->url.'/'.$group_guid.'/tags');
}

/*
Expand All @@ -52,7 +52,7 @@ public function getGroupTags(string $group_guid)
*/
public function getGroupMetricsByReferringNetworks(string $group_guid)
{
return $this->api->get($this->url . '/'.$group_guid.'/referring_networks');
return $this->api->get($this->url.'/'.$group_guid.'/referring_networks');
}

/*
Expand All @@ -61,7 +61,7 @@ public function getGroupMetricsByReferringNetworks(string $group_guid)
*/
public function getGroupShortenCounts(string $group_guid)
{
return $this->api->get($this->url . '/'.$group_guid.'/shorten_counts');
return $this->api->get($this->url.'/'.$group_guid.'/shorten_counts');
}

/*
Expand All @@ -79,7 +79,7 @@ public function getGroups(array $params = array())
*/
public function getGroupPreferences(string $group_guid)
{
return $this->api->get($this->url . '/'.$group_guid.'/preferences');
return $this->api->get($this->url.'/'.$group_guid.'/preferences');
}

/*
Expand All @@ -88,7 +88,7 @@ public function getGroupPreferences(string $group_guid)
*/
public function updateGroupPreferences(string $group_guid, array $params)
{
return $this->api->patch($this->url . '/'.$group_guid.'/preferences', $params);
return $this->api->patch($this->url.'/'.$group_guid.'/preferences', $params);
}

/*
Expand All @@ -97,7 +97,7 @@ public function updateGroupPreferences(string $group_guid, array $params)
*/
public function getBitlinksByGroup(string $group_guid, array $params = array())
{
return $this->api->get($this->url . '/'.$group_guid.'/bitlinks', $params);
return $this->api->get($this->url.'/'.$group_guid.'/bitlinks', $params);
}

/*
Expand All @@ -106,7 +106,7 @@ public function getBitlinksByGroup(string $group_guid, array $params = array())
*/
public function getGroupMetricsByCountries(string $group_guid)
{
return $this->api->get($this->url . '/'.$group_guid.'/countries');
return $this->api->get($this->url.'/'.$group_guid.'/countries');
}

/*
Expand All @@ -115,7 +115,7 @@ public function getGroupMetricsByCountries(string $group_guid)
*/
public function getSortedBitlinks(string $group_guid, array $params = array(), string $sort = 'clicks')
{
return $this->api->get($this->url . '/'.$group_guid.'/bitlinks/'.$sort, $params);
return $this->api->get($this->url.'/'.$group_guid.'/bitlinks/'.$sort, $params);
}

/*
Expand All @@ -124,7 +124,7 @@ public function getSortedBitlinks(string $group_guid, array $params = array(), s
*/
public function updateGroup(string $group_guid, array $params)
{
return $this->api->patch($this->url . '/'.$group_guid, $params);
return $this->api->patch($this->url.'/'.$group_guid, $params);
}

/*
Expand All @@ -133,7 +133,7 @@ public function updateGroup(string $group_guid, array $params)
*/
public function getGroup(string $group_guid)
{
return $this->api->get($this->url . '/'.$group_guid);
return $this->api->get($this->url.'/'.$group_guid);
}

/*
Expand All @@ -142,7 +142,7 @@ public function getGroup(string $group_guid)
*/
public function deleteGroup(string $group_guid)
{
return $this->api->delete($this->url . '/'.$group_guid);
return $this->api->delete($this->url.'/'.$group_guid);
}

/*
Expand All @@ -151,7 +151,7 @@ public function deleteGroup(string $group_guid)
*/
public function getGroupMetricsByCities(string $group_guid, array $params = array())
{
return $this->api->get($this->url . '/'.$group_guid."/cities", $params);
return $this->api->get($this->url.'/'.$group_guid."/cities", $params);
}

/*
Expand All @@ -160,7 +160,7 @@ public function getGroupMetricsByCities(string $group_guid, array $params = arra
*/
public function getGroupMetricsByDevices(string $group_guid, array $params = array())
{
return $this->api->get($this->url . '/'.$group_guid."/devices", $params);
return $this->api->get($this->url.'/'.$group_guid."/devices", $params);
}

}

0 comments on commit bf15b8b

Please sign in to comment.