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
Branch master (19dc22)
by Dirk
03:36
created
src/Pinterest/Endpoints/Following.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -24,10 +24,10 @@  discard block
 block discarded – undo
24 24
      * @throws Exceptions/PinterestExceptions
25 25
      * @return Collection
26 26
      */
27
-    public function users( array $data = [] )
27
+    public function users(array $data = [])
28 28
     {
29
-        $response = $this->request->get( "me/following/users", $data );
30
-        return new Collection( $this->master, $response, "User" );
29
+        $response = $this->request->get("me/following/users", $data);
30
+        return new Collection($this->master, $response, "User");
31 31
     }
32 32
 
33 33
     /**
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
      * @throws Exceptions/PinterestExceptions
39 39
      * @return Collection
40 40
      */
41
-    public function boards( array $data = [] )
41
+    public function boards(array $data = [])
42 42
     {
43
-        $response = $this->request->get( "me/following/boards", $data );
44
-        return new Collection( $this->master, $response, "Board" );
43
+        $response = $this->request->get("me/following/boards", $data);
44
+        return new Collection($this->master, $response, "Board");
45 45
     }
46 46
 
47 47
     /**
@@ -52,10 +52,10 @@  discard block
 block discarded – undo
52 52
      * @throws Exceptions/PinterestExceptions
53 53
      * @return Collection
54 54
      */
55
-    public function interests( array $data = [] )
55
+    public function interests(array $data = [])
56 56
     {
57
-        $response = $this->request->get( "me/following/interests", $data );
58
-        return new Collection( $this->master, $response, "Interest" );
57
+        $response = $this->request->get("me/following/interests", $data);
58
+        return new Collection($this->master, $response, "Interest");
59 59
     }
60 60
 
61 61
     /**
@@ -66,11 +66,11 @@  discard block
 block discarded – undo
66 66
      * @throws Exceptions/PinterestExceptions
67 67
      * @return boolean
68 68
      */
69
-    public function followUser( $user )
69
+    public function followUser($user)
70 70
     {
71
-        $user = $this->request->post( "me/following/users", array(
71
+        $user = $this->request->post("me/following/users", array(
72 72
             "user"  => $user
73
-        ) );
73
+        ));
74 74
         return true;
75 75
     }
76 76
 
@@ -82,9 +82,9 @@  discard block
 block discarded – undo
82 82
      * @throws Exceptions/PinterestExceptions
83 83
      * @return boolean
84 84
      */
85
-    public function unfollowUser( $user )
85
+    public function unfollowUser($user)
86 86
     {
87
-        $user = $this->request->delete( sprintf("me/following/users/%s", $user) );
87
+        $user = $this->request->delete(sprintf("me/following/users/%s", $user));
88 88
         return true;
89 89
     }
90 90
 
@@ -96,11 +96,11 @@  discard block
 block discarded – undo
96 96
      * @throws Exceptions/PinterestExceptions
97 97
      * @return boolean
98 98
      */
99
-    public function followBoard( $board )
99
+    public function followBoard($board)
100 100
     {
101
-        $user = $this->request->post( "me/following/boards", array(
101
+        $user = $this->request->post("me/following/boards", array(
102 102
             "board"  => $board
103
-        ) );
103
+        ));
104 104
         return true;
105 105
     }
106 106
 
@@ -112,9 +112,9 @@  discard block
 block discarded – undo
112 112
      * @throws Exceptions/PinterestExceptions
113 113
      * @return boolean
114 114
      */
115
-    public function unfollowBoard( $board_id )
115
+    public function unfollowBoard($board_id)
116 116
     {
117
-        $user = $this->request->delete( sprintf("me/following/boards/%s", $board_id) );
117
+        $user = $this->request->delete(sprintf("me/following/boards/%s", $board_id));
118 118
         return true;
119 119
     }
120 120
 
@@ -126,11 +126,11 @@  discard block
 block discarded – undo
126 126
      * @throws Exceptions/PinterestExceptions
127 127
      * @return boolean
128 128
      */
129
-    public function followInterest( $interest )
129
+    public function followInterest($interest)
130 130
     {
131
-        $user = $this->request->post( "me/following/interests", array(
131
+        $user = $this->request->post("me/following/interests", array(
132 132
             "interest"  => $interest
133
-        ) );
133
+        ));
134 134
         return true;
135 135
     }
