summaryrefslogtreecommitdiff
path: root/app/Controller/Analytic.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-16 17:01:56 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-16 17:01:56 -0500
commit73ff5ec89b711791b3993f9158dc9554a623602c (patch)
tree8899efba69125c7117754134ffe17bef7257be20 /app/Controller/Analytic.php
parentb77fecc7d942c5cf606110f865caadfcab431155 (diff)
Remove ProjectAnalytic class
Diffstat (limited to 'app/Controller/Analytic.php')
-rw-r--r--app/Controller/Analytic.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/Controller/Analytic.php b/app/Controller/Analytic.php
index f9ea511b..26386029 100644
--- a/app/Controller/Analytic.php
+++ b/app/Controller/Analytic.php
@@ -37,8 +37,6 @@ class Analytic extends Base
$project = $this->getProject();
$values = $this->request->getValues();
- $this->projectDailyStats->updateTotals($project['id'], date('Y-m-d'));
-
$from = $this->request->getStringParam('from', date('Y-m-d', strtotime('-1week')));
$to = $this->request->getStringParam('to', date('Y-m-d'));
@@ -53,7 +51,7 @@ class Analytic extends Base
'to' => $to,
),
'project' => $project,
- 'average' => $this->projectAnalytic->getAverageLeadAndCycleTime($project['id']),
+ 'average' => $this->averageLeadCycleTimeAnalytic->build($project['id']),
'metrics' => $this->projectDailyStats->getRawMetrics($project['id'], $from, $to),
'date_format' => $this->config->get('application_date_format'),
'date_formats' => $this->dateParser->getAvailableFormats(),
@@ -72,7 +70,7 @@ class Analytic extends Base
$this->response->html($this->layout('analytic/avg_time_columns', array(
'project' => $project,
- 'metrics' => $this->projectAnalytic->getAverageTimeSpentByColumn($project['id']),
+ 'metrics' => $this->averageTimeSpentColumnAnalytic->build($project['id']),
'title' => t('Average time spent into each column for "%s"', $project['name']),
)));
}