(int $reportId)
| 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([ |
no test coverage detected