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

Method accessibleReport

lib/Controller/ApiController.php:142–151  ·  view source on GitHub ↗
(int $reportId)

Source from the content-addressed store, hash-verified

140 }
141
142 private function accessibleReport(int $reportId): array {
143 $report = $this->reportService->read($reportId);
144 if (empty($report)) {
145 $report = $this->shareService->getSharedReport($reportId);
146 }
147 if (empty($report) || (int)$report['type'] === ReportService::REPORT_TYPE_GROUP) {
148 throw new OCSNotFoundException('Report not found');
149 }
150 return $report;
151 }
152
153 private function publicMetadata(array $report): array {
154 return array_intersect_key($report, array_flip([

Callers 2

readMethod · 0.95
dataMethod · 0.95

Calls 2

getSharedReportMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected