From 4d37c15adc9999be813b2f3c196975735ff20b31 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 3 Apr 2015 16:12:44 +0700 Subject: [PATCH] uses === null instead of == null check --- src/Client.php | 10 +++++----- src/Wsdl.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Client.php b/src/Client.php index 5ec8c7bf..381e6d71 100644 --- a/src/Client.php +++ b/src/Client.php @@ -326,7 +326,7 @@ public function getOptions() unset($options[$key]); } } else { - if ($value == null) { + if ($value === null) { unset($options[$key]); } } @@ -1003,7 +1003,7 @@ protected function _initSoapClientObject() $wsdl = $this->getWSDL(); $options = array_merge($this->getOptions(), array('trace' => true)); - if ($wsdl == null) { + if ($wsdl === null) { if (!isset($options['location'])) { throw new Exception\UnexpectedValueException('"location" parameter is required in non-WSDL mode.'); } @@ -1142,7 +1142,7 @@ public function call($method, $params = array()) */ public function getFunctions() { - if ($this->getWSDL() == null) { + if ($this->getWSDL() === null) { throw new Exception\UnexpectedValueException(sprintf( '%s method is available only in WSDL mode.', __METHOD__ @@ -1161,7 +1161,7 @@ public function getFunctions() */ public function getTypes() { - if ($this->getWSDL() == null) { + if ($this->getWSDL() === null) { throw new Exception\UnexpectedValueException(sprintf( '%s method is available only in WSDL mode.', __METHOD__ @@ -1191,7 +1191,7 @@ public function setSoapClient(SoapClient $soapClient) */ public function getSoapClient() { - if ($this->soapClient == null) { + if ($this->soapClient === null) { $this->_initSoapClientObject(); } return $this->soapClient; diff --git a/src/Wsdl.php b/src/Wsdl.php index 225d44a3..3102fe8a 100644 --- a/src/Wsdl.php +++ b/src/Wsdl.php @@ -587,7 +587,7 @@ public function getTypes() */ public function getSchema() { - if ($this->schema == null) { + if ($this->schema === null) { $this->addSchemaTypeSection(); } return $this->schema;