Skip to content

Commit

Permalink
Fixes conversion of snake to camelCase for method names
Browse files Browse the repository at this point in the history
  • Loading branch information
johnvanbreda committed Feb 5, 2019
1 parent fea9dac commit dae1f31
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/rest_api/controllers/services/rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -639,8 +639,7 @@ public function __call($name, $arguments) {
elseif ($this->method === 'POST') {
$this->request = $_POST;
}

$methodName = lcfirst(ucwords($name, '-')) . ucfirst(strtolower($this->method));
$methodName = lcfirst(str_replace('_', '', ucwords($name, '_'))) . ucfirst(strtolower($this->method));
$this->checkVersion($arguments);

$requestForId = NULL;
Expand Down

0 comments on commit dae1f31

Please sign in to comment.