| Conditions | 7 | 
| Paths | 2 | 
| Total Lines | 16 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 40 | public function process(object $object, array $data): array  | 
            ||
| 41 |     { | 
            ||
| 42 |         if (is_array($data)) { | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 43 |             foreach ($data as $key => $value) { | 
            ||
| 44 |                 if (array_key_exists($key, self::SUPPORTED_KEYS)) { | 
            ||
| 45 | $filePath = $this->uploaderHelper->asset($object, self::SUPPORTED_KEYS[$key]['file']);  | 
            ||
| 46 | $currentRequest = $this->requestStack->getCurrentRequest();  | 
            ||
| 47 |                     if (null !== $filePath && null !== $currentRequest && false === strpos($filePath, '://')) { | 
            ||
| 48 | $filePath = $currentRequest->getSchemeAndHttpHost().$filePath;  | 
            ||
| 49 | }  | 
            ||
| 50 | $data['href'][self::SUPPORTED_KEYS[$key]['property']] = $filePath;  | 
            ||
| 51 | }  | 
            ||
| 52 | }  | 
            ||
| 53 | }  | 
            ||
| 54 | |||
| 55 | return $data;  | 
            ||
| 56 | }  | 
            ||
| 58 |