| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 14 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 9 | 
| CRAP Score | 1 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 38 | 1 | public function handle(FilterNotifications $query): array | |
| 39 |     { | ||
| 40 | 1 | $notifications = $this->notificationRepository->query( | |
| 41 | 1 | $query->specification(), | |
| 42 | 1 | $query->orderings(), | |
| 43 | 1 | $query->maxResults(), | |
| 44 | 1 | $query->firstResult() | |
| 45 | ); | ||
| 46 | |||
| 47 |         return array_map(function (Notification $notification) { | ||
| 48 | 1 | $this->notificationDataTransformer->write($notification); | |
| 49 | 1 | return $this->notificationDataTransformer->read(); | |
| 50 | 1 | }, $notifications); | |
| 51 | } | ||
| 52 | } | ||
| 53 |