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 ( 7d3b70...29a4aa )
by Ash
03:18
created
src/APAnalytics.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         $aggregate      = [];
69 69
         $model          = $this->namespace.Str::studly(Str::singular($collection)).'Analytic';
70 70
 
71
-        if (! class_exists($model)) {
71
+        if (!class_exists($model)) {
72 72
             throw new InvalidArgumentException("Model {$model} does not exist.");
73 73
         }
74 74
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                 $intervalFormat = '%Y-%m';
112 112
             }
113 113
 
114
-            $aggregate[] =  [
114
+            $aggregate[] = [
115 115
                 '$group' => [
116 116
                     '_id' => [
117 117
                         '$dateToString' => ['date' => '$created_at', 'format' => $intervalFormat],
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
                 $aggregate[] = ['$unwind' => '$'.Str::before($groupBy, '.')];
144 144
             }
145 145
 
146
-            $aggregate[] =  [
146
+            $aggregate[] = [
147 147
                 '$group' => [
148 148
                     '_id'   => '$'.$groupBy,
149 149
                     'count' => [
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
             ];
164 164
         }
165 165
 
166
-        $data = $model::raw(function ($collection) use ($matchArray, $interval, $aggregate, $groupBy) {
166
+        $data = $model::raw(function($collection) use ($matchArray, $interval, $aggregate, $groupBy) {
167 167
             if ($interval == 'count' && !$groupBy) {
168 168
                 return $collection->count($matchArray);
169 169
             }
@@ -185,11 +185,11 @@  discard block
 block discarded – undo
185 185
      */
186 186
     private function toModels($data, $model = null)
187 187
     {
188
-        if (! $model) {
188
+        if (!$model) {
189 189
             $model = '\Jenssegers\Mongodb\Eloquent\Model';
190 190
         }
191 191
 
192
-        if (! class_exists($model)) {
192
+        if (!class_exists($model)) {
193 193
             throw new InvalidArgumentException("Model {$model} does not exist.");
194 194
         }
195 195
 
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
                 if ($modelId) {
234 234
                     $model = $modelClass::find($modelId);
235 235
 
236
-                    if ($model && ! $model->canViewAnalytic($user)) {
236
+                    if ($model && !$model->canViewAnalytic($user)) {
237 237
                         return false;
238 238
                     }
239 239
                 }
Please login to merge, or discard this patch.