| Conditions | 6 | 
| Paths | 3 | 
| Total Lines | 12 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 25 | public function process($object, array $data): array  | 
            ||
| 26 |     { | 
            ||
| 27 |         if (is_array($data) && array_key_exists('cover_image_name', $data)) { | 
            ||
| 28 | $imagePath = $this->uploaderHelper->asset($object, 'coverImageFile');  | 
            ||
| 29 | $currentRequest = $this->requestStack->getCurrentRequest();  | 
            ||
| 30 |             if (null !== $imagePath && null !== $currentRequest && false === strpos($imagePath, '://')) { | 
            ||
| 31 | $imagePath = $currentRequest->getSchemeAndHttpHost().$imagePath;  | 
            ||
| 32 | }  | 
            ||
| 33 | $data['href']['coverImageUrl'] = $imagePath;  | 
            ||
| 34 | }  | 
            ||
| 35 | |||
| 36 | return $data;  | 
            ||
| 37 | }  | 
            ||
| 39 |