getFilterPattern(), $tableName, $matches); return $tableIsReplica ? $matches['table_name'] : $tableName; } /** * Provides a RegEx pattern used to search cloned temporary tables used as a replica. * * @return string */ private function getFilterPattern(): string { if (!$this->filterPattern) { $this->filterPattern = '#(?\S+)_replica$#i'; } return $this->filterPattern; } }