1 | <?php |
||
2 | |||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
3 | namespace Hhxsv5\LaravelS\Swoole\Timer; |
||
4 | |||
5 | /** |
||
6 | * This CronJob is used to check global timer alive. |
||
7 | * Class CheckGlobalTimerAliveCronJob |
||
8 | * @package Hhxsv5\LaravelS\Swoole\Timer |
||
0 ignored issues
–
show
|
|||
9 | */ |
||
0 ignored issues
–
show
|
|||
10 | class CheckGlobalTimerAliveCronJob extends CronJob |
||
11 | { |
||
12 | public function interval() |
||
0 ignored issues
–
show
|
|||
13 | { |
||
14 | return (int)(static::GLOBAL_TIMER_LOCK_SECONDS * 0.9) * 1000; |
||
15 | } |
||
16 | |||
17 | public function isImmediate() |
||
0 ignored issues
–
show
|
|||
18 | { |
||
19 | return false; |
||
20 | } |
||
21 | |||
22 | public function run() |
||
0 ignored issues
–
show
|
|||
23 | { |
||
24 | static::checkSetEnable(); |
||
25 | } |
||
26 | } |