| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 16 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 9 | 
| CRAP Score | 3 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 39 | 1 | public function onInformationFollows(MultiLineResponse $response) | |
| 40 |     { | ||
| 41 | 1 | $result = []; | |
| 42 | |||
| 43 | 1 |         foreach ($response->getLines() as $line) { | |
| 44 | 1 |             if (0 == strcasecmp(substr($line, -5, 5), ':full')) { | |
| 45 | // ':full' is _not_ included in tag, but value set to true | ||
| 46 | 1 |                 $result[str_replace('-', '_', strtolower(substr($line, 0, -5)))] = true; | |
| 47 | 1 |             } else { | |
| 48 | // ':' is _not_ included in tag; value set to false | ||
| 49 | 1 |                 $result[str_replace('-', '_', strtolower(substr($line, 0, -1)))] = false; | |
| 50 | } | ||
| 51 | 1 | } | |
| 52 | |||
| 53 | 1 | return $result; | |
| 54 | } | ||
| 55 | } | ||
| 56 |