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 ( 22e016...62eab9 )
by Temitope
02:29
created
src/Interface/EvangelistStatusRatingInterface.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -18,6 +18,7 @@
 block discarded – undo
18 18
 	/**
19 19
 	 *
20 20
 	 * This method returns the evangelist level 
21
+	 * @return string
21 22
 	 */
22 23
 	
23 24
 	public function determineEvangelistLevel();
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,12 +15,12 @@
 block discarded – undo
15 15
 
16 16
 {
17 17
 
18
-	/**
19
-	 *
20
-	 * This method returns the evangelist level 
21
-	 */
18
+    /**
19
+     *
20
+     * This method returns the evangelist level 
21
+     */
22 22
 	
23
-	public function determineEvangelistLevel();
23
+    public function determineEvangelistLevel();
24 24
 
25 25
 }
26 26
 
Please login to merge, or discard this patch.
src/EvangelistStatus.php 3 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
 
56 56
             $this->response = $this->guzzle_client->get('https://api.github.com/users/'.$this->username.'?client_id='. $this->client_id .'&client_secret='.$this->client_secret);
57 57
             return $this->response->getBody();
58
-        } 
59
-        catch (Exception $e)
58
+        } catch (Exception $e)
60 59
         {
61 60
             echo 'Caught Exception '. $e->getMessage();
62 61
         }
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 class EvangelistStatus extends Client implements EvangelistStatusInterface
23 23
 {
24 24
     private    $username;
25
-	protected  $githubApi;
25
+    protected  $githubApi;
26 26
     private $response;
27 27
 	
28 28
     public function __construct($username)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
             $this->exception_check_invalid_username->checkEmptyGithubUsername($this->username);
55 55
 
56
-            $this->response = $this->guzzle_client->get('https://api.github.com/users/'.$this->username.'?client_id='.$this->client_id .'&client_secret='.$this->client_secret);
56
+            $this->response = $this->guzzle_client->get('https://api.github.com/users/'.$this->username.'?client_id='.$this->client_id.'&client_secret='.$this->client_secret);
57 57
             return $this->response->getBody();
58 58
         } 
59 59
         catch (Exception $e)
Please login to merge, or discard this patch.
src/Interface/EvangelistStatusInterface.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,14 +24,14 @@
 block discarded – undo
24 24
      * This method returns a string depending on number of user repo on Github
25 25
      */
26 26
     
27
-	public function getStatus();
27
+    public function getStatus();
28 28
 
29
-	/**
29
+    /**
30 30
      * 
31 31
      * This method returns number of the user repo on Github
32 32
      */
33 33
     
34
-	public function getNumberOfRepos();
34
+    public function getNumberOfRepos();
35 35
 
36 36
 
37 37
     /**
Please login to merge, or discard this patch.
src/Ranking/EvangelistStatusRanking.php 3 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -10,12 +10,12 @@  discard block
 block discarded – undo
10 10
  * @license  <https://opensource.org/license/MIT> MIT
11 11
  */
12 12
 
13
- use Laztopaz\OpenSourceEvangelistStatus\EvangelistStatusRankingInterface;
13
+    use Laztopaz\OpenSourceEvangelistStatus\EvangelistStatusRankingInterface;
14 14
 
15 15
 
