protected function format($string = '', $type = '', $lineBreak = false)
    {
        // Formatted log entry
        $formatted = $string;

        // Format only if value is passed
        if (isset($string[1])) {
            $formatted = ' '.(strlen($type) ? $type.':' : '').' '.$string.
                (($lineBreak) ? $this->lineBreak : '');
        }

        // return the formatted log-content
        return $formatted;
    }
protected function format($string = '', $type = '', $lineBreak = false)
    {
        // Formatted log entry
        $formatted = $string;

        // Format only if value is passed
        if (isset($string[1])) {
            $formatted = ' '.(strlen($type) ? $type.':' : '').' '.$string.
                (($lineBreak) ? $this->lineBreak : '');
        }

        // return the formatted log-content
        return $formatted;
    }
protected function format ( $ string = '' , $ type = '' , $ lineBreak = false ) { // Formatted log entry $ formatted = $ string ; // Format only if value is passed if ( isset ( $ string [ 1 ] ) ) { $ formatted = ' ' . ( strlen ( $ type ) ? $ type . ':' : '' ) . ' ' . $ string . ( ( $ lineBreak ) ? $ this -> lineBreak : '' ) ; } // return the formatted log-content return $ formatted ; }
Formats the passed string with the passed type and the line-break to a complete log-line.

@param string $string    The string to be formatted
@param string $type      The type to be formatted
@param bool   $lineBreak TRUE to use defined line break, FALSE to do not

@author Benjamin Carl <opensource@clickalicious.de>

@return string The formatted string to log
Formats the passed string with the passed type and the line - break to a complete log - line .