GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — evangelist ( 224b98...e49036 )
by Temitope
02:46
created

EvangelistStatusRanking::checkForNullRepos()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 2
eloc 3
nc 2
nop 1
1
<?php
2
3
namespace Laztopaz\OpenSourceEvangelistStatus;
4
5
/**
6
 *
7
 * EvangelistStatus class
8
 * 
9
 * @package  Laztopaz\OpenSourceEvangelistStatus
10
 * @author   Temitope Olotin <[email protected]>
11
 * @license  <https://opensource.org/license/MIT> MIT
12
 */
13
14
 use Laztopaz\OpenSourceEvangelistStatus\EvangelistStatusRankingInterface;
15
16
17
 class EvangelistStatusRanking implements EvangelistStatusRankingInterface
18
 {
19
    /**
20
     * This method ranks GitHub users based on the number of repositories they have
21
     * @param  int $noOfRepo
22
     * @return String $evangelistTypeMessage
23
     */
24
    public function determineEvangelistLevel($noOfRepo)
25
    {
26
    	if ($noOfRepo >= 5 && $noOfRepo<= 10) {
27
    		$evangelistTypeMessage = "Damn It!!! Please make the world better, Oh Ye Prodigal Junior Evangelist";
28
    	} else if ($noOfRepo >= 11 && $noOfRepo <= 20) {
29
    		$evangelistTypeMessage = "Keep Up The Good Work, I crown you Associate Evangelist";
30
    	} else if ($noOfRepo >= 21) {
31
    		$evangelistTypeMessage = "Yeah, I crown you Senior Evangelist. Thanks for making the world a better place";
32
    	} else {
33
            $evangelistTypeMessage = "Fuck Off!!! Please make the world better, Oh Ye Lazy Evangelist";
34
        }
35
36
    	return $evangelistTypeMessage;
37
    }
38
39
    /**
40
     * This method check for null repos
41
     * @param int  $noOfRepo
42
     * @return boolean
43
     */
44
    public function checkForNullRepos($noOfRepo)
45
    {
46
        if ($noOfRepo == "") {
47
            return true;
48
        }
49
50
    }
51
52
 }