| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function checkEnv() |
||
| 13 | { |
||
| 14 | $result = $this->_results->createResult(); |
||
| 15 | if (file_exists($this->_envFilePath)) { |
||
| 16 | $status = Result::STATUS_OK; |
||
| 17 | $message = '<info>Env file <comment>app/etc/env.php</comment> found!</info>'; |
||
| 18 | } else { |
||
| 19 | $status = Result::STATUS_ERROR; |
||
| 20 | $message = '<error>Env file <comment>app/etc/env.php</comment> not found!</error>'; |
||
| 21 | } |
||
| 22 | |||
| 23 | $result->setStatus($status); |
||
| 24 | $result->setMessage($message); |
||
| 25 | } |
||
| 26 | } |
||
| 27 |