From af7027ea31a691e2eea6d813f6aa3cf08f8b9d0a Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 12 Apr 2016 21:26:17 -0400 Subject: Rename CLI classes --- app/Console/ProjectDailyStatsCalculation.php | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 app/Console/ProjectDailyStatsCalculation.php (limited to 'app/Console/ProjectDailyStatsCalculation.php') diff --git a/app/Console/ProjectDailyStatsCalculation.php b/app/Console/ProjectDailyStatsCalculation.php deleted file mode 100644 index 9884cc1c..00000000 --- a/app/Console/ProjectDailyStatsCalculation.php +++ /dev/null @@ -1,28 +0,0 @@ -setName('projects:daily-stats') - ->setDescription('Calculate daily statistics for all projects'); - } - - protected function execute(InputInterface $input, OutputInterface $output) - { - $projects = $this->project->getAllByStatus(Project::ACTIVE); - - foreach ($projects as $project) { - $output->writeln('Run calculation for '.$project['name']); - $this->projectDailyColumnStats->updateTotals($project['id'], date('Y-m-d')); - $this->projectDailyStats->updateTotals($project['id'], date('Y-m-d')); - } - } -} -- cgit v1.2.3