| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | protected function envKeyExist($key) |
||
| 26 | { |
||
| 27 | $result = $this->_results->createResult(); |
||
| 28 | if ($this->_dot->has($key)) { |
||
| 29 | $status = Result::STATUS_OK; |
||
| 30 | $message = '<info>Key <comment>' . $key . '</comment> found.</info>'; |
||
| 31 | } else { |
||
| 32 | $status = Result::STATUS_ERROR; |
||
| 33 | $message = '<error>Key <comment>' . $key . '</comment> not found!</error>'; |
||
| 34 | } |
||
| 35 | |||
| 36 | $result->setStatus($status); |
||
| 37 | $result->setMessage($message); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |