diff --git a/app/Console/Commands/RemoveExplicitEols.php b/app/Console/Commands/RemoveExplicitEols.php index 03163a475..f5164c2ee 100644 --- a/app/Console/Commands/RemoveExplicitEols.php +++ b/app/Console/Commands/RemoveExplicitEols.php @@ -27,6 +27,8 @@ class RemoveExplicitEols extends Command */ public function handle() { + $startTime = microtime(true); + if ($this->option('model_name') == 'all') { $assets = Asset::all(); $this->updateAssets($assets); @@ -40,6 +42,9 @@ class RemoveExplicitEols extends Command $this->error('Asset model not found'); } } + $endTime = microtime(true); + $executionTime = ($endTime - $startTime); + $this->info('Command executed in ' . round($executionTime, 2) . ' seconds.'); } private function updateAssets($assets)