diff --git a/src/BeSimple/SoapCommon/WsSecurityKey.php b/src/BeSimple/SoapCommon/WsSecurityKey.php index 6eaf908..327b521 100644 --- a/src/BeSimple/SoapCommon/WsSecurityKey.php +++ b/src/BeSimple/SoapCommon/WsSecurityKey.php @@ -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; } } \ No newline at end of file diff --git a/src/BeSimple/SoapCommon/WsdlHandler.php b/src/BeSimple/SoapCommon/WsdlHandler.php index d358ba6..f0f533e 100644 --- a/src/BeSimple/SoapCommon/WsdlHandler.php +++ b/src/BeSimple/SoapCommon/WsdlHandler.php @@ -94,7 +94,7 @@ class WsdlHandler $query = '/wsdl:definitions/wsdl:binding/wsdl:operation/soap:operation[@soapAction="'.$soapAction.'"]/..'; $nodes = $this->domXpath->query($query); $mimeTypes = array(); - if (($wsdlOperation = $nodes->item(0)) !== null) { + if (null !== $wsdlOperation = $nodes->item(0)) { //$wsdlOperationName = $wsdlOperation->getAttribute('name'); foreach ($wsdlOperation->childNodes as $soapOperationChild) { // wsdl:input or wsdl:output @@ -132,7 +132,7 @@ class WsdlHandler } } else { $child = $soapOperationChild->getElementsByTagNameNS($this->wsdlSoapNamespace, 'body')->item(0); - if (!is_null($child)) { + if (null !== $child) { $parts = $child->getAttribute('parts'); $parts = ($parts == '') ? '[body]' : $parts; $mimeTypes[$operationType][$parts] = array('text/xml'); @@ -141,6 +141,7 @@ class WsdlHandler } } } + return $mimeTypes; } @@ -179,6 +180,7 @@ class WsdlHandler } } } + return false; } @@ -189,7 +191,7 @@ class WsdlHandler */ private function loadWsdlInDom() { - if (is_null($this->domDocument)) { + if (null === $this->domDocument) { $this->domDocument = new \DOMDocument('1.0', 'utf-8'); $this->domDocument->load($this->wsdlFile); $this->domXpath = new \DOMXPath($this->domDocument);