Skip to content

Commit

Permalink
feat(ZMS-3460): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
manjencic committed Jan 23, 2025
1 parent 1105c6d commit f93b834
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ private function extractClientData(array $queryParams): object
return (object) [
'date' => isset($queryParams['date']) ? (string) $queryParams['date'] : null,
'officeIds' => isset($queryParams['officeId'])
? array_map('trim', explode(',', $queryParams['officeId']))
? array_map('trim', explode(',', (string) $queryParams['officeId']))
: [],
'serviceIds' => isset($queryParams['serviceId'])
? array_map('trim', explode(',', $queryParams['serviceId']))
? array_map('trim', explode(',', (string) $queryParams['serviceId']))
: [],
'serviceCounts' => isset($queryParams['serviceCount'])
? array_map('trim', explode(',', $queryParams['serviceCount']))
? array_map('trim', explode(',', (string) $queryParams['serviceCount']))
: []
];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ private function extractClientData(array $queryParams): object
{
$serviceCount = $queryParams['serviceCount'] ?? '';
$serviceCounts = !empty($serviceCount)
? array_map('trim', explode(',', $serviceCount))
? array_map('trim', explode(',', (string) $serviceCount))
: [];

return (object) [
'officeIds' => array_map('trim', explode(',', $queryParams['officeId'] ?? '')),
'serviceIds' => array_map('trim', explode(',', $queryParams['serviceId'] ?? '')),
'officeIds' => array_map('trim', explode(',', (string) $queryParams['officeId'] ?? '')),
'serviceIds' => array_map('trim', explode(',', (string) $queryParams['serviceId'] ?? '')),
'serviceCounts' => $serviceCounts,
'startDate' => $queryParams['startDate'] ?? null,
'endDate' => $queryParams['endDate'] ?? null
Expand Down

0 comments on commit f93b834

Please sign in to comment.