mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-22 16:02:54 +03:00
Merge branch 'Caine85-patch-2' into hotfix
This commit is contained in:
commit
cc7399c23f
1 changed files with 3 additions and 3 deletions
|
@ -39,21 +39,21 @@ class Appointments implements ParsersInterface {
|
||||||
'googleCalendarId' => $response['id_google_calendar'] !== NULL ? (int)$response['id_google_calendar'] : NULL
|
'googleCalendarId' => $response['id_google_calendar'] !== NULL ? (int)$response['id_google_calendar'] : NULL
|
||||||
];
|
];
|
||||||
|
|
||||||
if (array_key_exists('provider', $response))
|
if (isset($response['provider']))
|
||||||
{
|
{
|
||||||
$providerParser = new Providers();
|
$providerParser = new Providers();
|
||||||
$providerParser->encode($response['provider']);
|
$providerParser->encode($response['provider']);
|
||||||
$encodedResponse['provider'] = $response['provider'];
|
$encodedResponse['provider'] = $response['provider'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists('customer', $response))
|
if (isset($response['customer']))
|
||||||
{
|
{
|
||||||
$customerParser = new Customers();
|
$customerParser = new Customers();
|
||||||
$customerParser->encode($response['customer']);
|
$customerParser->encode($response['customer']);
|
||||||
$encodedResponse['customer'] = $response['customer'];
|
$encodedResponse['customer'] = $response['customer'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array_key_exists('service', $response))
|
if (isset($response['service']))
|
||||||
{
|
{
|
||||||
$serviceParser = new Services();
|
$serviceParser = new Services();
|
||||||
$serviceParser->encode($response['service']);
|
$serviceParser->encode($response['service']);
|
||||||
|
|
Loading…
Reference in a new issue