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

Commit c24a7c3

Browse files
committed
Fixing some more documentation issues.
1 parent 1fd6494 commit c24a7c3

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

modules/tracker/models/base/SubmissionModelBase.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ abstract public function getScalars($submissionDao, $key = false);
9595
* Get the single latest submission associated with a given producer.
9696
*
9797
* @param Tracker_ProducerDao $producerDao producer DAO
98-
* @param false | string $date the latest time end the 24-hour interval or false to use the current day.
98+
* @param false | string $date the end of the interval or false to use 23:59:59 of the current day
9999
* @param string $branch the branch of the submission for which to search
100-
* @param bool $onlyOneDay true to return submissions 24 hours back from $date, false otherwise. In the case of the
101-
* of $date === false, $onlyOneDay will search only in the current day.
100+
* @param bool $onlyOneDay if true return submissions 24 hours back from $date, false otherwise. In the case of
101+
* $date === false, search only in the current day
102102
* @return false | Tracker_SubmissionDao submission
103103
*/
104104
abstract public function getLatestSubmissionByProducerDateAndBranch($producerDao,
@@ -110,7 +110,7 @@ abstract public function getLatestSubmissionByProducerDateAndBranch($producerDao
110110
* Get trends associated with a submission.
111111
*
112112
* @param Tracker_SubmissionDao $submissionDao submission DAO
113-
* @param bool $key true if only key trends should be returned, false otherwise.
113+
* @param bool $key true if only key trends should be returned, false otherwise
114114
* @return array Tracker_TrendDaos
115115
*/
116116
abstract public function getTrends($submissionDao, $key = true);

modules/tracker/models/pdo/SubmissionModel.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ public function getOrCreateSubmission($producerDao, $uuid)
157157
* Get the single latest submission associated with a given producer.
158158
*
159159
* @param Tracker_ProducerDao $producerDao producer DAO
160-
* @param false | string $date the latest time end the 24-hour interval or false to use the current day.
160+
* @param false | string $date the end of the interval or false to use 23:59:59 of the current day
161161
* @param string $branch the branch of the submission for which to search
162-
* @param bool $onlyOneDay true to return submissions 24 hours back from $date, false otherwise. In the case of the
163-
* of $date === false, $onlyOneDay will search only in the current day.
162+
* @param bool $onlyOneDay if true return submissions 24 hours back from $date, false otherwise. In the case of
163+
* $date === false, search only in the current day
164164
* @return false | Tracker_SubmissionDao submission
165165
*/
166166
public function getLatestSubmissionByProducerDateAndBranch($producerDao, $date = false, $branch = 'master',
@@ -178,7 +178,7 @@ public function getLatestSubmissionByProducerDateAndBranch($producerDao, $date =
178178
'tracker_scalar',
179179
'tracker_submission.submission_id = tracker_scalar.submission_id',
180180
array())
181-
->where('tracker_submission.submit_time < ?', $queryTime);
181+
->where('tracker_submission.submit_time <= ?', $queryTime);
182182
if ($onlyOneDay) {
183183
$sql = $sql->where('tracker_submission.submit_time > ?', $dayBeforeQueryTime);
184184
}
@@ -200,7 +200,7 @@ public function getLatestSubmissionByProducerDateAndBranch($producerDao, $date =
200200
* Get trends associated with a submission.
201201
*
202202
* @param Tracker_SubmissionDao $submissionDao submission DAO
203-
* @param bool $key true if only key trends should be returned, false otherwise.
203+
* @param bool $key true if only key trends should be returned, false otherwise
204204
* @return array Tracker_TrendDaos
205205
*/
206206
public function getTrends($submissionDao, $key = true)

0 commit comments

Comments
 (0)