Dunglas\PhpDocToTypeHint\Converter::endsInNewLine PHP Method

endsInNewLine() private method

Will also include additional space/tab character if present, i.e. the indentation into the next line. Returns an empty string if no match was found.
private endsInNewLine ( string $output ) : string
$output string
return string
    private function endsInNewLine(string $output) : string
    {
        $result = preg_match('/((?:\\r\\n|\\r|\\n)[ \\t]*)$/', $output, $matches);
        if (0 === $result) {
            return '';
        }
        return $matches[1];
    }