@@ -47,6 +47,6 @@ |
||
| 47 | 47 | $res = $ab->addAddress($address); |
| 48 | 48 | print_r($res); |
| 49 | 49 | } catch (ApiError $e) { |
| 50 | - echo $e->getCode() . PHP_EOL; |
|
| 51 | - echo $e->getMessage() . PHP_EOL; |
|
| 50 | + echo $e->getCode().PHP_EOL; |
|
| 51 | + echo $e->getMessage().PHP_EOL; |
|
| 52 | 52 | } |
@@ -7,8 +7,8 @@ discard block |
||
| 7 | 7 | |
| 8 | 8 | namespace Route4Me; |
| 9 | 9 | |
| 10 | -$root = realpath(dirname(__FILE__) . '/../../'); |
|
| 11 | -require $root . '/vendor/autoload.php'; |
|
| 10 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
| 11 | +require $root.'/vendor/autoload.php'; |
|
| 12 | 12 | |
| 13 | 13 | use Route4Me\Exception\ApiError; |
| 14 | 14 | use Route4Me\V5\AddressBook\AddressBook; |
@@ -23,6 +23,6 @@ discard block |
||
| 23 | 23 | $res = $ab->deleteAddressesByIds($addressIds); |
| 24 | 24 | print_r($res); |
| 25 | 25 | } catch (ApiError $e) { |
| 26 | - echo $e->getCode() . PHP_EOL; |
|
| 27 | - echo $e->getMessage() . PHP_EOL; |
|
| 26 | + echo $e->getCode().PHP_EOL; |
|
| 27 | + echo $e->getMessage().PHP_EOL; |
|
| 28 | 28 | } |
@@ -22,6 +22,6 @@ |
||
| 22 | 22 | $res = $ab->getAddressById($addressId); |
| 23 | 23 | print_r($res); |
| 24 | 24 | } catch (ApiError $e) { |
| 25 | - echo $e->getCode() . PHP_EOL; |
|
| 26 | - echo $e->getMessage() . PHP_EOL; |
|
| 25 | + echo $e->getCode().PHP_EOL; |
|
| 26 | + echo $e->getMessage().PHP_EOL; |
|
| 27 | 27 | } |
@@ -25,6 +25,6 @@ |
||
| 25 | 25 | $res = $ab->exportAddressesByIds($addressIds, $filename); |
| 26 | 26 | print_r($res); |
| 27 | 27 | } catch (ApiError $e) { |
| 28 | - echo $e->getCode() . PHP_EOL; |
|
| 29 | - echo $e->getMessage() . PHP_EOL; |
|
| 28 | + echo $e->getCode().PHP_EOL; |
|
| 29 | + echo $e->getMessage().PHP_EOL; |
|
| 30 | 30 | } |
@@ -44,6 +44,6 @@ |
||
| 44 | 44 | $res = $ab->getAddressesPaginated($options); |
| 45 | 45 | print_r($res); |
| 46 | 46 | } catch (ApiError $e) { |
| 47 | - echo $e->getCode() . PHP_EOL; |
|
| 48 | - echo $e->getMessage() . PHP_EOL; |
|
| 47 | + echo $e->getCode().PHP_EOL; |
|
| 48 | + echo $e->getMessage().PHP_EOL; |
|
| 49 | 49 | } |
@@ -48,6 +48,6 @@ |
||
| 48 | 48 | $res = $ab->getAddresses($options); |
| 49 | 49 | print_r($res); |
| 50 | 50 | } catch (ApiError $e) { |
| 51 | - echo $e->getCode() . PHP_EOL; |
|
| 52 | - echo $e->getMessage() . PHP_EOL; |
|
| 51 | + echo $e->getCode().PHP_EOL; |
|
| 52 | + echo $e->getMessage().PHP_EOL; |
|
| 53 | 53 | } |
@@ -7,8 +7,8 @@ discard block |
||
| 7 | 7 | |
| 8 | 8 | namespace Route4Me; |
| 9 | 9 | |
| 10 | -$root = realpath(dirname(__FILE__) . '/../../'); |
|
| 11 | -require $root . '/vendor/autoload.php'; |
|
| 10 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
| 11 | +require $root.'/vendor/autoload.php'; |
|
| 12 | 12 | |
| 13 | 13 | use Route4Me\Exception\ApiError; |
| 14 | 14 | use Route4Me\V5\AddressBook\AddressBook; |
@@ -35,6 +35,6 @@ discard block |
||
| 35 | 35 | $res = $ab->deleteAddressesByAreas($filter); |
| 36 | 36 | print_r($res); |
| 37 | 37 | } catch (ApiError $e) { |
| 38 | - echo $e->getCode() . PHP_EOL; |
|
| 39 | - echo $e->getMessage() . PHP_EOL; |
|
| 38 | + echo $e->getCode().PHP_EOL; |
|
| 39 | + echo $e->getMessage().PHP_EOL; |
|
| 40 | 40 | } |
@@ -40,6 +40,6 @@ |
||
| 40 | 40 | $res = $ab->updateAddressesByIds($addressIds, $address); |
| 41 | 41 | print_r($res); |
| 42 | 42 | } catch (ApiError $e) { |
| 43 | - echo $e->getCode() . PHP_EOL; |
|
| 44 | - echo $e->getMessage() . PHP_EOL; |
|
| 43 | + echo $e->getCode().PHP_EOL; |
|
| 44 | + echo $e->getMessage().PHP_EOL; |
|
| 45 | 45 | } |
@@ -40,6 +40,6 @@ |
||
| 40 | 40 | $res = $ab->exportAddressesByAreas($filter); |
| 41 | 41 | print_r($res); |
| 42 | 42 | } catch (ApiError $e) { |
| 43 | - echo $e->getCode() . PHP_EOL; |
|
| 44 | - echo $e->getMessage() . PHP_EOL; |
|
| 43 | + echo $e->getCode().PHP_EOL; |
|
| 44 | + echo $e->getMessage().PHP_EOL; |
|
| 45 | 45 | } |