public static function restoreLineBreaks($str)
    {
        if (isset($str) and strlen($str) !== 0) {
            $result = str_replace(PHP_EOL, "\n\r<br />\n\r", $str);

            return $result;
        } else {
            return false;
        }
    }
public static function restoreLineBreaks($str)
    {
        if (isset($str) and strlen($str) !== 0) {
            $result = str_replace(PHP_EOL, "\n\r<br />\n\r", $str);

            return $result;
        } else {
            return false;
        }
    }
public static function restoreLineBreaks ( $ str ) { if ( isset ( $ str ) and strlen ( $ str ) !== 0 ) { $ result = str_replace ( PHP_EOL , "\n\r<br />\n\r" , $ str ) ; return $ result ; } else { return false ; } }
Restore new lines.

@param (string) $str string that tobe restored new lines

@since 1.0.0

@return mixed
Restore new lines .