@@ -19,13 +19,13 @@ |
||
19 | 19 | |
20 | 20 | public function getFileUrl(People $people): ?array |
21 | 21 | { |
22 | - if ($people->getImage() instanceof File) |
|
22 | + if ($people->getImage() instanceof File) |
|
23 | 23 | return [ |
24 | - 'id' => $people->getImage()->getId(), |
|
25 | - 'domain' => $this->domainService->getMainDomain(), |
|
26 | - 'url' => '/files/' . $people->getImage()->getId() . '/download' |
|
24 | + 'id' => $people->getImage()->getId(), |
|
25 | + 'domain' => $this->domainService->getMainDomain(), |
|
26 | + 'url' => '/files/' . $people->getImage()->getId() . '/download' |
|
27 | 27 | ]; |
28 | 28 | |
29 | - return null; |
|
29 | + return null; |
|
30 | 30 | } |
31 | 31 | } |
@@ -19,12 +19,13 @@ |
||
19 | 19 | |
20 | 20 | public function getFileUrl(People $people): ?array |
21 | 21 | { |
22 | - if ($people->getImage() instanceof File) |
|
23 | - return [ |
|
22 | + if ($people->getImage() instanceof File) { |
|
23 | + return [ |
|
24 | 24 | 'id' => $people->getImage()->getId(), |
25 | 25 | 'domain' => $this->domainService->getMainDomain(), |
26 | 26 | 'url' => '/files/' . $people->getImage()->getId() . '/download' |
27 | 27 | ]; |
28 | + } |
|
28 | 29 | |
29 | 30 | return null; |
30 | 31 | } |