Conditions | 1 |
Paths | 1 |
Total Lines | 4 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function generateUrl(object $object, string $fileProperty): string { |
||
15 | $resourceId = $this->iriConverter->getIriFromResource($object); |
||
16 | $converter = new CamelCaseToSnakeCaseNameConverter(); |
||
17 | return $this->urlHelper->getAbsoluteUrl(sprintf('%s/download/%s', $resourceId, $converter->normalize($fileProperty))); |
||
18 | } |
||
20 |