This commit is contained in:
Andreas Schamberger
2011-12-04 17:29:50 +01:00
parent c7e8928dfa
commit a39af089f4
2 changed files with 8 additions and 6 deletions

View File

@ -89,7 +89,7 @@ class WsSecurityKey
*/
public function hasKeys()
{
return !is_null($this->privateKey) && !is_null($this->publicKey);
return null !== $this->privateKey && null !== $this->publicKey;
}
/**
@ -99,7 +99,7 @@ class WsSecurityKey
*/
public function hasPrivateKey()
{
return !is_null($this->privateKey);
return null !== $this->privateKey;
}
/**
@ -109,6 +109,6 @@ class WsSecurityKey
*/
public function hasPublicKey()
{
return !is_null($this->publicKey);
return null !== $this->publicKey;
}
}