Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Fixing some more documentation issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpatrick committed Feb 1, 2016
1 parent 1fd6494 commit c24a7c3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions modules/tracker/models/base/SubmissionModelBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ abstract public function getScalars($submissionDao, $key = false);
* Get the single latest submission associated with a given producer.
*
* @param Tracker_ProducerDao $producerDao producer DAO
* @param false | string $date the latest time end the 24-hour interval or false to use the current day.
* @param false | string $date the end of the interval or false to use 23:59:59 of the current day
* @param string $branch the branch of the submission for which to search
* @param bool $onlyOneDay true to return submissions 24 hours back from $date, false otherwise. In the case of the
* of $date === false, $onlyOneDay will search only in the current day.
* @param bool $onlyOneDay if true return submissions 24 hours back from $date, false otherwise. In the case of
* $date === false, search only in the current day
* @return false | Tracker_SubmissionDao submission
*/
abstract public function getLatestSubmissionByProducerDateAndBranch($producerDao,
Expand All @@ -110,7 +110,7 @@ abstract public function getLatestSubmissionByProducerDateAndBranch($producerDao
* Get trends associated with a submission.
*
* @param Tracker_SubmissionDao $submissionDao submission DAO
* @param bool $key true if only key trends should be returned, false otherwise.
* @param bool $key true if only key trends should be returned, false otherwise
* @return array Tracker_TrendDaos
*/
abstract public function getTrends($submissionDao, $key = true);
Expand Down
10 changes: 5 additions & 5 deletions modules/tracker/models/pdo/SubmissionModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ public function getOrCreateSubmission($producerDao, $uuid)
* Get the single latest submission associated with a given producer.
*
* @param Tracker_ProducerDao $producerDao producer DAO
* @param false | string $date the latest time end the 24-hour interval or false to use the current day.
* @param false | string $date the end of the interval or false to use 23:59:59 of the current day
* @param string $branch the branch of the submission for which to search
* @param bool $onlyOneDay true to return submissions 24 hours back from $date, false otherwise. In the case of the
* of $date === false, $onlyOneDay will search only in the current day.
* @param bool $onlyOneDay if true return submissions 24 hours back from $date, false otherwise. In the case of
* $date === false, search only in the current day
* @return false | Tracker_SubmissionDao submission
*/
public function getLatestSubmissionByProducerDateAndBranch($producerDao, $date = false, $branch = 'master',
Expand All @@ -178,7 +178,7 @@ public function getLatestSubmissionByProducerDateAndBranch($producerDao, $date =
'tracker_scalar',
'tracker_submission.submission_id = tracker_scalar.submission_id',
array())
->where('tracker_submission.submit_time < ?', $queryTime);
->where('tracker_submission.submit_time <= ?', $queryTime);
if ($onlyOneDay) {
$sql = $sql->where('tracker_submission.submit_time > ?', $dayBeforeQueryTime);
}
Expand All @@ -200,7 +200,7 @@ public function getLatestSubmissionByProducerDateAndBranch($producerDao, $date =
* Get trends associated with a submission.
*
* @param Tracker_SubmissionDao $submissionDao submission DAO
* @param bool $key true if only key trends should be returned, false otherwise.
* @param bool $key true if only key trends should be returned, false otherwise
* @return array Tracker_TrendDaos
*/
public function getTrends($submissionDao, $key = true)
Expand Down

0 comments on commit c24a7c3

Please sign in to comment.