@@ -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 |
@@ -116,7 +116,7 @@ |
||
116 | 116 | */ |
117 | 117 | protected function firePurgeEvent($event, $model_name, Model $model, $halt = true) |
118 | 118 | { |
119 | - $event = "garbageman.{$event}: " . $model_name; |
|
119 | + $event = "garbageman.{$event}: ".$model_name; |
|
120 | 120 | |
121 | 121 | $method = $halt ? 'until' : 'fire'; |
122 | 122 |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | public function boot() |
21 | 21 | { |
22 | 22 | $this->publishes([ |
23 | - realpath(__DIR__ . '/config/garbageman.php') => config_path('garbageman.php'), |
|
23 | + realpath(__DIR__.'/config/garbageman.php') => config_path('garbageman.php'), |
|
24 | 24 | ], 'config'); |
25 | 25 | } |
26 | 26 | |
@@ -31,7 +31,7 @@ discard block |
||
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 |