Google\Cloud\Dev\DocBlockStripSpaces::cleanInput PHP Method

cleanInput() public method

Strips extra whitespace from the DocBlock comment.
public cleanInput ( string $comment, integer $spaces = 4 ) : string
$comment string String containing the comment text.
$spaces integer The number of spaces to strip.
return string
    public function cleanInput($comment, $spaces = 4)
    {
        $lines = array_map(function ($line) use($spaces) {
            return substr($line, $spaces);
        }, explode(PHP_EOL, $comment));
        return trim(implode(PHP_EOL, $lines));
    }
DocBlockStripSpaces