Refresh   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 6 1
1
<?php namespace Comodojo\Extender\Socket\Commands\Scheduler;
2
3
use \Comodojo\Daemon\Daemon;
4
use \Comodojo\RpcServer\Request\Parameters;
5
6
class Refresh {
7
8
    public static function execute(Parameters $params, Daemon $daemon) {
9
10
        return $daemon->getWorkers()
11
            ->get("scheduler")
12
            ->getOutputChannel()
13
            ->send('refresh') > 0;
14
15
    }
16
17
}
18