| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function fetch() |
||
| 18 | { |
||
| 19 | //begin of business logic |
||
| 20 | $contentAsString = strip_tags($this->fetchContentAsStringOrThrowRuntimeException()); |
||
| 21 | $contentAsArray = explode(PHP_EOL, $contentAsString); |
||
| 22 | |||
| 23 | $lines = array_filter( |
||
| 24 | $contentAsArray, |
||
| 25 | function($item) { |
||
| 26 | return (strlen(trim($item)) > 0); |
||
| 27 | } |
||
| 28 | ); |
||
| 29 | |||
| 30 | return $lines; |
||
| 31 | //end of business logic |
||
| 32 | } |
||
| 33 | |||
| 40 |