| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Comodojo\Extender\Socket\Commands\Scheduler; |
||
| 8 | public static function execute(Parameters $params, Daemon $daemon) { |
||
| 9 | |||
| 10 | $configuration = $daemon->getConfiguration(); |
||
|
|
|||
| 11 | $base_path = $configuration->get('base-path'); |
||
| 12 | $lock_path = $configuration->get('run-path'); |
||
| 13 | $lock_file = "$base_path/$lock_path/schedule.worker.lock"; |
||
| 14 | |||
| 15 | return unserialize(file_get_contents($lock_file)); |
||
| 16 | |||
| 20 |