src/RNRocks/Repository/RssFeedEventRepository.php
/**
     * Helper method to extract and convert the date from the given event title.
     *
     * @param string $title
     * @return string
     */
Helper method to extract and convert the date from the given event title.
@param string $title
@return string
Helper method to extract and convert the date from the given event title . @param string $title @return string
private function extractDate($title)
    {
        if (1 === preg_match('#\d{1,2}\.\d{1,2}\.\d{4}#', $title, $matches)) {
            if (isset($matches[0])) {
                $date = explode('.', $matches[0]);
                return $date[2] . '-' . $date[1] . '-' . $date[0];
            }
        }
        return '';
    }
private function extractDate ( $ title ) { if ( 1 === preg_match ( '#\d{1,2}\.\d{1,2}\.\d{4}#' , $ title , $ matches ) ) { if ( isset ( $ matches [ 0 ] ) ) { $ date = explode ( '.' , $ matches [ 0 ] ) ; return $ date [ 2 ] . '-' . $ date [ 1 ] . '-' . $ date [ 0 ] ; } } return '' ; }
Helper method to extract and convert the date from the given event title.
Helper method to extract and convert the date from the given event title .