private function summarize($message)
    {
        $message = ltrim($message, "\n");
        if ($newLinePos = strpos($message, "\n")) {
            $message = substr($message, 0, $newLinePos);
        }

        return rtrim($message);
    }
private function summarize($message)
    {
        $message = ltrim($message, "\n");
        if ($newLinePos = strpos($message, "\n")) {
            $message = substr($message, 0, $newLinePos);
        }

        return rtrim($message);
    }
private function summarize ( $ message ) { $ message = ltrim ( $ message , "\n" ) ; if ( $ newLinePos = strpos ( $ message , "\n" ) ) { $ message = substr ( $ message , 0 , $ newLinePos ) ; } return rtrim ( $ message ) ; }
Summarize a commit message.

@param string $message

@return string
Summarize a commit message .