@@ -64,16 +64,16 @@ public function handle(): void
64
64
} else {
65
65
$ message = __ ('usageStats.compileMetrics.error ' , ['filename ' => $ filename ]);
66
66
}
67
- $ this -> failed ( new JobException ( $ message ));
68
- return ;
67
+
68
+ throw new JobException ( $ message ) ;
69
69
}
70
70
71
- $ temporaryTotalsDao = DAORegistry::getDAO ('TemporaryTotalsDAO ' ); /* @var TemporaryTotalsDAO $temporaryTotalsDao */
72
- $ temporaryItemInvestigationsDao = DAORegistry::getDAO ('TemporaryItemInvestigationsDAO ' ); /* @var TemporaryItemInvestigationsDAO $temporaryItemInvestigationsDao */
73
- $ temporaryItemRequestsDao = DAORegistry::getDAO ('TemporaryItemRequestsDAO ' ); /* @var TemporaryItemRequestsDAO $temporaryItemRequestsDao */
74
- $ temporaryTitleInvestigationsDao = DAORegistry::getDAO ('TemporaryTitleInvestigationsDAO ' ); /* @var TemporaryTitleInvestigationsDAO $temporaryTitleInvestigationsDao */
75
- $ temporaryTitleRequestsDao = DAORegistry::getDAO ('TemporaryTitleRequestsDAO ' ); /* @var TemporaryTitleRequestsDAO $temporaryTitleRequestsDao */
76
- $ temporaryInstitutionDao = DAORegistry::getDAO ('TemporaryInstitutionsDAO ' ); /* @var TemporaryInstitutionsDAO $temporaryInstitutionDao */
71
+ $ temporaryTotalsDao = DAORegistry::getDAO ('TemporaryTotalsDAO ' ); /** @var TemporaryTotalsDAO $temporaryTotalsDao */
72
+ $ temporaryItemInvestigationsDao = DAORegistry::getDAO ('TemporaryItemInvestigationsDAO ' ); /** @var TemporaryItemInvestigationsDAO $temporaryItemInvestigationsDao */
73
+ $ temporaryItemRequestsDao = DAORegistry::getDAO ('TemporaryItemRequestsDAO ' ); /** @var TemporaryItemRequestsDAO $temporaryItemRequestsDao */
74
+ $ temporaryTitleInvestigationsDao = DAORegistry::getDAO ('TemporaryTitleInvestigationsDAO ' ); /** @var TemporaryTitleInvestigationsDAO $temporaryTitleInvestigationsDao */
75
+ $ temporaryTitleRequestsDao = DAORegistry::getDAO ('TemporaryTitleRequestsDAO ' ); /** @var TemporaryTitleRequestsDAO $temporaryTitleRequestsDao */
76
+ $ temporaryInstitutionDao = DAORegistry::getDAO ('TemporaryInstitutionsDAO ' ); /** @var TemporaryInstitutionsDAO $temporaryInstitutionDao */
77
77
78
78
$ temporaryTotalsDao ->deleteByLoadId ($ this ->loadId );
79
79
$ temporaryItemInvestigationsDao ->deleteByLoadId ($ this ->loadId );
@@ -89,11 +89,11 @@ public function handle(): void
89
89
*/
90
90
protected function compileMetrics (): bool
91
91
{
92
- $ temporaryTotalsDao = DAORegistry::getDAO ('TemporaryTotalsDAO ' ); /* @var TemporaryTotalsDAO $temporaryTotalsDao */
93
- $ temporaryItemInvestigationsDao = DAORegistry::getDAO ('TemporaryItemInvestigationsDAO ' ); /* @var TemporaryItemInvestigationsDAO $temporaryItemInvestigationsDao */
94
- $ temporaryItemRequestsDao = DAORegistry::getDAO ('TemporaryItemRequestsDAO ' ); /* @var TemporaryItemRequestsDAO $temporaryItemRequestsDao */
95
- $ temporaryTitleInvestigationsDao = DAORegistry::getDAO ('TemporaryTitleInvestigationsDAO ' ); /* @var TemporaryTitleInvestigationsDAO $temporaryTitleInvestigationsDao */
96
- $ temporaryTitleRequestsDao = DAORegistry::getDAO ('TemporaryTitleRequestsDAO ' ); /* @var TemporaryTitleRequestsDAO $temporaryTitleRequestsDao */
92
+ $ temporaryTotalsDao = DAORegistry::getDAO ('TemporaryTotalsDAO ' ); /** @var TemporaryTotalsDAO $temporaryTotalsDao */
93
+ $ temporaryItemInvestigationsDao = DAORegistry::getDAO ('TemporaryItemInvestigationsDAO ' ); /** @var TemporaryItemInvestigationsDAO $temporaryItemInvestigationsDao */
94
+ $ temporaryItemRequestsDao = DAORegistry::getDAO ('TemporaryItemRequestsDAO ' ); /** @var TemporaryItemRequestsDAO $temporaryItemRequestsDao */
95
+ $ temporaryTitleInvestigationsDao = DAORegistry::getDAO ('TemporaryTitleInvestigationsDAO ' ); /** @var TemporaryTitleInvestigationsDAO $temporaryTitleInvestigationsDao */
96
+ $ temporaryTitleRequestsDao = DAORegistry::getDAO ('TemporaryTitleRequestsDAO ' ); /** @var TemporaryTitleRequestsDAO $temporaryTitleRequestsDao */
97
97
98
98
$ temporaryTotalsDao ->removeDoubleClicks (StatisticsHelper::COUNTER_DOUBLE_CLICK_TIME_FILTER_SECONDS );
99
99
$ temporaryItemInvestigationsDao ->compileBookItemUniqueClicks ();
0 commit comments