Refresh::execute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 2
dl 0
loc 6
rs 10
c 0
b 0
f 0
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