Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function process(): void |
||
32 | { |
||
33 | $data = (new \App\Db\Query())->from('l_yf_mail')->where(['>=', 'date', (new DateTime(date('Y-m-d H:i:s')))->modify('-24 hours')->format('Y-m-d H:i:s')])->all(); |
||
34 | if (!$data) { |
||
35 | $this->status = 1; |
||
36 | } else { |
||
37 | $this->status = 0; |
||
38 | $this->description = \App\Language::translateArgs('LBL_CHECK_ERROR_MAIL_DESC', 'Settings:SystemWarnings', \count($data)); |
||
39 | |||
43 |