@@ -133,13 +133,13 @@ discard block |
||
| 133 | 133 | public function handle() |
| 134 | 134 | { |
| 135 | 135 | $this->fire_purge_events = $this->laravel->make('config') |
| 136 | - ->get('garbageman.fire_purge_events', $this->fire_purge_events); |
|
| 136 | + ->get('garbageman.fire_purge_events', $this->fire_purge_events); |
|
| 137 | 137 | |
| 138 | 138 | $this->logging_level = $this->laravel->make('config') |
| 139 | - ->get('garbageman.logging_level', $this->logging_level); |
|
| 139 | + ->get('garbageman.logging_level', $this->logging_level); |
|
| 140 | 140 | |
| 141 | 141 | $schedule = $this->laravel->make('config') |
| 142 | - ->get('garbageman.schedule', []); |
|
| 142 | + ->get('garbageman.schedule', []); |
|
| 143 | 143 | |
| 144 | 144 | foreach ($schedule as $model => $days) { |
| 145 | 145 | $this->purgeExpiredRecordsForModel($model, $days); |
@@ -176,8 +176,8 @@ discard block |
||
| 176 | 176 | ->subDays($days); |
| 177 | 177 | |
| 178 | 178 | $query = $this->laravel->make($model) |
| 179 | - ->where('deleted_at', '<', $expiration) |
|
| 180 | - ->onlyTrashed(); |
|
| 179 | + ->where('deleted_at', '<', $expiration) |
|
| 180 | + ->onlyTrashed(); |
|
| 181 | 181 | |
| 182 | 182 | $count = $this->purgeRecordsAsConfigured($query, $model); |
| 183 | 183 | |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function register() |
| 33 | 33 | { |
| 34 | - $this->app->singleton('command.garbageman.purge', function ($app) { |
|
| 34 | + $this->app->singleton('command.garbageman.purge', function($app) { |
|
| 35 | 35 | return $app->make(PurgeCommand::class); |
| 36 | 36 | }); |
| 37 | 37 | |