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   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 6
Bugs 0 Features 1
Metric Value
wmc 8
c 6
b 0
f 1
lcom 0
cbo 0
dl 0
loc 36
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
B determineEvangelistLevel() 0 14 6
A checkForNullRepos() 0 7 2
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
 }