@@ -22,7 +22,7 @@ |
||
| 22 | 22 | class EvangelistStatus extends Client implements EvangelistStatusInterface |
| 23 | 23 | { |
| 24 | 24 | private $username; |
| 25 | - protected $githubApi; |
|
| 25 | + protected $githubApi; |
|
| 26 | 26 | private $response; |
| 27 | 27 | |
| 28 | 28 | public function __construct($username) |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | |
| 54 | 54 | $this->exception_check_invalid_username->checkEmptyGithubUsername($this->username); |
| 55 | 55 | |
| 56 | - $this->response = $this->guzzle_client->get('https://api.github.com/users/'.$this->username.'?client_id='.$this->client_id .'&client_secret='.$this->client_secret); |
|
| 56 | + $this->response = $this->guzzle_client->get('https://api.github.com/users/'.$this->username.'?client_id='.$this->client_id.'&client_secret='.$this->client_secret); |
|
| 57 | 57 | return $this->response->getBody(); |
| 58 | 58 | } |
| 59 | 59 | catch (Exception $e) |
@@ -15,15 +15,15 @@ |
||
| 15 | 15 | class EvangelistStatusException extends Exception |
| 16 | 16 | { |
| 17 | 17 | /** |
| 18 | - * This method checkEmptyGithubusername |
|
| 19 | - * @param String $username Github username |
|
| 20 | - * |
|
| 21 | - */ |
|
| 22 | - public function checkEmptyGithubUsername($username) |
|
| 23 | - { |
|
| 24 | - if ($username == "") |
|
| 25 | - { |
|
| 26 | - throw new Exception("Invalid Github username"); |
|
| 27 | - } |
|
| 28 | - } |
|
| 18 | + * This method checkEmptyGithubusername |
|
| 19 | + * @param String $username Github username |
|
| 20 | + * |
|
| 21 | + */ |
|
| 22 | + public function checkEmptyGithubUsername($username) |
|
| 23 | + { |
|
| 24 | + if ($username == "") |
|
| 25 | + { |
|
| 26 | + throw new Exception("Invalid Github username"); |
|
| 27 | + } |
|
| 28 | + } |
|
| 29 | 29 | } |
| 30 | 30 | \ No newline at end of file |