protected _replaceReferences ( string $contents ) : string | ||
$contents | string | |
Результат | string |
protected function _replaceReferences($contents)
{
$rename = $this->rename;
foreach ($rename as &$val) {
$val = substr($val, 4);
}
$regex = '/\\bCake(' . implode($rename, '|') . ')\\b/';
return preg_replace($regex, '\\1', $contents);
}