BackupCronJob   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
c 1
b 0
f 1
dl 0
loc 14
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A interval() 0 3 1
A run() 0 2 1
A isImmediate() 0 3 1
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace Hhxsv5\LaravelS\Swoole\Timer;
4
5
/**
6
 * This CronJob is used to ensure that timer process does not exit when all timers are cleared(stopped).
7
 * Class BackupCronJob
8
 * @package Hhxsv5\LaravelS\Swoole\Timer
0 ignored issues
show
Coding Style introduced by
There must be exactly one blank line before the tags in a doc comment
Loading history...
9
 */
0 ignored issues
show
Coding Style introduced by
Missing @category tag in class comment
Loading history...
Coding Style introduced by
Missing @author tag in class comment
Loading history...
Coding Style introduced by
Missing @license tag in class comment
Loading history...
Coding Style introduced by
Missing @link tag in class comment
Loading history...
10
class BackupCronJob extends CronJob
11
{
12
    public function interval()
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function interval()
Loading history...
13
    {
14
        return 12 * 3600 * 1000;
15
    }
16
17
    public function isImmediate()
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function isImmediate()
Loading history...
18
    {
19
        return false;
20
    }
21
22
    public function run()
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function run()
Loading history...
23
    {
24
        // Do nothing.
25
    }
26
}