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

Commit

Permalink
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Adapter/DbTable/AbstractAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function setCredentialColumn($credentialColumn)
public function setAmbiguityIdentity($flag)
{
if (is_int($flag)) {
$this->ambiguityIdentity = (1 === $flag ? true : false);
$this->ambiguityIdentity = (1 === $flag);
} elseif (is_bool($flag)) {
$this->ambiguityIdentity = $flag;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function __construct($code, $identity, array $messages = array())
*/
public function isValid()
{
return ($this->code > 0) ? true : false;
return ($this->code > 0);
}

/**
Expand Down

0 comments on commit 27f99e1

Please sign in to comment.