@@ -113,8 +113,4 @@ |
||
| 113 | 113 | */ |
| 114 | 114 | public function checkNullUsernameException() |
| 115 | 115 | { |
| 116 | - if ($this->checkEmptyGithubUsername($this->username)) { |
|
| 117 | - throw EvangelistStatusException::createEvangelistStatusException("Username is Empty, please provide a GitHub valid username"); |
|
| 118 | - } |
|
| 119 | - } |
|
| 120 | -} |
|
| 116 | + if ($this->checkEmptyGithubUsername($this->username |
|
| 121 | 117 | \ No newline at end of file |
@@ -113,8 +113,4 @@ |
||
| 113 | 113 | */ |
| 114 | 114 | public function checkNullUsernameException() |
| 115 | 115 | { |
| 116 | - if ($this->checkEmptyGithubUsername($this->username)) { |
|
| 117 | - throw EvangelistStatusException::createEvangelistStatusException("Username is Empty, please provide a GitHub valid username"); |
|
| 118 | - } |
|
| 119 | - } |
|
| 120 | -} |
|
| 116 | + if ($this->checkEmptyGithubUsername($this->username |
|
| 121 | 117 | \ No newline at end of file |
@@ -113,8 +113,4 @@ |
||
| 113 | 113 | */ |
| 114 | 114 | public function checkNullUsernameException() |
| 115 | 115 | { |
| 116 | - if ($this->checkEmptyGithubUsername($this->username)) { |
|
| 117 | - throw EvangelistStatusException::createEvangelistStatusException("Username is Empty, please provide a GitHub valid username"); |
|
| 118 | - } |
|
| 119 | - } |
|
| 120 | -} |
|
| 116 | + if ($this->checkEmptyGithubUsername($this->username |
|
| 121 | 117 | \ No newline at end of file |
@@ -113,8 +113,4 @@ |
||
| 113 | 113 | */ |
| 114 | 114 | public function checkNullUsernameException() |
| 115 | 115 | { |
| 116 | - if ($this->checkEmptyGithubUsername($this->username)) { |
|
| 117 | - throw EvangelistStatusException::createEvangelistStatusException("Username is Empty, please provide a GitHub valid username"); |
|
| 118 | - } |
|
| 119 | - } |
|
| 120 | -} |
|
| 116 | + if ($this->checkEmptyGithubUsername($this->username |
|
| 121 | 117 | \ No newline at end of file |
@@ -33,14 +33,14 @@ 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 | -<<<<<<< HEAD |
|
| 43 | +<< << <<< HEAD |
|
| 44 | 44 | |
| 45 | 45 | ======= |
| 46 | 46 | |
@@ -113,8 +113,4 @@ discard block |
||
| 113 | 113 | */ |
| 114 | 114 | public function checkNullUsernameException() |
| 115 | 115 | { |
| 116 | - if ($this->checkEmptyGithubUsername($this->username)) { |
|
| 117 | - throw EvangelistStatusException::createEvangelistStatusException("Username is Empty, please provide a GitHub valid username"); |
|
| 118 | - } |
|
| 119 | - } |
|
| 120 | -} |
|
| 116 | + if ($this->checkEmptyGithubUsername($this->username |
|
| 121 | 117 | \ No newline at end of file |
@@ -113,8 +113,4 @@ |
||
| 113 | 113 | */ |
| 114 | 114 | public function checkNullUsernameException() |
| 115 | 115 | { |
| 116 | - if ($this->checkEmptyGithubUsername($this->username)) { |
|
| 117 | - throw EvangelistStatusException::createEvangelistStatusException("Username is Empty, please provide a GitHub valid username"); |
|
| 118 | - } |
|
| 119 | - } |
|
| 120 | -} |
|
| 116 | + if ($this->checkEmptyGithubUsername($this->username |
|
| 121 | 117 | \ No newline at end of file |
@@ -113,8 +113,4 @@ |
||
| 113 | 113 | */ |
| 114 | 114 | public function checkNullUsernameException() |
| 115 | 115 | { |
| 116 | - if ($this->checkEmptyGithubUsername($this->username)) { |
|
| 117 | - throw EvangelistStatusException::createEvangelistStatusException("Username is Empty, please provide a GitHub valid username"); |
|
| 118 | - } |
|
| 119 | - } |
|
| 120 | -} |
|
| 116 | + if ($this->checkEmptyGithubUsername($this->username |
|
| 121 | 117 | \ No newline at end of file |
@@ -46,7 +46,3 @@ |
||
| 46 | 46 | } |
| 47 | 47 | } |
| 48 | 48 | <<<<<<< HEAD |
| 49 | - |
|
| 50 | -======= |
|
| 51 | ->>>>>>> 5ae30be3b2ebb67e6de8fe512888cf961febb1ad |
|
| 52 | - } |
|
@@ -46,7 +46,3 @@ |
||
| 46 | 46 | } |
| 47 | 47 | } |
| 48 | 48 | <<<<<<< HEAD |
| 49 | - |
|
| 50 | -======= |
|
| 51 | ->>>>>>> 5ae30be3b2ebb67e6de8fe512888cf961febb1ad |
|
| 52 | - } |
|
@@ -11,10 +11,10 @@ discard block |
||
| 11 | 11 | * @license <https://opensource.org/license/MIT> MIT |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | - use Laztopaz\OpenSourceEvangelistStatus\EvangelistStatusRankingInterface; |
|
| 14 | + use Laztopaz\OpenSourceEvangelistStatus\EvangelistStatusRankingInterface; |
|
| 15 | 15 | |
| 16 | - class EvangelistStatusRanking implements EvangelistStatusRankingInterface |
|
| 17 | - { |
|
| 16 | + class EvangelistStatusRanking implements EvangelistStatusRankingInterface |
|
| 17 | + { |
|
| 18 | 18 | /** |
| 19 | 19 | * This method ranks GitHub users based on the number of repositories they have |
| 20 | 20 | * @param int $noOfRepo |
@@ -22,16 +22,16 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | public static function determineEvangelistLevel($noOfRepo) |
| 24 | 24 | { |
| 25 | - if ($noOfRepo >= 5 && $noOfRepo<= 10) { |
|
| 26 | - $evangelistTypeMessage = "Damn It!!! Please make the world better, Oh Ye Prodigal Junior Evangelist"; |
|
| 27 | - } else if ($noOfRepo >= 11 && $noOfRepo <= 20) { |
|
| 28 | - $evangelistTypeMessage = "Keep Up The Good Work, I crown you Associate Evangelist"; |
|
| 29 | - } else if ($noOfRepo >= 21) { |
|
| 30 | - $evangelistTypeMessage = "Yeah, I crown you Senior Evangelist. Thanks for making the world a better place"; |
|
| 31 | - } else { |
|
| 32 | - $evangelistTypeMessage = "Fuck Off!!! Please make the world better, Oh Ye Lazy Evangelist"; |
|
| 33 | - } |
|
| 34 | - return $evangelistTypeMessage; |
|
| 25 | + if ($noOfRepo >= 5 && $noOfRepo<= 10) { |
|
| 26 | + $evangelistTypeMessage = "Damn It!!! Please make the world better, Oh Ye Prodigal Junior Evangelist"; |
|
| 27 | + } else if ($noOfRepo >= 11 && $noOfRepo <= 20) { |
|
| 28 | + $evangelistTypeMessage = "Keep Up The Good Work, I crown you Associate Evangelist"; |
|
| 29 | + } else if ($noOfRepo >= 21) { |
|
| 30 | + $evangelistTypeMessage = "Yeah, I crown you Senior Evangelist. Thanks for making the world a better place"; |
|
| 31 | + } else { |
|
| 32 | + $evangelistTypeMessage = "Fuck Off!!! Please make the world better, Oh Ye Lazy Evangelist"; |
|
| 33 | + } |
|
| 34 | + return $evangelistTypeMessage; |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /** |
@@ -46,7 +46,3 @@ discard block |
||
| 46 | 46 | } |
| 47 | 47 | } |
| 48 | 48 | <<<<<<< HEAD |
| 49 | - |
|
| 50 | -======= |
|
| 51 | ->>>>>>> 5ae30be3b2ebb67e6de8fe512888cf961febb1ad |
|
| 52 | - } |
|
@@ -46,7 +46,3 @@ |
||
| 46 | 46 | } |
| 47 | 47 | } |
| 48 | 48 | <<<<<<< HEAD |
| 49 | - |
|
| 50 | -======= |
|
| 51 | ->>>>>>> 5ae30be3b2ebb67e6de8fe512888cf961febb1ad |
|
| 52 | - } |
|
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | public static function determineEvangelistLevel($noOfRepo) |
| 24 | 24 | { |
| 25 | - if ($noOfRepo >= 5 && $noOfRepo<= 10) { |
|
| 25 | + if ($noOfRepo >= 5 && $noOfRepo <= 10) { |
|
| 26 | 26 | $evangelistTypeMessage = "Damn It!!! Please make the world better, Oh Ye Prodigal Junior Evangelist"; |
| 27 | 27 | } else if ($noOfRepo >= 11 && $noOfRepo <= 20) { |
| 28 | 28 | $evangelistTypeMessage = "Keep Up The Good Work, I crown you Associate Evangelist"; |
@@ -45,8 +45,4 @@ discard block |
||
| 45 | 45 | return true; |
| 46 | 46 | } |
| 47 | 47 | } |
| 48 | -<<<<<<< HEAD |
|
| 49 | - |
|
| 50 | -======= |
|
| 51 | ->>>>>>> 5ae30be3b2ebb67e6de8fe512888cf961febb1ad |
|
| 52 | - } |
|
| 48 | +<< << <<< HEAD |
|
@@ -46,7 +46,3 @@ |
||
| 46 | 46 | } |
| 47 | 47 | } |
| 48 | 48 | <<<<<<< HEAD |
| 49 | - |
|
| 50 | -======= |
|
| 51 | ->>>>>>> 5ae30be3b2ebb67e6de8fe512888cf961febb1ad |
|
| 52 | - } |
|
@@ -46,7 +46,3 @@ |
||
| 46 | 46 | } |
| 47 | 47 | } |
| 48 | 48 | <<<<<<< HEAD |
| 49 | - |
|
| 50 | -======= |
|
| 51 | ->>>>>>> 5ae30be3b2ebb67e6de8fe512888cf961febb1ad |
|
| 52 | - } |
|