@@ -33,15 +33,15 @@ discard block |
||
33 | 33 | |
34 | 34 | public function __construct($username) |
35 | 35 | { |
36 | - $this->username = $username; |
|
36 | + $this->username = $username; |
|
37 | 37 | |
38 | 38 | $num_args = (int) func_num_args(); // get number of arguments passed to |
39 | 39 | |
40 | - if ($num_args == 0 || $num_args > 1) { |
|
40 | + if ($num_args == 0 || $num_args > 1) { |
|
41 | 41 | throw ArgumentCheckException::NullOfOverflowArgumentException("Argument missing: only one argument is allowed"); |
42 | 42 | } |
43 | 43 | |
44 | - $this->username = $username; |
|
44 | + $this->username = $username; |
|
45 | 45 | |
46 | 46 | |
47 | 47 | $this->checkNullUsernameException(); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | */ |
63 | 63 | public function getGitApiData() |
64 | 64 | { |
65 | - $this->response = $this->guzzleClient->get('https://api.github.com/users/'.$this->username.'?client_id='.$this->clientId .'&client_secret='.$this->clientSecret); |
|
65 | + $this->response = $this->guzzleClient->get('https://api.github.com/users/'.$this->username.'?client_id='.$this->clientId.'&client_secret='.$this->clientSecret); |
|
66 | 66 | return $this->response->getBody(); |
67 | 67 | } |
68 | 68 |