Cosmetic fixes

This commit is contained in:
Frederic Guillot
2015-10-19 21:32:18 -04:00
parent 7303a79b50
commit 039baacaa0
6 changed files with 13 additions and 7 deletions

View File

@@ -2,6 +2,8 @@
namespace Kanboard\Model;
use use PicoDb\Database;
/**
* Project Daily Stats
*
@@ -29,7 +31,7 @@ class ProjectDailyStats extends Base
{
$lead_cycle_time = $this->projectAnalytic->getAverageLeadAndCycleTime($project_id);
return $this->db->transaction(function ($db) use ($project_id, $date, $lead_cycle_time) {
return $this->db->transaction(function (Database $db) use ($project_id, $date, $lead_cycle_time) {
// This call will fail if the record already exists
// (cross database driver hack for INSERT..ON DUPLICATE KEY UPDATE)