Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
code optimations: replaced call_user_func[_array] by () or ->() or ::…
Browse files Browse the repository at this point in the history
…() if possible | replaced call_user_funx_array by call_user_func if possible | removed double ';;' | check if DIRECTORY_SEPARATOR is already a backslash (windows) | replaced strripos by strrpos to find the last backslash
  • Loading branch information
marc-mabe committed Jul 28, 2010
6 parents cf3e018 + 490086e + 50418c6 + 0b49cb4 + 325fdd2 + 0c61247 commit 9ad7896
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -964,9 +964,11 @@ public function _doRequest(Client\Common $client, $request, $location, $action,
{
// Perform request as is
if ($one_way == null) {
return call_user_func(array($client,'SoapClient::__doRequest'), $request, $location, $action, $version);
$client->__doRequest($request, $location, $action, $version);
// return call_user_func(array($client,'SoapClient::__doRequest'), $request, $location, $action, $version);
} else {
return call_user_func(array($client,'SoapClient::__doRequest'), $request, $location, $action, $version, $one_way);
$client->__doRequest($request, $location, $action, $version, $one_way);
// return call_user_func(array($client,'SoapClient::__doRequest'), $request, $location, $action, $version, $one_way);
}
}

Expand Down

0 comments on commit 9ad7896

Please sign in to comment.