Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Mar 10, 2017
1 parent 3a47705 commit 0665e76
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Hprose/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* *
* hprose service class for php 5.3+ *
* *
* LastModified: Mar 7, 2017 *
* LastModified: Mar 10, 2017 *
* Author: Ma Bingyao <[email protected]> *
* *
\**********************************************************/
Expand Down Expand Up @@ -639,7 +639,7 @@ public function addAsyncMissingFunction($func, array $options = array()) {
public function addFunctions(array $funcs,
array $aliases = array(),
array $options = array()) {
if (!empty($aliases) && empty($options) && (array_keys($funcs) != array_key($aliases))) {
if (!empty($aliases) && empty($options) && (array_keys($funcs) != array_keys($aliases))) {
$options = $aliases;
$aliases = array();
}
Expand All @@ -662,7 +662,7 @@ public function addFunctions(array $funcs,
public function addAsyncFunctions(array $funcs,
array $aliases = array(),
array $options = array()) {
if (!empty($aliases) && empty($options) && (array_keys($funcs) != array_key($aliases))) {
if (!empty($aliases) && empty($options) && (array_keys($funcs) != array_keys($aliases))) {
$options = $aliases;
$aliases = array();
}
Expand Down Expand Up @@ -701,7 +701,7 @@ public function addMethods($methods,
}
$aliases = array();
}
else if (!empty($aliases) && empty($options) && (array_keys($methods) != array_key($aliases))) {
else if (!empty($aliases) && empty($options) && (array_keys($methods) != array_keys($aliases))) {
$options = $aliases;
$aliases = array();
}
Expand Down Expand Up @@ -733,7 +733,7 @@ public function addAsyncMethods($methods,
}
$aliases = array();
}
else if (!empty($aliases) && empty($options) && (array_keys($methods) != array_key($aliases))) {
else if (!empty($aliases) && empty($options) && (array_keys($methods) != array_keys($aliases))) {
$options = $aliases;
$aliases = array();
}
Expand Down

0 comments on commit 0665e76

Please sign in to comment.