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.
Passed
Push — master ( a9751c...65544b )
by Ash
02:52
created
src/APAnalytics.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
         $model = $this->namespace.studly_case(str_singular($collection)).'Analytic';
63 63
 
64
-        if (! class_exists($model)) {
64
+        if (!class_exists($model)) {
65 65
             throw new InvalidArgumentException("Model {$model} does not exist.");
66 66
         }
67 67
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
                 $intervalFormat = '%Y-%m';
101 101
             }
102 102
 
103
-            $aggregate[] =  [
103
+            $aggregate[] = [
104 104
                 '$group' => [
105 105
                     '_id' => [
106 106
                         '$dateToString' => ['date' => '$created_at', 'format' => $intervalFormat]
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             ];
126 126
         }
127 127
 
128
-        $data = $model::raw(function ($collection) use ($matchArray, $interval, $aggregate) {
128
+        $data = $model::raw(function($collection) use ($matchArray, $interval, $aggregate) {
129 129
             if ($interval == 'count') {
130 130
                 return $collection->count($matchArray);
131 131
             }
@@ -147,11 +147,11 @@  discard block
 block discarded – undo
147 147
      */
148 148
     private function toModels($data, $model = null)
149 149
     {
150
-        if (! $model) {
150
+        if (!$model) {
151 151
             $model = '\Jenssegers\Mongodb\Eloquent\Model';
152 152
         }
153 153
 
154
-        if (! class_exists($model)) {
154
+        if (!class_exists($model)) {
155 155
             throw new InvalidArgumentException("Model {$model} does not exist.");
156 156
         }
157 157
 
Please login to merge, or discard this patch.