16
- class EvangelistStatusRanking implements EvangelistStatusRankingInterface
17
- {
18
- 	private $evangelistTypeMessage;
16
+    class EvangelistStatusRanking implements EvangelistStatusRankingInterface
17
+    {
18
+        private $evangelistTypeMessage;
19 19
 
20 20
     /**
21 21
      *
@@ -33,24 +33,24 @@  discard block
 block discarded – undo
33 33
             return false;
34 34
         }
35 35
 
36
-    	if($noOfRepo >= 5 && $noOfRepo<= 10){
36
+        if($noOfRepo >= 5 && $noOfRepo<= 10){
37 37
 
38
-    		$this->evangelistTypeMessage = "Damn It!!! Please make the world better, Oh Ye Prodigal Junior Evangelist";
38
+            $this->evangelistTypeMessage = "Damn It!!! Please make the world better, Oh Ye Prodigal Junior Evangelist";
39 39
 
40
-    	} else if($noOfRepo >= 11 && $noOfRepo <= 20){
40
+        } else if($noOfRepo >= 11 && $noOfRepo <= 20){
41 41
 
42
-    		$this->evangelistTypeMessage = "Keep Up The Good Work, I crown you Associate Evangelist";
42
+            $this->evangelistTypeMessage = "Keep Up The Good Work, I crown you Associate Evangelist";
43 43
 
44
-    	} else if($noOfRepo >= 21){
44
+        } else if($noOfRepo >= 21){
45 45
 
46
-    		$this->evangelistTypeMessage = "Yeah, I crown you Senior Evangelist. Thanks for making the world a better place";
46
+            $this->evangelistTypeMessage = "Yeah, I crown you Senior Evangelist. Thanks for making the world a better place";
47 47
 
48
-    	}else{
48
+        }else{
49 49
 
50 50
             $this->evangelistTypeMessage = "Fuck Off!!! Please make the world better, Oh Ye Lazy Evangelist";
51 51
         }
52 52
 
53
-    	return $this->evangelistTypeMessage;
53
+        return $this->evangelistTypeMessage;
54 54
     }
55 55
 
56
- }
57 56
\ No newline at end of file
57
+    }
58 58
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,24 +28,24 @@
 block discarded – undo
28 28
 
29 29
     public function determineEvangelistLevel($noOfRepo)
30 30
     {
31
-        if($noOfRepo == "")
31
+        if ($noOfRepo == "")
32 32
         {
33 33
             return false;
34 34
         }
35 35
 
36
-    	if($noOfRepo >= 5 && $noOfRepo<= 10){
36
+    	if ($noOfRepo >= 5 && $noOfRepo <= 10) {
37 37
 
38 38
     		$this->evangelistTypeMessage = "Damn It!!! Please make the world better, Oh Ye Prodigal Junior Evangelist";
39 39
 
40
-    	} else if($noOfRepo >= 11 && $noOfRepo <= 20){
40
+    	} else if ($noOfRepo >= 11 && $noOfRepo <= 20) {
41 41
 
42 42
     		$this->evangelistTypeMessage = "Keep Up The Good Work, I crown you Associate Evangelist";
43 43
 
44
-    	} else if($noOfRepo >= 21){
44
+    	} else if ($noOfRepo >= 21) {
45 45
 
46 46
     		$this->evangelistTypeMessage = "Yeah, I crown you Senior Evangelist. Thanks for making the world a better place";
47 47
 
48
-    	}else{
48
+    	} else {
49 49
 
50 50
             $this->evangelistTypeMessage = "Fuck Off!!! Please make the world better, Oh Ye Lazy Evangelist";
51 51
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     		$this->evangelistTypeMessage = "Keep Up The Good Work, I crown you Associate Evangelist";
38 38
     	} else if($this->numberOfRepo >= 21){
39 39
     		$this->evangelistTypeMessage = "Yeah, I crown you Senior Evangelist. Thanks for making the world a better place";
40
-    	}else{
40
+    	} else{
41 41
             $this->evangelistTypeMessage = "Fuck Off!!! Please make the world better, Oh Ye Lazy Evangelist";
42 42
         }
43 43
     	return $this->evangelistTypeMessage;
Please login to merge, or discard this patch.
src/Rating/EvangelistStatusRating.php 3 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@  discard block
 block discarded – undo
12 12
  * @license  <https://opensource.org/license/MIT> MIT
13 13
  */
14 14
 
15
- use Laztopaz\OpenSourceEvangelistStatus\EvangelistStatusRatingInterface;
15
+    use Laztopaz\OpenSourceEvangelistStatus\EvangelistStatusRatingInterface;
16 16
 
17
- class EvangelistStatusRating implements EvangelistStatusRatingInterface
18
- {
19
- 	private $evangelistTypeMessage;
17
+    class EvangelistStatusRating implements EvangelistStatusRatingInterface
18
+    {
19
+        private $evangelistTypeMessage;
20 20
     private $numberOfRepo;
21 21
 
22 22
     /**
@@ -31,16 +31,16 @@  discard block
 block discarded – undo
31 31
     {
32 32
         $this->numberOfRepo = $noOfRepo;
33 33
         
34
-    	if($this->numberOfRepo >= 5 && $this->numberOfRepo<= 10){
35
-    		$this->evangelistTypeMessage = "Damn It!!! Please make the world better, Oh Ye Prodigal Junior Evangelist";
36
-    	} else if($this->numberOfRepo >= 11 && $this->numberOfRepo <= 20){
37
-    		$this->evangelistTypeMessage = "Keep Up The Good Work, I crown you Associate Evangelist";
38
-    	} else if($this->numberOfRepo >= 21){
39
-    		$this->evangelistTypeMessage = "Yeah, I crown you Senior Evangelist. Thanks for making the world a better place";
40
-    	}else{
34
+        if($this->numberOfRepo >= 5 && $this->numberOfRepo<= 10){
35
+            $this->evangelistTypeMessage = "Damn It!!! Please make the world better, Oh Ye Prodigal Junior Evangelist";
36
+        } else if($this->numberOfRepo >= 11 && $this->numberOfRepo <= 20){
37
+            $this->evangelistTypeMessage = "Keep Up The Good Work, I crown you Associate Evangelist";
38
+        } else if($this->numberOfRepo >= 21){
39
+            $this->evangelistTypeMessage = "Yeah, I crown you Senior Evangelist. Thanks for making the world a better place";
40
+        }else{
41 41
             $this->evangelistTypeMessage = "Fuck Off!!! Please make the world better, Oh Ye Lazy Evangelist";
42 42
         }
43
-    	return $this->evangelistTypeMessage;
43
+        return $this->evangelistTypeMessage;
44 44
     }
45 45
 
46
- }
47 46
\ No newline at end of file
47
+    }
48 48
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,13 +31,13 @@
 block discarded – undo
31 31
     {
32 32
         $this->numberOfRepo = $noOfRepo;
33 33
         
34
-    	if($this->numberOfRepo >= 5 && $this->numberOfRepo<= 10){
34
+    	if ($this->numberOfRepo >= 5 && $this->numberOfRepo <= 10) {
35 35
     		$this->evangelistTypeMessage = "Damn It!!! Please make the world better, Oh Ye Prodigal Junior Evangelist";
36
-    	} else if($this->numberOfRepo >= 11 && $this->numberOfRepo <= 20){
36
+    	} else if ($this->numberOfRepo >= 11 && $this->numberOfRepo <= 20) {
37 37
     		$this->evangelistTypeMessage = "Keep Up The Good Work, I crown you Associate Evangelist";
38
-    	} else if($this->numberOfRepo >= 21){
38
+    	} else if ($this->numberOfRepo >= 21) {
39 39
     		$this->evangelistTypeMessage = "Yeah, I crown you Senior Evangelist. Thanks for making the world a better place";
40
-    	}else{
40
+    	} else {
41 41
             $this->evangelistTypeMessage = "Fuck Off!!! Please make the world better, Oh Ye Lazy Evangelist";
42 42
         }
43 43
     	return $this->evangelistTypeMessage;
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     		$this->evangelistTypeMessage = "Keep Up The Good Work, I crown you Associate Evangelist";
38 38
     	} else if($this->numberOfRepo >= 21){
39 39
     		$this->evangelistTypeMessage = "Yeah, I crown you Senior Evangelist. Thanks for making the world a better place";
40
-    	}else{
40
+    	} else{
41 41
             $this->evangelistTypeMessage = "Fuck Off!!! Please make the world better, Oh Ye Lazy Evangelist";
42 42
         }
43 43
     	return $this->evangelistTypeMessage;
Please login to merge, or discard this patch.
src/Exceptions/EvangelistStatusException.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -15,15 +15,15 @@
 block discarded – undo
15 15
 class EvangelistStatusException extends Exception
16 16
 {
17 17
     /**
18
-	 * This method checkEmptyGithubusername
19
-	 * @param String $username Github username
20
-	 *
21
-	 */
22
-	public function checkEmptyGithubUsername($username)
23
-	{
24
-		if ($username == "") 
25
-		{
26
-			throw new Exception("Invalid Github username");
27
-		}
28
-	}
18
+     * This method checkEmptyGithubusername
19
+     * @param String $username Github username
20
+     *
21
+     */
22
+    public function checkEmptyGithubUsername($username)
23
+    {
24
+        if ($username == "") 
25
+        {
26
+            throw new Exception("Invalid Github username");
27
+        }
28
+    }
29 29
 }
30 30
\ No newline at end of file
Please login to merge, or discard this patch.
src/Interface/EvangelistStatusRankingInterface.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Laztopaz\OpenSourceEvangelistStatus;
3 3
 /**
4
- *
5
- * EvangelistStatusRankingInterface  class
6
- * 
7
- * @package  Laztopaz\OpenSourceEvangelistStatus
8
- * @author   Temitope Olotin <[email protected]>
9
- * @license  <https://opensource.org/license/MIT> MIT
10
- */
4
+     *
5
+     * EvangelistStatusRankingInterface  class
6
+     * 
7
+     * @package  Laztopaz\OpenSourceEvangelistStatus
8
+     * @author   Temitope Olotin <[email protected]>
9
+     * @license  <https://opensource.org/license/MIT> MIT
10
+     */
11 11
 
12 12
 interface EvangelistStatusRankingInterface
13 13
 {
14 14
     /**
15
-	 *
16
-	 * This method returns the evangelist level 
17
-	 */
15
+     *
16
+     * This method returns the evangelist level 
17
+     */
18 18
 	
19
-	public function determineEvangelistLevel($noOfRepositories);
19
+    public function determineEvangelistLevel($noOfRepositories);
20 20
 
21 21
 }
Please login to merge, or discard this patch.