private function parseCodeLine(string $line): Line
    {
        if (strlen($line) == 0) {
            return new Line(Line::EXISTED, '');
        }

        $firstChar = $line[0];
        $cleanLine = rtrim(substr($line, 1));

        return new Line(Line::$opsMap[$firstChar], $cleanLine);
    }
private function parseCodeLine(string $line): Line
    {
        if (strlen($line) == 0) {
            return new Line(Line::EXISTED, '');
        }

        $firstChar = $line[0];
        $cleanLine = rtrim(substr($line, 1));

        return new Line(Line::$opsMap[$firstChar], $cleanLine);
    }
private function parseCodeLine ( string $ line ) : Line { if ( strlen ( $ line ) == 0 ) { return new Line ( Line :: EXISTED , '' ) ; } $ firstChar = $ line [ 0 ] ; $ cleanLine = rtrim ( substr ( $ line , 1 ) ) ; return new Line ( Line :: $ opsMap [ $ firstChar ] , $ cleanLine ) ; }
Determines the line type and cleans up the line.

@param  string $line
@return \SebastianFeldmann\Git\Diff\Line
Determines the line type and cleans up the line .