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 ( 446e01...94989d )
by Ash
03:08
created
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/Events/AnalyticTracked.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      */
44 44
     public function broadcastOn()
45 45
     {
46
-        $postEvent  = in_array($this->collection, config('apanalytics.format_collections'));
46
+        $postEvent = in_array($this->collection, config('apanalytics.format_collections'));
47 47
 
48 48
         if ($postEvent) {
49 49
             return new PresenceChannel("analytics.{$this->collection}.{$this->basename}.{$this->itemId}");
Please login to merge, or discard this patch.
src/Helpers.php 1 patch
Spacing   +7 added lines, -7 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
@@ -44,14 +44,14 @@  discard block
 block discarded – undo
44 44
     }
45 45
 }
46 46
 
47
-if (! function_exists('is_countable')) {
47
+if (!function_exists('is_countable')) {
48 48
     function is_countable($c)
49 49
     {
50 50
         return is_array($c) || $c instanceof Countable;
51 51
     }
52 52
 }
53 53
 
54
-if (! function_exists('mongoTime')) {
54
+if (!function_exists('mongoTime')) {
55 55
     /**
56 56
      * Returns time in MongoDb Time.
57 57
      * @param null|mixed $time
@@ -64,10 +64,10 @@  discard block
 block discarded – undo
64 64
     }
65 65
 }
66 66
 
67
-if (! function_exists('valid_json')) {
67
+if (!function_exists('valid_json')) {
68 68
     function valid_json($value)
69 69
     {
70
-        if (! is_string($value)) {
70
+        if (!is_string($value)) {
71 71
             return false;
72 72
         }
73 73
 
Please login to merge, or discard this patch.
src/Traits/IsAnalytic.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
             return true;
22 22
         }
23 23
 
24
-        if (! $user) {
24
+        if (!$user) {
25 25
             return false;
26 26
         }
27 27
 
Please login to merge, or discard this patch.
src/Jobs/Track.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
                     }
108 108
 
109 109
                     // Basic created ie user
110
-                    if (! $postEvent && $collection != 'visits') {
110
+                    if (!$postEvent && $collection != 'visits') {
111 111
                         foreach ($items as $item) {
112 112
                             $basename   = strtolower(Str::singular($collection));
113 113
                             $basenameId = "{$basename}_id";
Please login to merge, or discard this patch.
src/APAnalytics.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -63,9 +63,9 @@  discard block
 block discarded – undo
63 63
         $filters        = valid_json($filters) ? json_decode($filters) : $filters;
64 64
         $intervalFormat = '%Y-%m-%dT%H';
65 65
         $aggregate      = [];
66
-        $model          = $this->namespace . Str::studly(Str::singular($collection)) . 'Analytic';
66
+        $model          = $this->namespace.Str::studly(Str::singular($collection)).'Analytic';
67 67
 
68
-        if (! class_exists($model)) {
68
+        if (!class_exists($model)) {
69 69
             throw new InvalidArgumentException("Model {$model} does not exist.");
70 70
         }
71 71
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
                 $intervalFormat = '%Y-%m';
113 113
             }
114 114
 
115
-            $aggregate[] =  [
115
+            $aggregate[] = [
116 116
                 '$group' => [
117 117
                     '_id' => [
118 118
                         '$dateToString' => ['date' => '$created_at', 'format' => $intervalFormat],
@@ -141,12 +141,12 @@  discard block
 block discarded – undo
141 141
             $nested = Str::contains($groupBy, '.');
142 142
 
143 143
             if ($nested) {
144
-                $aggregate[] = ['$unwind' => '$' . Str::before($groupBy, '.')];
144
+                $aggregate[] = ['$unwind' => '$'.Str::before($groupBy, '.')];
145 145
             }
146 146
 
147
-            $aggregate[] =  [
147
+            $aggregate[] = [
148 148
                 '$group' => [
149
-                    '_id'   => '$' . $groupBy,
149
+                    '_id'   => '$'.$groupBy,
150 150
                     'count' => [
151 151
                         '$sum' => 1,
152 152
                     ],
@@ -164,8 +164,8 @@  discard block
 block discarded – undo
164 164
             ];
165 165
         }
166 166
 
167
-        $data = $model::raw(function ($collection) use ($matchArray, $interval, $aggregate, $groupBy) {
168
-            if ($interval == 'count' && ! $groupBy) {
167
+        $data = $model::raw(function($collection) use ($matchArray, $interval, $aggregate, $groupBy) {
168
+            if ($interval == 'count' && !$groupBy) {
169 169
                 return $collection->count($matchArray);
170 170
             }
171 171
 
Please login to merge, or discard this patch.