Modified formatting

Made Polyline PHP 5.2 compatible
This commit is contained in:
Justin Foell
2017-12-26 13:22:22 -06:00
parent abbdf7af95
commit 04cfda401a
5 changed files with 171 additions and 156 deletions
+13 -14
View File
@@ -3,18 +3,17 @@
* Routes is a class wrapper for the Strava REST API functions.
*/
class WPStrava_Routes
{
const ROUTES_URL = 'http://app.strava.com/routes/';
class WPStrava_Routes {
const ROUTES_URL = 'http://app.strava.com/routes/';
/**
* Get single route by ID.
*
* @param int $route_id ID of activity to retrieve.
* @return object stdClass representing this route.
* @author Daniel Lintott
*/
public function getRoute($route_id ) {
return WPStrava::get_instance()->get_api()->get( "routes/{$route_id}" );
} // getRouteDetails
}
/**
* Get single route by ID.
*
* @param int $route_id ID of activity to retrieve.
* @return object stdClass representing this route.
* @author Daniel Lintott
*/
public function get_route( $route_id ) {
return WPStrava::get_instance()->get_api()->get( "routes/{$route_id}" );
}
}