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 — master ( 4d5124...4197f7 )
by Dirk
05:39 queued 20s
created
src/Pinterest/Models/Model.php 1 patch
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.