|
@@ -35,7 +35,7 @@ discard block |
|
|
block discarded – undo |
|
35
|
35
|
{ |
|
36
|
36
|
$num_args = (int) func_num_args(); // get number of arguments passed to |
|
37
|
37
|
|
|
38
|
|
- if ($num_args == 0 || $num_args > 1) { |
|
|
38
|
+ if ($num_args == 0 || $num_args > 1) { |
|
39
|
39
|
throw ArgumentCheckException::NullOfOverflowArgumentException("Argument missing: only one argument is allowed"); |
|
40
|
40
|
} |
|
41
|
41
|
$this->checkNullUsernameException(); |
|
@@ -58,7 +58,7 @@ discard block |
|
|
block discarded – undo |
|
58
|
58
|
*/ |
|
59
|
59
|
public function getGitApiData() |
|
60
|
60
|
{ |
|
61
|
|
- $this->response = $this->guzzleClient->get('https://api.github.com/users/'.$this->username.'?client_id='.$this->clientId .'&client_secret='.$this->clientSecret); |
|
|
61
|
+ $this->response = $this->guzzleClient->get('https://api.github.com/users/'.$this->username.'?client_id='.$this->clientId.'&client_secret='.$this->clientSecret); |
|
62
|
62
|
return $this->response->getBody(); |
|
63
|
63
|
} |
|
64
|
64
|
|
Please login to merge, or discard this patch.