@@ -12,11 +12,11 @@ |
||
12 | 12 | |
13 | 13 | // The example refers to the process of getting the address book locations by a group ID. |
14 | 14 | |
15 | -$groupIds=$abGroup->getAddressBookGroupIdByName( 'Louisville Group Temp'); |
|
15 | +$groupIds = $abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
16 | 16 | |
17 | 17 | if ($groupIds==null) { |
18 | 18 | include('CreateAddressBookGroup.php'); |
19 | - $groupIds=$abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
19 | + $groupIds = $abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | $searchParameters = [ |
@@ -20,7 +20,7 @@ |
||
20 | 20 | |
21 | 21 | $randomGroup = $abGroup->getRandomAddressBookGroup($addressBookGroupParameters); |
22 | 22 | |
23 | -if (assert(null != $randomGroup, 'Cannot get a random address book group')); |
|
23 | +if (assert(null!=$randomGroup, 'Cannot get a random address book group')); |
|
24 | 24 | |
25 | 25 | // Get the address book group by group_id |
26 | 26 | $groupId = $randomGroup['group_id']; |
@@ -14,14 +14,14 @@ |
||
14 | 14 | // Note: you can find the allowed colors for the address book group at this link: |
15 | 15 | // https://github.com/route4me/route4me-json-schemas/blob/master/ColorSamples/AddressBookGroupAvailableColors.png |
16 | 16 | |
17 | -$groupIds=$abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
17 | +$groupIds = $abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
18 | 18 | |
19 | 19 | if ($groupIds==null) { |
20 | 20 | include('CreateAddressBookGroup.php'); |
21 | - $groupIds=$abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
21 | + $groupIds = $abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
22 | 22 | } |
23 | 23 | |
24 | -$updateParameters= [ |
|
24 | +$updateParameters = [ |
|
25 | 25 | 'group_id' => $groupIds[0], |
26 | 26 | 'group_color' => '7bd148' |
27 | 27 | ]; |
@@ -12,14 +12,14 @@ |
||
12 | 12 | |
13 | 13 | // The example refers to the process of removing an address book group from a user's account. |
14 | 14 | |
15 | -$groupIds=$abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
15 | +$groupIds = $abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
16 | 16 | |
17 | 17 | if ($groupIds==null) { |
18 | 18 | include('CreateAddressBookGroup.php'); |
19 | - $groupIds=$abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
19 | + $groupIds = $abGroup->getAddressBookGroupIdByName('Louisville Group Temp'); |
|
20 | 20 | } |
21 | 21 | |
22 | -$updateParameters= [ |
|
22 | +$updateParameters = [ |
|
23 | 23 | 'group_id' => $groupIds[0] |
24 | 24 | ]; |
25 | 25 |
@@ -14,7 +14,7 @@ |
||
14 | 14 | // Note: you can find the allowed colors for the address book group at this link: |
15 | 15 | // https://github.com/route4me/route4me-json-schemas/blob/master/ColorSamples/AddressBookGroupAvailableColors.png |
16 | 16 | |
17 | -$createParameters= [ |
|
17 | +$createParameters = [ |
|
18 | 18 | 'group_name' => 'Louisville Group Temp', |
19 | 19 | 'group_color' => '92e1c0', |
20 | 20 | 'filter' => [ |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | $address_id = $abcResult['address_id']; |
31 | 31 | } |
32 | 32 | |
33 | -assert($address_id != -1, 'Cannot create an address book location. <br><br>'); |
|
33 | +assert($address_id!=-1, 'Cannot create an address book location. <br><br>'); |
|
34 | 34 | |
35 | 35 | echo 'Address Book Location with <b>address_id = '.strval($address_id).'</b> and <b>first_name = '.$abcResult['first_name'].'</b> was successfully added<br>'; |
36 | 36 | |
@@ -40,6 +40,6 @@ discard block |
||
40 | 40 | |
41 | 41 | assert(isset($abcResult['first_name']), 'Cannot update the address book location. <br><br>'); |
42 | 42 | |
43 | -assert('Test First Name Updated' == $abcResult['first_name'], 'Cannot update the address book location. <br><br>'); |
|
43 | +assert('Test First Name Updated'==$abcResult['first_name'], 'Cannot update the address book location. <br><br>'); |
|
44 | 44 | |
45 | 45 | echo 'The field <b>first_name</b> in the address book location <b>'.$address_id.'</b> was update to <b>Test First Name Updated</b> successfuly <br>'; |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | $avoidanceZone = new AvoidanceZone(); |
32 | 32 | |
33 | -$result = (array) $avoidanceZone->addAvoidanceZone($avoidanceZoneParameters); |
|
33 | +$result = (array)$avoidanceZone->addAvoidanceZone($avoidanceZoneParameters); |
|
34 | 34 | |
35 | 35 | assert(isset($result), 'Failed to create new Avoidance Zone'); |
36 | 36 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | $avoidanceZone = new AvoidanceZone(); |
32 | 32 | |
33 | -$result = (array) $avoidanceZone->addAvoidanceZone($avoidanceZoneParameters); |
|
33 | +$result = (array)$avoidanceZone->addAvoidanceZone($avoidanceZoneParameters); |
|
34 | 34 | |
35 | 35 | assert(isset($result), 'Failed to create new Avoidance Zone'); |
36 | 36 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | $avoidanceZone = new AvoidanceZone(); |
32 | 32 | |
33 | -$result = (array) $avoidanceZone->addAvoidanceZone($avoidanceZoneParameters); |
|
33 | +$result = (array)$avoidanceZone->addAvoidanceZone($avoidanceZoneParameters); |
|
34 | 34 | |
35 | 35 | assert(isset($result), 'Failed to create new Avoidance Zone'); |
36 | 36 |