diff --git a/src/AutoDiscover.php b/src/AutoDiscover.php index 92f79c5f..2e91c166 100644 --- a/src/AutoDiscover.php +++ b/src/AutoDiscover.php @@ -207,7 +207,6 @@ public function getServiceName() return $this->serviceName; } - /** * Set the location at which the WSDL file will be available. * diff --git a/src/Wsdl.php b/src/Wsdl.php index 33def53c..aa7117d3 100644 --- a/src/Wsdl.php +++ b/src/Wsdl.php @@ -190,7 +190,7 @@ public function setUri($uri) $oldUri = $this->uri; $this->uri = $uri; - if ($this->dom instanceof DOMDocument ) { + if ($this->dom instanceof DOMDocument) { // namespace declarations are NOT true attributes so one must explicitly set on root element // xmlns:tns = $uri $this->dom->documentElement->setAttributeNS(self::XML_NS_URI, self::XML_NS . ':' . self::TYPES_NS, $uri); @@ -549,7 +549,7 @@ public function addTypes(DOMNode $types) if ($types instanceof DOMDocument) { $dom = $this->dom->importNode($types->documentElement); $this->wsdl->appendChild($dom); - } elseif ($types instanceof DOMNode || $types instanceof DOMElement || $types instanceof DOMDocumentFragment ) { + } elseif ($types instanceof DOMNode || $types instanceof DOMElement || $types instanceof DOMDocumentFragment) { $dom = $this->dom->importNode($types); $this->wsdl->appendChild($dom); } @@ -859,7 +859,7 @@ protected function setAttribute(\DOMNode $node, $attributeName, $attributeValue) */ protected function getSoapNamespaceUriByVersion($soapVersion) { - if ($soapVersion != SOAP_1_1 AND $soapVersion != SOAP_1_2) { + if ($soapVersion != SOAP_1_1 and $soapVersion != SOAP_1_2) { throw new Exception\InvalidArgumentException('Invalid SOAP version, use constants: SOAP_1_1 or SOAP_1_2'); } diff --git a/src/Wsdl/ComplexTypeStrategy/ArrayOfTypeComplex.php b/src/Wsdl/ComplexTypeStrategy/ArrayOfTypeComplex.php index 487a9699..5ce88ecf 100644 --- a/src/Wsdl/ComplexTypeStrategy/ArrayOfTypeComplex.php +++ b/src/Wsdl/ComplexTypeStrategy/ArrayOfTypeComplex.php @@ -69,7 +69,6 @@ protected function _addArrayOfComplexType($singularType, $type) // Process singular type using DefaultComplexType strategy parent::addComplexType($singularType); - // Add array type structure to WSDL document $dom = $this->getContext()->toDomDocument(); diff --git a/src/Wsdl/ComplexTypeStrategy/ArrayOfTypeSequence.php b/src/Wsdl/ComplexTypeStrategy/ArrayOfTypeSequence.php index c9248e2a..9782de00 100644 --- a/src/Wsdl/ComplexTypeStrategy/ArrayOfTypeSequence.php +++ b/src/Wsdl/ComplexTypeStrategy/ArrayOfTypeSequence.php @@ -104,7 +104,6 @@ protected function _addSequenceType($arrayType, $childType, $phpArrayType) // Register type here to avoid recursion $this->getContext()->addType($phpArrayType, $arrayType); - $dom = $this->getContext()->toDomDocument(); $arrayTypeName = substr($arrayType, strpos($arrayType, ':') + 1);