Skip to content

Commit

Permalink
Returning data on sub endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwedgbury committed May 11, 2020
1 parent f1f729d commit 6ada6a3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Requests/Extending/SubAll.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public static function all($parent_id, $options = [])
{
$parent = new self::$extends;
self::$endpoint = $parent::$endpoint."/$parent_id/".self::$endpoint;
self::_all($options);
return self::_all($options);
}
}
2 changes: 1 addition & 1 deletion src/Requests/Extending/SubCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public static function create($parent_id, $data)
{
$parent = new self::$extends;
self::$endpoint = $parent::$endpoint."/$parent_id/".self::$endpoint;
self::_create($data);
return self::_create($data);
}
}
2 changes: 1 addition & 1 deletion src/Requests/Extending/SubGet.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public static function get($parent_id, $id)
{
$parent = new self::$extends;
self::$endpoint = $parent::$endpoint."/$parent_id/".self::$endpoint;
self::_get($id);
return self::_get($id);
}
}
2 changes: 1 addition & 1 deletion src/Requests/Extending/SubUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ public static function update($parent_id, $id, $data)
{
$parent = new self::$extends;
self::$endpoint = $parent::$endpoint."/$parent_id/".self::$endpoint;
self::_update($id, $data);
return self::_update($id, $data);
}
}

0 comments on commit 6ada6a3

Please sign in to comment.