| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function collect(): array |
||
| 24 | { |
||
| 25 | // exec('pgrep -a php-fpm', $output); |
||
| 26 | Runner::outputToArray(Runner::getInstance()->run('pgrep -a php-fpm')->getOutput()); |
||
| 27 | |||
| 28 | $fpm = !empty($output); |
||
|
|
|||
| 29 | |||
| 30 | return [ |
||
| 31 | 'versions' => [ |
||
| 32 | PHP_VERSION |
||
| 33 | ], |
||
| 34 | 'modules' => get_loaded_extensions(), |
||
| 35 | 'fpm' => $fpm |
||
| 36 | ]; |
||
| 39 |