protected function parseStatus(string $input) : array
{
$array = explode("\n", (string) $input);
foreach ($array as $key => &$line) {
$line = trim($line);
if (empty($line)) {
unset($array[$key]);
continue;
}
$tmp = $line;
$line = [];
if ($tmp[0] !== ' ') {
$line['status'] = $tmp[0];
}
if ($tmp[1] !== ' ') {
$line['properties'] = $tmp[1];
}
if ($tmp[2] !== ' ') {
$line['lock'] = $tmp[2];
}
if ($tmp[3] !== ' ') {
$line['history'] = $tmp[3];
}
if ($tmp[4] !== ' ') {
$line['switch'] = $tmp[4];
}
$line['file'] = substr($tmp, 7);
}
return $array;
}