@@ -20,5 +20,5 @@ |
||
| 20 | 20 | $schedule = $schedules->getRouteSchedule('66C2AC4A323053FF0A40FEB6918ACF5E'); |
| 21 | 21 | print_r($schedule); |
| 22 | 22 | } catch (\Exception $e) { |
| 23 | - echo $e->getMessage() . PHP_EOL; |
|
| 23 | + echo $e->getMessage().PHP_EOL; |
|
| 24 | 24 | } |
@@ -20,5 +20,5 @@ |
||
| 20 | 20 | $schedule = $schedules->deleteSchedule('1515E9A65DD2DEF79CAD7A7E68D91515'); |
| 21 | 21 | print_r($schedule); |
| 22 | 22 | } catch (\Exception $e) { |
| 23 | - echo $e->getMessage() . PHP_EOL; |
|
| 23 | + echo $e->getMessage().PHP_EOL; |
|
| 24 | 24 | } |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | |
| 31 | 31 | $res = $schedules->createMasterRoute($params); |
| 32 | 32 | |
| 33 | - echo var_export($res) . PHP_EOL; |
|
| 33 | + echo var_export($res).PHP_EOL; |
|
| 34 | 34 | } catch (\Exception $e) { |
| 35 | - echo $e->getMessage() . PHP_EOL; |
|
| 35 | + echo $e->getMessage().PHP_EOL; |
|
| 36 | 36 | } |
@@ -28,5 +28,5 @@ |
||
| 28 | 28 | |
| 29 | 29 | print_r($schedule); |
| 30 | 30 | } catch (\Exception $e) { |
| 31 | - echo $e->getMessage() . PHP_EOL; |
|
| 31 | + echo $e->getMessage().PHP_EOL; |
|
| 32 | 32 | } |
@@ -29,5 +29,5 @@ |
||
| 29 | 29 | |
| 30 | 30 | print_r($schedule); |
| 31 | 31 | } catch (\Exception $e) { |
| 32 | - echo $e->getMessage() . PHP_EOL; |
|
| 32 | + echo $e->getMessage().PHP_EOL; |
|
| 33 | 33 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | $schedules = new Schedules(); |
| 19 | 19 | |
| 20 | 20 | $res = $schedules->isScheduledRouteCopy('66C2AC4A323053FF0A40FEB6918ACF5E'); |
| 21 | - echo var_export($res) . PHP_EOL; |
|
| 21 | + echo var_export($res).PHP_EOL; |
|
| 22 | 22 | } catch (\Exception $e) { |
| 23 | - echo $e->getMessage() . PHP_EOL; |
|
| 23 | + echo $e->getMessage().PHP_EOL; |
|
| 24 | 24 | } |
@@ -23,5 +23,5 @@ |
||
| 23 | 23 | $schedule = $schedules->getRouteSchedulePreview($route_id, $start, $end); |
| 24 | 24 | print_r($schedule); |
| 25 | 25 | } catch (\Exception $e) { |
| 26 | - echo $e->getMessage() . PHP_EOL; |
|
| 26 | + echo $e->getMessage().PHP_EOL; |
|
| 27 | 27 | } |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | $result = $schedules->getAllSchedules(); |
| 108 | 108 | |
| 109 | 109 | $this->assertIsArray($result); |
| 110 | - if (count($result) > 0) { |
|
| 110 | + if (count($result)>0) { |
|
| 111 | 111 | $this->assertInstanceOf(Schedule::class, $result[0]); |
| 112 | 112 | } |
| 113 | 113 | } |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | |
| 120 | 120 | $this->assertIsArray($result); |
| 121 | 121 | $this->assertArrayHasKey('schedules', $result); |
| 122 | - if (count($result['schedules']) > 0) { |
|
| 122 | + if (count($result['schedules'])>0) { |
|
| 123 | 123 | $this->assertInstanceOf(Schedule::class, $result['schedules'][0]); |
| 124 | 124 | } |
| 125 | 125 | $this->assertArrayHasKey('page_info', $result); |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | $result = $schedules->getAllRouteSchedules(); |
| 180 | 180 | |
| 181 | 181 | $this->assertIsArray($result); |
| 182 | - if (count($result) > 0) { |
|
| 182 | + if (count($result)>0) { |
|
| 183 | 183 | $this->assertInstanceOf(RouteSchedule::class, $result[0]); |
| 184 | 184 | } |
| 185 | 185 | } |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | |
| 192 | 192 | $this->assertIsArray($result); |
| 193 | 193 | $this->assertArrayHasKey('route_schedules', $result); |
| 194 | - if (count($result['route_schedules']) > 0) { |
|
| 194 | + if (count($result['route_schedules'])>0) { |
|
| 195 | 195 | $this->assertInstanceOf(RouteSchedule::class, $result['route_schedules'][0]); |
| 196 | 196 | } |
| 197 | 197 | $this->assertArrayHasKey('page_info', $result); |
@@ -14,51 +14,51 @@ discard block |
||
| 14 | 14 | |
| 15 | 15 | // <editor-fold defaultstate="collapsed" desc="region Routes"> |
| 16 | 16 | |
| 17 | - const Routes = self::MAIN_HOST . "/routes"; |
|
| 18 | - const RoutesDuplicate = self::MAIN_HOST . "/routes/duplicate"; |
|
| 19 | - const RoutesMerge = self::MAIN_HOST . "/routes/merge"; |
|
| 20 | - const RoutesPaginate = self::MAIN_HOST . "/routes/paginate"; |
|
| 21 | - const RoutesFallbackPaginate = self::MAIN_HOST . "/routes/fallback/paginate"; |
|
| 22 | - const RoutesFallbackDatatable = self::MAIN_HOST . "/routes/fallback/datatable"; |
|
| 23 | - const RoutesFallback = self::MAIN_HOST . "/routes/fallback"; |
|
| 24 | - const RoutesReindexCallback = self::MAIN_HOST . "/routes/reindex-callback"; |
|
| 25 | - const RoutesDatatable = self::MAIN_HOST . "/routes/datatable"; |
|
| 26 | - const RoutesDatatableConfig = self::MAIN_HOST . "/routes/datatable/config"; |
|
| 27 | - const RoutesDatatableConfigFallback = self::MAIN_HOST . "/routes/fallback/datatable/config"; |
|
| 17 | + const Routes = self::MAIN_HOST."/routes"; |
|
| 18 | + const RoutesDuplicate = self::MAIN_HOST."/routes/duplicate"; |
|
| 19 | + const RoutesMerge = self::MAIN_HOST."/routes/merge"; |
|
| 20 | + const RoutesPaginate = self::MAIN_HOST."/routes/paginate"; |
|
| 21 | + const RoutesFallbackPaginate = self::MAIN_HOST."/routes/fallback/paginate"; |
|
| 22 | + const RoutesFallbackDatatable = self::MAIN_HOST."/routes/fallback/datatable"; |
|
| 23 | + const RoutesFallback = self::MAIN_HOST."/routes/fallback"; |
|
| 24 | + const RoutesReindexCallback = self::MAIN_HOST."/routes/reindex-callback"; |
|
| 25 | + const RoutesDatatable = self::MAIN_HOST."/routes/datatable"; |
|
| 26 | + const RoutesDatatableConfig = self::MAIN_HOST."/routes/datatable/config"; |
|
| 27 | + const RoutesDatatableConfigFallback = self::MAIN_HOST."/routes/fallback/datatable/config"; |
|
| 28 | 28 | |
| 29 | 29 | // </editor-fold> |
| 30 | 30 | |
| 31 | 31 | // <editor-fold defaultstate="collapsed" desc="Team Users"> |
| 32 | 32 | |
| 33 | - const TeamUsers = self::MAIN_HOST . "/team/users"; |
|
| 34 | - const TeamUsersBulkCreate = self::MAIN_HOST . "/team/bulk-insert"; |
|
| 35 | - const DriverReview = self::MAIN_HOST . "/driver-reviews"; |
|
| 33 | + const TeamUsers = self::MAIN_HOST."/team/users"; |
|
| 34 | + const TeamUsersBulkCreate = self::MAIN_HOST."/team/bulk-insert"; |
|
| 35 | + const DriverReview = self::MAIN_HOST."/driver-reviews"; |
|
| 36 | 36 | |
| 37 | 37 | // </editor-fold> |
| 38 | 38 | |
| 39 | - const ACCOUNT_PROFILE = self::MAIN_HOST . "/profile-api"; |
|
| 39 | + const ACCOUNT_PROFILE = self::MAIN_HOST."/profile-api"; |
|
| 40 | 40 | |
| 41 | 41 | // <editor-fold defaultstate="collapsed" desc="Vehicles"> |
| 42 | 42 | |
| 43 | - const Vehicles = self::MAIN_HOST . "/vehicles"; |
|
| 44 | - const VehicleTemporary = self::MAIN_HOST . "/vehicles/assign"; |
|
| 45 | - const VehicleExecuteOrder = self::MAIN_HOST . "/vehicles/execute"; |
|
| 46 | - const VehicleLocation = self::MAIN_HOST . "/vehicles/location"; |
|
| 47 | - const VehicleProfiles = self::MAIN_HOST . "/vehicle-profiles"; |
|
| 48 | - const VehicleLicense = self::MAIN_HOST . "/vehicles/license"; |
|
| 49 | - const VehicleSearch = self::MAIN_HOST . "/vehicles/search"; |
|
| 50 | - |
|
| 51 | - const RECURRING_ROUTES = self::MAIN_HOST . "/recurring-routes"; |
|
| 52 | - const RECURRING_ROUTES_SCHEDULES = self::MAIN_HOST . "/recurring-routes/schedules"; |
|
| 53 | - const RECURRING_ROUTES_SCHEDULES_PAGINATION = self::MAIN_HOST . "/recurring-routes/schedules/pagination"; |
|
| 54 | - const RECURRING_ROUTES_ROUTE_SCHEDULES = self::MAIN_HOST . "/recurring-routes/route-schedules"; |
|
| 43 | + const Vehicles = self::MAIN_HOST."/vehicles"; |
|
| 44 | + const VehicleTemporary = self::MAIN_HOST."/vehicles/assign"; |
|
| 45 | + const VehicleExecuteOrder = self::MAIN_HOST."/vehicles/execute"; |
|
| 46 | + const VehicleLocation = self::MAIN_HOST."/vehicles/location"; |
|
| 47 | + const VehicleProfiles = self::MAIN_HOST."/vehicle-profiles"; |
|
| 48 | + const VehicleLicense = self::MAIN_HOST."/vehicles/license"; |
|
| 49 | + const VehicleSearch = self::MAIN_HOST."/vehicles/search"; |
|
| 50 | + |
|
| 51 | + const RECURRING_ROUTES = self::MAIN_HOST."/recurring-routes"; |
|
| 52 | + const RECURRING_ROUTES_SCHEDULES = self::MAIN_HOST."/recurring-routes/schedules"; |
|
| 53 | + const RECURRING_ROUTES_SCHEDULES_PAGINATION = self::MAIN_HOST."/recurring-routes/schedules/pagination"; |
|
| 54 | + const RECURRING_ROUTES_ROUTE_SCHEDULES = self::MAIN_HOST."/recurring-routes/route-schedules"; |
|
| 55 | 55 | const RECURRING_ROUTES_ROUTE_SCHEDULES_PAGINATION = |
| 56 | - self::MAIN_HOST . "/recurring-routes/route-schedules/pagination"; |
|
| 57 | - const RECURRING_ROUTES_ROUTE_SCHEDULES_REPLACE = self::MAIN_HOST . "/recurring-routes/route-schedules/replace"; |
|
| 58 | - const RECURRING_ROUTES_SCHEDULED_ROUTES_IS_COPY = self::MAIN_HOST . "/recurring-routes/scheduled-routes/is-copy"; |
|
| 56 | + self::MAIN_HOST."/recurring-routes/route-schedules/pagination"; |
|
| 57 | + const RECURRING_ROUTES_ROUTE_SCHEDULES_REPLACE = self::MAIN_HOST."/recurring-routes/route-schedules/replace"; |
|
| 58 | + const RECURRING_ROUTES_SCHEDULED_ROUTES_IS_COPY = self::MAIN_HOST."/recurring-routes/scheduled-routes/is-copy"; |
|
| 59 | 59 | const RECURRING_ROUTES_SCHEDULED_ROUTES_GET_COPIES = |
| 60 | - self::MAIN_HOST . "/recurring-routes/scheduled-routes/get-copies"; |
|
| 61 | - const RECURRING_ROUTES_MASTER_ROUTES = self::MAIN_HOST . "/recurring-routes/master-routes"; |
|
| 60 | + self::MAIN_HOST."/recurring-routes/scheduled-routes/get-copies"; |
|
| 61 | + const RECURRING_ROUTES_MASTER_ROUTES = self::MAIN_HOST."/recurring-routes/master-routes"; |
|
| 62 | 62 | |
| 63 | 63 | // </editor-fold> |
| 64 | 64 | |
@@ -67,44 +67,44 @@ discard block |
||
| 67 | 67 | const STAGING_HOST = "https://virtserver.swaggerhub.com/Route4Me/telematics-gateway/1.0.0"; |
| 68 | 68 | |
| 69 | 69 | const TELEMATICS_CONNECTION = self::STAGING_HOST."/connections"; |
| 70 | - const TELEMATICS_CONNECTION_VEHICLES = self::STAGING_HOST . "/connections/{connection_token}/vehicles"; |
|
| 70 | + const TELEMATICS_CONNECTION_VEHICLES = self::STAGING_HOST."/connections/{connection_token}/vehicles"; |
|
| 71 | 71 | |
| 72 | - const TELEMATICS_ACCESS_TOKEN = self::STAGING_HOST . "/access-tokens"; |
|
| 73 | - const TELEMATICS_ACCESS_TOKEN_SCHEDULES = self::STAGING_HOST . "/access-token-schedules"; |
|
| 74 | - const TELEMATICS_ACCESS_TOKEN_SCHEDULE_ITEMS = self::STAGING_HOST . "/access-token-schedules/{schedule_id}/items"; |
|
| 72 | + const TELEMATICS_ACCESS_TOKEN = self::STAGING_HOST."/access-tokens"; |
|
| 73 | + const TELEMATICS_ACCESS_TOKEN_SCHEDULES = self::STAGING_HOST."/access-token-schedules"; |
|
| 74 | + const TELEMATICS_ACCESS_TOKEN_SCHEDULE_ITEMS = self::STAGING_HOST."/access-token-schedules/{schedule_id}/items"; |
|
| 75 | 75 | |
| 76 | - const TELEMATICS_VEHICLE_GROUPS = self::STAGING_HOST . "/vehicle-groups"; |
|
| 77 | - const TELEMATICS_VEHICLE_GROUPS_RELATION = self::STAGING_HOST . "/vehicle-groups/{vehicle_group_id}/{relation}"; |
|
| 78 | - const TELEMATICS_VEHICLES_RESLATION = self::STAGING_HOST . "/vehicles/{vehicle_id}/{relation}"; |
|
| 76 | + const TELEMATICS_VEHICLE_GROUPS = self::STAGING_HOST."/vehicle-groups"; |
|
| 77 | + const TELEMATICS_VEHICLE_GROUPS_RELATION = self::STAGING_HOST."/vehicle-groups/{vehicle_group_id}/{relation}"; |
|
| 78 | + const TELEMATICS_VEHICLES_RESLATION = self::STAGING_HOST."/vehicles/{vehicle_id}/{relation}"; |
|
| 79 | 79 | |
| 80 | - const TELEMATICS_INFO_MEMBERS = self::STAGING_HOST . "/info/members"; |
|
| 81 | - const TELEMATICS_INFO_VEHICLES = self::STAGING_HOST . "/info/vehicles"; |
|
| 82 | - const TELEMATICS_INFO_VEHICLE = self::STAGING_HOST . "/info/vehicle/{vehicle_id}/track"; |
|
| 83 | - const TELEMATICS_INFO_MODULES = self::STAGING_HOST . "/info/members"; |
|
| 80 | + const TELEMATICS_INFO_MEMBERS = self::STAGING_HOST."/info/members"; |
|
| 81 | + const TELEMATICS_INFO_VEHICLES = self::STAGING_HOST."/info/vehicles"; |
|
| 82 | + const TELEMATICS_INFO_VEHICLE = self::STAGING_HOST."/info/vehicle/{vehicle_id}/track"; |
|
| 83 | + const TELEMATICS_INFO_MODULES = self::STAGING_HOST."/info/members"; |
|
| 84 | 84 | |
| 85 | - const TELEMATICS_ADDRESSES = self::STAGING_HOST . "/addresses"; |
|
| 85 | + const TELEMATICS_ADDRESSES = self::STAGING_HOST."/addresses"; |
|
| 86 | 86 | |
| 87 | - const TELEMATICS_Errors = self::STAGING_HOST . "/errors"; |
|
| 87 | + const TELEMATICS_Errors = self::STAGING_HOST."/errors"; |
|
| 88 | 88 | |
| 89 | - const TELEMATICS_CUSTOMER_NOTIFICATIONS = self::STAGING_HOST . "/customers/{customer_id}/notifications"; |
|
| 90 | - const TELEMATICS_CUSTOMERS = self::STAGING_HOST . "/customers"; |
|
| 91 | - const TELEMATICS_CUSTOMER_ID = self::STAGING_HOST . "/customers/{customer_id}"; |
|
| 89 | + const TELEMATICS_CUSTOMER_NOTIFICATIONS = self::STAGING_HOST."/customers/{customer_id}/notifications"; |
|
| 90 | + const TELEMATICS_CUSTOMERS = self::STAGING_HOST."/customers"; |
|
| 91 | + const TELEMATICS_CUSTOMER_ID = self::STAGING_HOST."/customers/{customer_id}"; |
|
| 92 | 92 | |
| 93 | - const TELEMATICS_NOTIFICATION_SCHEDULE_ITEMS = self::STAGING_HOST . "/notification-schedules/{notification_schedule_id}/items"; |
|
| 94 | - const TELEMATICS_NOTIFICATION_SCHEDULES = self::STAGING_HOST . "/notification-schedules"; |
|
| 95 | - const TELEMATICS_NOTIFICATION_SCHEDULE_IS = self::STAGING_HOST . "/notification-schedules/{schedule_id}"; |
|
| 96 | - const TELEMATICS_ONETIME_NOTIFICATIONS = self::STAGING_HOST . "/one-time-notifications"; |
|
| 93 | + const TELEMATICS_NOTIFICATION_SCHEDULE_ITEMS = self::STAGING_HOST."/notification-schedules/{notification_schedule_id}/items"; |
|
| 94 | + const TELEMATICS_NOTIFICATION_SCHEDULES = self::STAGING_HOST."/notification-schedules"; |
|
| 95 | + const TELEMATICS_NOTIFICATION_SCHEDULE_IS = self::STAGING_HOST."/notification-schedules/{schedule_id}"; |
|
| 96 | + const TELEMATICS_ONETIME_NOTIFICATIONS = self::STAGING_HOST."/one-time-notifications"; |
|
| 97 | 97 | |
| 98 | 98 | const TELEMATICS_MEMBER = self::STAGING_HOST; |
| 99 | 99 | |
| 100 | - const TELEMATICS_MEMBER_MODULES = self::STAGING_HOST . "/user-activated-modules"; |
|
| 100 | + const TELEMATICS_MEMBER_MODULES = self::STAGING_HOST."/user-activated-modules"; |
|
| 101 | 101 | |
| 102 | - const TELEMATICS_MEMBER_MODULE_ID = self::STAGING_HOST . "/user-activated-modules/{module_id}"; |
|
| 103 | - const TELEMATICS_MEMBER_MODULE_VEHICLES = self::STAGING_HOST . "/user-activated-modules/{module_id}/vehicles"; |
|
| 104 | - const TELEMATICS_MEMBER_MODULE_VEHICLE_ID = self::STAGING_HOST . "/user-activated-modules/{module_id}/vehicles/{vehicle_id}"; |
|
| 102 | + const TELEMATICS_MEMBER_MODULE_ID = self::STAGING_HOST."/user-activated-modules/{module_id}"; |
|
| 103 | + const TELEMATICS_MEMBER_MODULE_VEHICLES = self::STAGING_HOST."/user-activated-modules/{module_id}/vehicles"; |
|
| 104 | + const TELEMATICS_MEMBER_MODULE_VEHICLE_ID = self::STAGING_HOST."/user-activated-modules/{module_id}/vehicles/{vehicle_id}"; |
|
| 105 | 105 | |
| 106 | - const TELEMATICS_VENDORS = self::STAGING_HOST . "/vendors"; |
|
| 107 | - const TELEMATICS_VENDOR_ID = self::STAGING_HOST . "/vendors/{vendor_id}"; |
|
| 106 | + const TELEMATICS_VENDORS = self::STAGING_HOST."/vendors"; |
|
| 107 | + const TELEMATICS_VENDOR_ID = self::STAGING_HOST."/vendors/{vendor_id}"; |
|
| 108 | 108 | |
| 109 | 109 | // </editor-fold> |
| 110 | 110 | } |
| 111 | 111 | \ No newline at end of file |