136 136
 
@@ -142,9 +142,9 @@  discard block
 block discarded – undo
142 142
      * @throws Exceptions/PinterestExceptions
143 143
      * @return boolean
144 144
      */
145
-    public function unfollowInterest( $interest_id )
145
+    public function unfollowInterest($interest_id)
146 146
     {
147
-        $user = $this->request->delete( sprintf("me/following/interests/%s", $interest_id) );
147
+        $user = $this->request->delete(sprintf("me/following/interests/%s", $interest_id));
148 148
         return true;
149 149
     }
150 150
 }
151 151
\ No newline at end of file
Please login to merge, or discard this patch.
src/Pinterest/Models/Model.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -44,15 +44,15 @@  discard block
 block discarded – undo
44 44
      * @param  array|Transport\Response     $modeldata
45 45
      * @return void
46 46
      */
47
-    public function __construct( Pinterest $master, $modeldata = null )
47
+    public function __construct(Pinterest $master, $modeldata = null)
48 48
     {   
49 49
         $this->master = $master;
50 50
 
51 51
         // Fill the model
52
-        if( is_array($modeldata) ){
52
+        if (is_array($modeldata)) {
53 53
             $this->fill($modeldata);
54 54
         }
55
-        else if( $modeldata instanceof \DirkGroenen\Pinterest\Transport\Response ){
55
+        else if ($modeldata instanceof \DirkGroenen\Pinterest\Transport\Response) {
56 56
             $this->fill($modeldata->data);    
57 57
         }
58 58
     }
@@ -80,11 +80,11 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function __set($key, $value)
82 82
     {
83
-        if($this->isFillable($key)){
83
+        if ($this->isFillable($key)) {
84 84
             $this->attributes[$key] = $value;
85 85
         }
86
-        else{
87
-            throw new PinterestException( sprintf("%s is not a fillable attribute.", $key) );
86
+        else {
87
+            throw new PinterestException(sprintf("%s is not a fillable attribute.", $key));
88 88
         }
89 89
     }
90 90
 
@@ -108,8 +108,8 @@  discard block
 block discarded – undo
108 108
      */
109 109
     private function fill(array $attributes)
110 110
     {
111
-        foreach($attributes as $key => $value){
112
-            if($this->isFillable($key)){
111
+        foreach ($attributes as $key => $value) {
112
+            if ($this->isFillable($key)) {
113 113
                 $this->attributes[$key] = $value;
114 114
             }
115 115
         }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     {
138 138
         $array = array();
139 139
         
140
-        foreach($this->fillable as $key){
140
+        foreach ($this->fillable as $key) {
141 141
             $array[$key] = $this->{$key};
142 142
         }
143 143
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@  discard block
 block discarded – undo
51 51
         // Fill the model
52 52
         if( is_array($modeldata) ){
53 53
             $this->fill($modeldata);
54
-        }
55
-        else if( $modeldata instanceof \DirkGroenen\Pinterest\Transport\Response ){
54
+        } else if( $modeldata instanceof \DirkGroenen\Pinterest\Transport\Response ){
56 55
             $this->fill($modeldata->data);    
57 56
         }
58 57
     }
@@ -82,8 +81,7 @@  discard block
 block discarded – undo
82 81
     {
83 82
         if($this->isFillable($key)){
84 83
             $this->attributes[$key] = $value;
85
-        }
86
-        else{
84
+        } else{
87 85
             throw new PinterestException( sprintf("%s is not a fillable attribute.", $key) );
88 86
         }
89 87
     }
Please login to merge, or discard this patch.
src/Pinterest/Exceptions/InvalidModelException.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php 
2 2
 /**
3
- * Copyright 2015 Dirk Groenen 
4
- *
5
- * (c) Dirk Groenen <[email protected]>
6
- * 
7
- * For the full copyright and license information, please view the LICENSE
8
- * file that was distributed with this source code.
9
- */
3
+     * Copyright 2015 Dirk Groenen 
4
+     *
5
+     * (c) Dirk Groenen <[email protected]>
6
+     * 
7
+     * For the full copyright and license information, please view the LICENSE
8
+     * file that was distributed with this source code.
9
+     */
10 10
 
11 11
 namespace DirkGroenen\Pinterest\Exceptions;
12 12
 
Please login to merge, or discard this patch.