Skip to content

Commit

Permalink
Merge pull request #21 from phplicengine/scrutinizer-patch-4
Browse files Browse the repository at this point in the history
Scrutinizer Auto-Fixes
  • Loading branch information
phplicengine committed Jan 11, 2021
2 parents b8a1cb9 + 1102c37 commit eebe376
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions lib/PHPLicengine/Service/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,40 +28,40 @@

class User {

private $url;
private $api;
private $url;
private $api;

public function __construct (ApiInterface $api)
{
$this->api = $api;
$this->url = 'https://api-ssl.bitly.com/v4/user';
}
public function __construct (ApiInterface $api)
{
$this->api = $api;
$this->url = 'https://api-ssl.bitly.com/v4/user';
}

/*
/*
Update a User
https://dev.bitly.com/api-reference#updateUser
*/
public function updateUser(array $params)
{
return $this->api->patch($this->url, $params);
}
public function updateUser(array $params)
{
return $this->api->patch($this->url, $params);
}

/*
/*
Retrieve a User
https://dev.bitly.com/api-reference#getUser
*/
public function getUser()
{
return $this->api->get($this->url);
}
public function getUser()
{
return $this->api->get($this->url);
}

/*
/*
Get Platform Limits
https://dev.bitly.com/api-reference#getPlatformLimits
*/
public function getPlatformLimits(array $params)
{
return $this->api->get($this->url."/platform_limits", $params);
}
public function getPlatformLimits(array $params)
{
return $this->api->get($this->url."/platform_limits", $params);
}

}

0 comments on commit eebe376

Please sign in to comment.