protected function getSummary(array $lines)
    {
        $summary = '';
        foreach ($lines as $line) {
            // Check for blank line
            if (!$line) {
                // If summary exists break out
                if ($summary) {
                    break;
                }
                continue;
            }

            // Check for tag
            if ($line[0] == '@') {
                break;
            }

            // Otherwise we're good for summary
            $summary .= $line . "\n";
            if (substr($line, -1) == '.') {
                break;
            }
        }

        return trim($summary);
    }