@@ -65,14 +65,14 @@ |
||
65 | 65 | |
66 | 66 | public function __construct(array $links = null, array $meta = null) |
67 | 67 | { |
68 | - if ($links !== null && is_array($links)) { |
|
68 | + if ($links!==null && is_array($links)) { |
|
69 | 69 | $this->url_of_first_page = Common::getValue($links, 'first'); |
70 | 70 | $this->url_of_last_page = Common::getValue($links, 'last'); |
71 | 71 | $this->url_of_previous_page = Common::getValue($links, 'prev'); |
72 | 72 | $this->url_of_next_page = Common::getValue($links, 'next'); |
73 | 73 | } |
74 | 74 | |
75 | - if ($meta !== null && is_array($meta)) { |
|
75 | + if ($meta!==null && is_array($meta)) { |
|
76 | 76 | $this->number_of_current_page = Common::getValue($meta, 'current_page'); |
77 | 77 | $this->number_of_last_page = Common::getValue($meta, 'last_page'); |
78 | 78 | $this->items_per_page = Common::getValue($meta, 'per_page'); |
@@ -45,7 +45,7 @@ |
||
45 | 45 | |
46 | 46 | public function __construct(?array $params = null) |
47 | 47 | { |
48 | - if ($params !== null) { |
|
48 | + if ($params!==null) { |
|
49 | 49 | $this->fillFromArray($params); |
50 | 50 | } |
51 | 51 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | public function getSchedule(string $scheduleId) : Schedule |
68 | 68 | { |
69 | 69 | return $this->toSchedule(Route4Me::makeRequst([ |
70 | - 'url' => Endpoint::RECURRING_ROUTES_SCHEDULES . '/' . $scheduleId, |
|
70 | + 'url' => Endpoint::RECURRING_ROUTES_SCHEDULES.'/'.$scheduleId, |
|
71 | 71 | 'method' => 'GET' |
72 | 72 | ])); |
73 | 73 | } |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | 'advance_interval', 'advance_schedule_interval_days', 'schedule', 'timezone']; |
164 | 164 | |
165 | 165 | return $this->toSchedule(Route4Me::makeRequst([ |
166 | - 'url' => Endpoint::RECURRING_ROUTES_SCHEDULES . '/' . $scheduleId, |
|
166 | + 'url' => Endpoint::RECURRING_ROUTES_SCHEDULES.'/'.$scheduleId, |
|
167 | 167 | 'method' => 'PUT', |
168 | 168 | 'HTTPHEADER' => 'Content-Type: application/json', |
169 | 169 | 'body' => Route4Me::generateRequestParameters($allBodyFields, $params) |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | public function deleteSchedule(string $scheduleId, bool $withRoutes = false) : Schedule |
186 | 186 | { |
187 | 187 | return $this->toSchedule(Route4Me::makeRequst([ |
188 | - 'url' => Endpoint::RECURRING_ROUTES_SCHEDULES . '/' . $scheduleId, |
|
188 | + 'url' => Endpoint::RECURRING_ROUTES_SCHEDULES.'/'.$scheduleId, |
|
189 | 189 | 'method' => 'DELETE', |
190 | 190 | 'query' => ['with_routes' => $withRoutes] |
191 | 191 | ])); |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | public function getRouteSchedule(string $route_id) : RouteSchedule |
229 | 229 | { |
230 | 230 | return $this->toRouteSchedule(Route4Me::makeRequst([ |
231 | - 'url' => Endpoint::RECURRING_ROUTES_ROUTE_SCHEDULES . '/' . $route_id, |
|
231 | + 'url' => Endpoint::RECURRING_ROUTES_ROUTE_SCHEDULES.'/'.$route_id, |
|
232 | 232 | 'method' => 'GET' |
233 | 233 | ])); |
234 | 234 | } |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | $allBodyFields = ['schedule_uid', 'member_id', 'vehicle_id']; |
318 | 318 | |
319 | 319 | return $this->toRouteSchedule(Route4Me::makeRequst([ |
320 | - 'url' => Endpoint::RECURRING_ROUTES_ROUTE_SCHEDULES . '/' . $route_id, |
|
320 | + 'url' => Endpoint::RECURRING_ROUTES_ROUTE_SCHEDULES.'/'.$route_id, |
|
321 | 321 | 'method' => 'PUT', |
322 | 322 | 'HTTPHEADER' => 'Content-Type: application/json', |
323 | 323 | 'body' => Route4Me::generateRequestParameters($allBodyFields, $params) |
@@ -337,10 +337,10 @@ discard block |
||
337 | 337 | public function deleteRouteSchedules(string $route_id) : bool |
338 | 338 | { |
339 | 339 | $result = Route4Me::makeRequst([ |
340 | - 'url' => Endpoint::RECURRING_ROUTES_ROUTE_SCHEDULES . '/' . $route_id, |
|
340 | + 'url' => Endpoint::RECURRING_ROUTES_ROUTE_SCHEDULES.'/'.$route_id, |
|
341 | 341 | 'method' => 'DELETE' |
342 | 342 | ]); |
343 | - return ($result == 1 ? true : false); |
|
343 | + return ($result==1 ? true : false); |
|
344 | 344 | } |
345 | 345 | |
346 | 346 | /** |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | public function deleteRouteSchedule(string $route_id) : RouteSchedule |
356 | 356 | { |
357 | 357 | return $this->toRouteSchedule(Route4Me::makeRequst([ |
358 | - 'url' => Endpoint::RECURRING_ROUTES_ROUTE_SCHEDULES . '/' . $route_id . '/items', |
|
358 | + 'url' => Endpoint::RECURRING_ROUTES_ROUTE_SCHEDULES.'/'.$route_id.'/items', |
|
359 | 359 | 'method' => 'DELETE' |
360 | 360 | ])); |
361 | 361 | } |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | 'advance_interval', 'advance_schedule_interval_days', 'schedule', 'timezone']; |
387 | 387 | |
388 | 388 | return $this->toRouteSchedule(Route4Me::makeRequst([ |
389 | - 'url' => Endpoint::RECURRING_ROUTES_ROUTE_SCHEDULES_REPLACE . '/' . $route_id, |
|
389 | + 'url' => Endpoint::RECURRING_ROUTES_ROUTE_SCHEDULES_REPLACE.'/'.$route_id, |
|
390 | 390 | 'method' => 'PUT', |
391 | 391 | 'HTTPHEADER' => 'Content-Type: application/json', |
392 | 392 | 'body' => Route4Me::generateRequestParameters($allBodyFields, $params) |
@@ -407,7 +407,7 @@ discard block |
||
407 | 407 | public function getRouteSchedulePreview(string $route_id, string $start, string $end) : array |
408 | 408 | { |
409 | 409 | return Route4Me::makeRequst([ |
410 | - 'url' => Endpoint::RECURRING_ROUTES_ROUTE_SCHEDULES . '/' . $route_id . '/preview', |
|
410 | + 'url' => Endpoint::RECURRING_ROUTES_ROUTE_SCHEDULES.'/'.$route_id.'/preview', |
|
411 | 411 | 'method' => 'GET', |
412 | 412 | 'query' => ['start' => $start, 'end' => $end] |
413 | 413 | ]); |
@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | public function isScheduledRouteCopy(string $route_id) : bool |
427 | 427 | { |
428 | 428 | return Route4Me::makeRequst([ |
429 | - 'url' => Endpoint::RECURRING_ROUTES_SCHEDULED_ROUTES_IS_COPY . '/' . $route_id, |
|
429 | + 'url' => Endpoint::RECURRING_ROUTES_SCHEDULED_ROUTES_IS_COPY.'/'.$route_id, |
|
430 | 430 | 'method' => 'GET' |
431 | 431 | ]); |
432 | 432 | } |