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

Method parseFormat

lib/Service/VariableService.php:348–355  ·  view source on GitHub ↗

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

($filter)

Source from the content-addressed store, hash-verified

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

Callers 3

replaceDatasourceTextMethod · 0.95

Calls 1

countFunction · 0.50

Tested by

no test coverage detected