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 ( 5fe60a...87a739 )
by Ash
02:55
created
src/Helpers.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,14 +4,14 @@  discard block
 block discarded – undo
4 4
 use Illuminate\Support\Carbon;
5 5
 use MongoDB\BSON\UTCDateTime;
6 6
 
7
-if (! function_exists('analytics')) {
7
+if (!function_exists('analytics')) {
8 8
     function analytics(): APAnalytics
9 9
     {
10 10
         return app(APAnalytics::class);
11 11
     }
12 12
 }
13 13
 
14
-if (! function_exists('trackEvent')) {
14
+if (!function_exists('trackEvent')) {
15 15
     /**
16 16
      * Access event dispatch of event tracker direct.
17 17
      * @param mixed      $event
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     }
27 27
 }
28 28
 
29
-if (! function_exists('showEvents')) {
29
+if (!function_exists('showEvents')) {
30 30
     /**
31 31
      * Access event dispatch of event tracker direct.
32 32
      * @param mixed      $event
@@ -43,14 +43,14 @@  discard block
 block discarded – undo
43 43
     }
44 44
 }
45 45
 
46
-if (! function_exists('is_countable')) {
46
+if (!function_exists('is_countable')) {
47 47
     function is_countable($c)
48 48
     {
49 49
         return is_array($c) || $c instanceof Countable;
50 50
     }
51 51
 }
52 52
 
53
-if (! function_exists('mongoTime')) {
53
+if (!function_exists('mongoTime')) {
54 54
     /**
55 55
      * Returns time in MongoDb Time.
56 56
      * @param null|mixed $time
Please login to merge, or discard this patch.
src/APAnalyticsServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
         //$this->app->register(APAnalyticsEventServiceProvider::class);
25 25
 
26
-        $this->app->singleton('apanalytics', function () {
26
+        $this->app->singleton('apanalytics', function() {
27 27
             return new APAnalytics();
28 28
         });
29 29
     }
Please login to merge, or discard this patch.
src/APAnalytics.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $aggregate      = [];
68 68
         $model          = $this->namespace.Str::studly(Str::singular($collection)).'Analytic';
69 69
 
70
-        if (! class_exists($model)) {
70
+        if (!class_exists($model)) {
71 71
             throw new InvalidArgumentException("Model {$model} does not exist.");
72 72
         }
73 73
 
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
                 $intervalFormat = '%Y-%m';
111 111
             }
112 112
 
113
-            $aggregate[] =  [
113
+            $aggregate[] = [
114 114
                 '$group' => [
115 115
                     '_id' => [
116 116
                         '$dateToString' => ['date' => '$created_at', 'format' => $intervalFormat],
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
             ];
136 136
         }
137 137
 
138
-        $data = $model::raw(function ($collection) use ($matchArray, $interval, $aggregate) {
138
+        $data = $model::raw(function($collection) use ($matchArray, $interval, $aggregate) {
139 139
             if ($interval == 'count') {
140 140
                 return $collection->count($matchArray);
141 141
             }
@@ -157,11 +157,11 @@  discard block
 block discarded – undo
157 157
      */
158 158
     private function toModels($data, $model = null)
159 159
     {
160
-        if (! $model) {
160
+        if (!$model) {
161 161
             $model = '\Jenssegers\Mongodb\Eloquent\Model';
162 162
         }
163 163
 
164
-        if (! class_exists($model)) {
164
+        if (!class_exists($model)) {
165 165
             throw new InvalidArgumentException("Model {$model} does not exist.");
166 166
         }
167 167
 
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
                 if ($modelId) {
206 206
                     $model = $modelClass::find($modelId);
207 207
 
208
-                    if ($model && ! $model->canViewAnalytic($user)) {
208
+                    if ($model && !$model->canViewAnalytic($user)) {
209 209
                         return false;
210 210
                     }
211 211
                 }
Please login to merge, or discard this patch.