@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | { |
| 37 | 37 | $num_args = (int) func_num_args(); |
| 38 | 38 | |
| 39 | - if ($num_args == 0 || $num_args > 1) |
|
| 39 | + if ($num_args == 0 || $num_args > 1) |
|
| 40 | 40 | { |
| 41 | 41 | throw ArgumentCheckException::NullOfOverflowArgumentException("Argument missing: only one argument is allowed"); |
| 42 | 42 | } |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | */ |
| 65 | 65 | public function getGitApiData() |
| 66 | 66 | { |
| 67 | - $this->response = $this->guzzleClient->get('https://api.github.com/users/'.$this->username.'?client_id='.$this->clientId .'&client_secret='.$this->clientSecret); |
|
| 67 | + $this->response = $this->guzzleClient->get('https://api.github.com/users/'.$this->username.'?client_id='.$this->clientId.'&client_secret='.$this->clientSecret); |
|
| 68 | 68 | |
| 69 | 69 | return $this->response->getBody(); |
| 70 | 70 | } |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | { |
| 91 | 91 | $evangelistRanking = new EvangelistStatusRanking(); |
| 92 | 92 | |
| 93 | - if($evangelistRanking->checkForNullRepos($this->noOfGitRepos)) |
|
| 93 | + if ($evangelistRanking->checkForNullRepos($this->noOfGitRepos)) |
|
| 94 | 94 | { |
| 95 | 95 | throw NullNoOfReposException::createNullReposException("Empty GitHub repository"); |
| 96 | 96 | } |
@@ -15,12 +15,12 @@ |
||
| 15 | 15 | class ArgumentCheckException extends Exception |
| 16 | 16 | { |
| 17 | 17 | /** |
| 18 | - * This method return an instance of an exception |
|
| 19 | - * @param $exception |
|
| 20 | - * @return message |
|
| 21 | - */ |
|
| 22 | - public static function NullOfOverflowArgumentException($exception) |
|
| 23 | - { |
|
| 24 | - return new static($exception); |
|
| 25 | - } |
|
| 18 | + * This method return an instance of an exception |
|
| 19 | + * @param $exception |
|
| 20 | + * @return message |
|
| 21 | + */ |
|
| 22 | + public static function NullOfOverflowArgumentException($exception) |
|
| 23 | + { |
|
| 24 | + return new static($exception); |
|
| 25 | + } |
|
| 26 | 26 | } |
| 27 | 27 | \ No newline at end of file |
@@ -15,12 +15,12 @@ |
||
| 15 | 15 | class EvangelistStatusException extends Exception |
| 16 | 16 | { |
| 17 | 17 | /** |
| 18 | - * This method return an instance of an exception |
|
| 19 | - * @param message |
|
| 20 | - * @return message |
|
| 21 | - */ |
|
| 22 | - public static function createEvangelistStatusException($message) |
|
| 23 | - { |
|
| 24 | - return new static($message); |
|
| 25 | - } |
|
| 18 | + * This method return an instance of an exception |
|
| 19 | + * @param message |
|
| 20 | + * @return message |
|
| 21 | + */ |
|
| 22 | + public static function createEvangelistStatusException($message) |
|
| 23 | + { |
|
| 24 | + return new static($message); |
|
| 25 | + } |
|
| 26 | 26 | } |
| 27 | 27 | \ No newline at end of file |
@@ -15,12 +15,12 @@ |
||
| 15 | 15 | class NullNoOfReposException extends Exception |
| 16 | 16 | { |
| 17 | 17 | /** |
| 18 | - * This method return an instance of an exception |
|
| 19 | - * @param $exception |
|
| 20 | - * @return message |
|
| 21 | - */ |
|
| 22 | - public static function createNullReposException($exception) |
|
| 23 | - { |
|
| 24 | - return new static($exception); |
|
| 25 | - } |
|
| 18 | + * This method return an instance of an exception |
|
| 19 | + * @param $exception |
|
| 20 | + * @return message |
|
| 21 | + */ |
|
| 22 | + public static function createNullReposException($exception) |
|
| 23 | + { |
|
| 24 | + return new static($exception); |
|
| 25 | + } |
|
| 26 | 26 | } |
| 27 | 27 | \ No newline at end of file |
@@ -14,11 +14,11 @@ |
||
| 14 | 14 | interface EvangelistStatusRankingInterface |
| 15 | 15 | { |
| 16 | 16 | /** |
| 17 | - * This method returns the evangelist level |
|
| 18 | - * @param void |
|
| 17 | + * This method returns the evangelist level |
|
| 18 | + * @param void |
|
| 19 | 19 | * @return void |
| 20 | - */ |
|
| 20 | + */ |
|
| 21 | 21 | |
| 22 | - public function determineEvangelistLevel($noOfRepositories); |
|
| 22 | + public function determineEvangelistLevel($noOfRepositories); |
|
| 23 | 23 | |
| 24 | 24 | } |