| Total Complexity | 5 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class WebServer implements ServiceInterface |
||
| 6 | { |
||
| 7 | public $webServerStatuses = null; |
||
| 8 | |||
| 9 | public function check(): string |
||
| 10 | { |
||
| 11 | if (config('stethoscope.web_server_name') == 'nginx') { |
||
| 12 | $this->checkNginx(); |
||
| 13 | } elseif (config('stethoscope.web_server_name') == 'apache') { |
||
| 14 | $this->checkApache(); |
||
| 15 | } |
||
| 16 | |||
| 17 | return $this->webServerStatuses; |
||
| 18 | } |
||
| 19 | |||
| 20 | protected function checkNginx() |
||
| 23 | } |
||
| 24 | |||
| 25 | protected function checkApache() |
||
| 28 | } |
||
| 29 | } |
||
| 30 |