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 ( 5ae30b...6ce4b0 )
by Temitope
02:50
created

EvangelistStatusRanking::determineEvangelistLevel()   B

Complexity

Conditions 6
Paths 4

Size

Total Lines 13
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 6
Bugs 0 Features 0
Metric Value
c 6
b 0
f 0
dl 0
loc 13
rs 8.8571
cc 6
eloc 10
nc 4
nop 1
1
<?php
0 ignored issues
show
Coding Style Compatibility introduced by
For compatibility and reusability of your code, PSR1 recommends that a file should introduce either new symbols (like classes, functions, etc.) or have side-effects (like outputting something, or including other files), but not both at the same time. The first symbol is defined on line 23 and the first side effect is on line 16.

The PSR-1: Basic Coding Standard recommends that a file should either introduce new symbols, that is classes, functions, constants or similar, or have side effects. Side effects are anything that executes logic, like for example printing output, changing ini settings or writing to a file.

The idea behind this recommendation is that merely auto-loading a class should not change the state of an application. It also promotes a cleaner style of programming and makes your code less prone to errors, because the logic is not spread out all over the place.

To learn more about the PSR-1, please see the PHP-FIG site on the PSR-1.

Loading history...
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
 class EvangelistStatusRanking implements EvangelistStatusRankingInterface
0 ignored issues
show
Bug introduced by
Possible parse error: class missing opening or closing brace
Loading history...
17
 {
18
    /**
19
     * This method ranks GitHub users based on the number of repositories they have
20
     * @param  int $noOfRepo
21
     * @return String $evangelistTypeMessage
22
     */
23
    public static function determineEvangelistLevel($noOfRepo)
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;
35
    }
36
37
    /**
38
     * This method check for null repos
39
     * @param array  $arrayResponse
40
     * @return boolean
41
     */
42
    public static function checkForNullRepos($arrayResponse)
43
    {
44
        if ($arrayResponse["message"] == "Not Found") {
45
            return true;
46
        }
47
    }
48
<<<<<<< HEAD
0 ignored issues
show
Bug introduced by
This code did not parse for me. Apparently, there is an error somewhere around this line:

Syntax error, unexpected T_SL, expecting T_FUNCTION
Loading history...
49
    
50
=======
51
>>>>>>> 5ae30be3b2ebb67e6de8fe512888cf961febb1ad
52
 }
53