Skip to content

Commit

Permalink
strict comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
rafrsr committed Jun 23, 2016
1 parent 07cd69d commit 51ff812
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/GenericApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,23 +65,23 @@ public function setMode($mode)
*/
public function isModeSandBox()
{
return $this->getMode() == $this::MODE_SANDBOX;
return $this->getMode() === $this::MODE_SANDBOX;
}

/**
* @return bool
*/
public function isModeLive()
{
return $this->getMode() == $this::MODE_LIVE;
return $this->getMode() === $this::MODE_LIVE;
}

/**
* @return bool
*/
public function isModeMock()
{
return $this->getMode() == $this::MODE_MOCK;
return $this->getMode() === $this::MODE_MOCK;
}

/**
Expand Down

0 comments on commit 51ff812

Please sign in to comment.