| Conditions | 3 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | 2 | public function getHosts() |
|
| 33 | 2 | { |
|
| 34 | 2 | $hosts = explode(',', $this->get('hosts')); |
|
| 35 | 2 | array_walk($hosts, function (&$value) { |
|
| 36 | 2 | if (false === strpos($value, 'https://') && false === strpos($value, 'http://')) { |
|
| 37 | 2 | $value = 'http://' . $value; |
|
| 38 | } |
||
| 39 | }); |
||
| 40 | return $hosts; |
||
| 41 | } |
||
| 42 | |||
| 68 |