@@ -157,10 +157,10 @@ public function getOrCreateSubmission($producerDao, $uuid)
157
157
* Get the single latest submission associated with a given producer.
158
158
*
159
159
* @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
161
161
* @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
164
164
* @return false | Tracker_SubmissionDao submission
165
165
*/
166
166
public function getLatestSubmissionByProducerDateAndBranch ($ producerDao , $ date = false , $ branch = 'master ' ,
@@ -178,7 +178,7 @@ public function getLatestSubmissionByProducerDateAndBranch($producerDao, $date =
178
178
'tracker_scalar ' ,
179
179
'tracker_submission.submission_id = tracker_scalar.submission_id ' ,
180
180
array ())
181
- ->where ('tracker_submission.submit_time < ? ' , $ queryTime );
181
+ ->where ('tracker_submission.submit_time <= ? ' , $ queryTime );
182
182
if ($ onlyOneDay ) {
183
183
$ sql = $ sql ->where ('tracker_submission.submit_time > ? ' , $ dayBeforeQueryTime );
184
184
}
@@ -200,7 +200,7 @@ public function getLatestSubmissionByProducerDateAndBranch($producerDao, $date =
200
200
* Get trends associated with a submission.
201
201
*
202
202
* @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
204
204
* @return array Tracker_TrendDaos
205
205
*/
206
206
public function getTrends ($ submissionDao , $ key = true )
0 commit comments