RSS Git Download  Clone
Raw View History
Blames found: 1 Mode: php Binary: false


Hang on, we reloading big blames...
<?php namespace Gitter\Statistics; use Gitter\Util\Collection; use Gitter\Model\Commit\Commit; /** * Aggregate statistics based on hour */ class Hour extends Collection implements StatisticsInterface { /** * @param Commit $commit */ public function addCommit(Commit $commit) { $hour = $commit->getCommiterDate()->format('H'); $this->items[$hour][] = $commit; } public function sortCommits() { ksort($this->items); } }