MCPcopy Create free account
hub / github.com/Rello/analytics / parseFormat

Method parseFormat

lib/Service/VariableService.php:345–352  ·  view source on GitHub ↗

* parsing of ( ) format instructions * * @param $filter * @return string */

($filter)

Source from the content-addressed store, hash-verified

343 * @return string
344 */
345 private function parseFormat($filter) {
346 preg_match_all("/(?<=\().*(?=\))/", $filter, $matches);
347 if (count($matches[0]) > 0) {
348 return $matches[0][0];
349 } else {
350 return 'Y-m-d H:m:s';
351 }
352 }
353}

Callers 3

replaceDatasourceTextMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected