Skip to content

Commit

Permalink
Fixed typo error
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Jul 28, 2016
1 parent 3c8d21f commit dbb246a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Hprose/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* *
* hprose client class for php 5.3+ *
* *
* LastModified: Jul 27, 2016 *
* LastModified: Jul 28, 2016 *
* Author: Ma Bingyao <[email protected]> *
* *
\**********************************************************/
Expand All @@ -37,7 +37,7 @@ abstract class Client extends HandlerManager {
public $filters = array();
public $timeout = 30000;
public $retry = 10;
public $idempontent = false;
public $idempotent = false;
public $failswitch = false;
public $byref = false;
public $simple = false;
Expand Down Expand Up @@ -123,12 +123,12 @@ public final function setRetry($retry) {
$this->retry = $retry;
}

public final function isIdempontent() {
return $this->idempontent;
public final function isIdempotent() {
return $this->idempotent;
}

public final function setIdempontent($idempontent) {
$this->idempontent = $idempontent;
public final function setIdempotent($idempotent) {
$this->idempotent = $idempotent;
}

public final function isFailswitch() {
Expand Down Expand Up @@ -265,7 +265,7 @@ private function failswitch() {
if ($context->failswitch) {
$this->failswitch();
}
if ($context->idempontent) {
if ($context->idempotent) {
$n = $context->retry;
if ($n > 0) {
$context->retry = $n - 1;
Expand Down Expand Up @@ -358,7 +358,7 @@ private function getContext(InvokeSettings $settings) {
$context->byref = isset($settings->byref) ? $settings->byref : $this->byref;
$context->simple = isset($settings->simple) ? $settings->simple : $this->simple;
$context->failswitch = isset($settings->failswitch) ? $settings->failswitch : $this->failswitch;
$context->idempontent = isset($settings->idempontent) ? $settings->idempontent : $this->idempontent;
$context->idempotent = isset($settings->idempotent) ? $settings->idempotent : $this->idempotent;
$context->retry = isset($settings->retry) ? $settings->retry : $this->retry;
$context->timeout = isset($settings->timeout) ? $settings->timeout : $this->timeout;
return $context;
Expand Down

0 comments on commit dbb246a

Please sign in to comment.