diff options
author | Andrey Andreev <narf@devilix.net> | 2017-12-27 18:49:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-27 18:49:03 +0100 |
commit | 3b470a6934a030c4bc57ac4c070539b5dd3e13b9 (patch) | |
tree | 5cca7a57a296006e09773b553a8159cc37316445 /system/libraries/Xmlrpcs.php | |
parent | fbae310a44e5d6fb3f962d148c80a60cd38c884a (diff) | |
parent | 7774e3846c525ff65c6d9b86aacb1cc3bc229e3e (diff) |
Merge pull request #5367 from carusogabriel/clean-elses
Clean elses
Diffstat (limited to 'system/libraries/Xmlrpcs.php')
-rw-r--r-- | system/libraries/Xmlrpcs.php | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/system/libraries/Xmlrpcs.php b/system/libraries/Xmlrpcs.php index 0274f13b6..7f760a088 100644 --- a/system/libraries/Xmlrpcs.php +++ b/system/libraries/Xmlrpcs.php @@ -402,15 +402,11 @@ class CI_Xmlrpcs extends CI_Xmlrpc { { return get_instance()->{$method_parts[1]}($m); } - else - { - return $this->object->{$method_parts[1]}($m); - } - } - else - { - return call_user_func($this->methods[$methName]['function'], $m); + + return $this->object->{$method_parts[1]}($m); } + + return call_user_func($this->methods[$methName]['function'], $m); } // -------------------------------------------------------------------- @@ -499,10 +495,8 @@ class CI_Xmlrpcs extends CI_Xmlrpc { return new XML_RPC_Response(new XML_RPC_Values($docstring, 'string')); } - else - { - return new XML_RPC_Response(0, $this->xmlrpcerr['introspect_unknown'], $this->xmlrpcstr['introspect_unknown']); - } + + return new XML_RPC_Response(0, $this->xmlrpcerr['introspect_unknown'], $this->xmlrpcstr['introspect_unknown']); } // -------------------------------------------------------------------- |