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

Method matchReference

lib/Reference/ReferenceProvider.php:82–89  ·  view source on GitHub ↗
(string $referenceText)

Source from the content-addressed store, hash-verified

80 }
81
82 public function matchReference(string $referenceText): bool
83 {
84 $adminLinkPreviewEnabled = $this->config->getAppValue('analytics', 'link_preview_enabled', '1') === '1';
85 if (!$adminLinkPreviewEnabled) {
86 //return false;
87 }
88 return preg_match('~/apps/analytics/(?:r|pa)/~', $referenceText) === 1;
89 }
90
91 public function resolveReference(string $referenceText): ?IReference
92 {

Callers 1

resolveReferenceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected