@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | |
| 61 | 61 | $model = $this->namespace.studly_case(str_singular($collection)).'Analytic'; |
| 62 | 62 | |
| 63 | - if (! class_exists($model)) { |
|
| 63 | + if (!class_exists($model)) { |
|
| 64 | 64 | throw new InvalidArgumentException("Model {$model} does not exist."); |
| 65 | 65 | } |
| 66 | 66 | |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | |
| 111 | 111 | $data = DB::connection($this->connection) |
| 112 | 112 | ->collection($collection) |
| 113 | - ->raw(function ($collection) use ($matchArray, $interval, $aggregate) { |
|
| 113 | + ->raw(function($collection) use ($matchArray, $interval, $aggregate) { |
|
| 114 | 114 | if ($interval == 'count') { |
| 115 | 115 | return $collection->count($matchArray); |
| 116 | 116 | } |
@@ -137,11 +137,11 @@ discard block |
||
| 137 | 137 | */ |
| 138 | 138 | private function toModels($data, $model = null) |
| 139 | 139 | { |
| 140 | - if (! $model) { |
|
| 140 | + if (!$model) { |
|
| 141 | 141 | $model = '\Jenssegers\Mongodb\Eloquent\Model'; |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | - if (! class_exists($model)) { |
|
| 144 | + if (!class_exists($model)) { |
|
| 145 | 145 | throw new InvalidArgumentException("Model {$model} does not exist."); |
| 146 | 146 | } |
| 147 | 147 | |