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 ( 34e5f9...d5bb8d )
by Andrea
03:23
created
src/app/Repositories/Base.php 1 patch
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -107,8 +107,9 @@  discard block
 block discarded – undo
107 107
         $model = $this->app->make($this->model());
108 108
         //$model = app()->make($this->model());
109 109
 
110
-        if (!$model instanceof Model)
111
-            throw new RepositoryException("Class {$this->model()} must be an instance of Illuminate\\Database\\Eloquent\\Model");
110
+        if (!$model instanceof Model) {
111
+                    throw new RepositoryException("Class {$this->model()} must be an instance of Illuminate\\Database\\Eloquent\\Model");
112
+        }
112 113
 
113 114
         return $this->model = $model;
114 115
     }
@@ -143,12 +144,14 @@  discard block
 block discarded – undo
143 144
     }
144 145
 
145 146
     public function  applyCriteria() {
146
-        if($this->skipCriteria === true)
147
-            return $this;
147
+        if($this->skipCriteria === true) {
148
+                    return $this;
149
+        }
148 150
 
149 151
         foreach($this->getCriteria() as $criteria) {
150
-            if($criteria instanceof Criteria)
151
-                $this->model = $criteria->apply($this->model, $this);
152
+            if($criteria instanceof Criteria) {
153
+                            $this->model = $criteria->apply($this->model, $this);
154
+            }
152 155
         }
153 156
 
154 157
         return $this;
Please login to merge, or discard this patch.