@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | |
41 | 41 | $model = $this->namespace.studly_case(str_singular($collection)).'Analytic'; |
42 | 42 | |
43 | - if (! class_exists($model)) { |
|
43 | + if (!class_exists($model)) { |
|
44 | 44 | throw new InvalidArgumentException("Model {$model} does not exist."); |
45 | 45 | } |
46 | 46 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | |
69 | 69 | $data = DB::connection($this->connection) |
70 | 70 | ->collection($collection) |
71 | - ->raw(function ($query) use ($matchArray) { |
|
71 | + ->raw(function($query) use ($matchArray) { |
|
72 | 72 | return $query->aggregate([ |
73 | 73 | ['$match' => $matchArray], |
74 | 74 | ['$sort' => ['created_at' => 1]], |
@@ -90,10 +90,10 @@ discard block |
||
90 | 90 | */ |
91 | 91 | private function toModels($data, $model = null) |
92 | 92 | { |
93 | - if (! $model) { |
|
93 | + if (!$model) { |
|
94 | 94 | $model = '\Jenssegers\Mongodb\Eloquent\Model'; |
95 | 95 | } |
96 | - if (! class_exists($model)) { |
|
96 | + if (!class_exists($model)) { |
|
97 | 97 | throw new InvalidArgumentException("Model {$model} does not exist."); |
98 | 98 | } |
99 | 99 |
@@ -4,14 +4,14 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | $this->app->register(APAnalyticsEventServiceProvider::class); |
26 | 26 | |
27 | - $this->app->singleton('apanalytics', function () { |
|
27 | + $this->app->singleton('apanalytics', function() { |
|
28 | 28 | return new APAnalytics(); |
29 | 29 | }); |
30 | 30 | } |