diff --git a/src/AutoDiscover.php b/src/AutoDiscover.php index 2f0ecea5..0cc1d8e1 100644 --- a/src/AutoDiscover.php +++ b/src/AutoDiscover.php @@ -356,7 +356,7 @@ public function setClass($class) public function addFunction($function) { if (is_array($function)) { - foreach($function as $row){ + foreach ($function as $row) { $this->addFunction($row); } } elseif (is_string($function)) { diff --git a/src/Server.php b/src/Server.php index 5d276a26..3c952fee 100644 --- a/src/Server.php +++ b/src/Server.php @@ -935,7 +935,7 @@ protected function _initializeSoapErrorContext() public function registerFaultException($class) { if (is_array($class)) { - foreach($class as $row) { + foreach ($class as $row) { $this->registerFaultException($row); } diff --git a/src/Wsdl.php b/src/Wsdl.php index cab0c17b..3b3cb20f 100644 --- a/src/Wsdl.php +++ b/src/Wsdl.php @@ -813,7 +813,7 @@ protected function sanitizeAttributeValueByName($name, $value) */ protected function arrayToAttributes(\DOMNode $node, array $attributes, $withSanitizer = true) { - foreach($attributes as $attributeName => $attributeValue) { + foreach ($attributes as $attributeName => $attributeValue) { if ($withSanitizer) { $this->setAttributeWithSanitization($node, $attributeName, $attributeValue); } else { diff --git a/test/ServerTest.php b/test/ServerTest.php index 1a127b6b..211bde23 100644 --- a/test/ServerTest.php +++ b/test/ServerTest.php @@ -662,7 +662,7 @@ public function testRegisterFaultException($exception) if (!is_array($exception)) { $this->assertContains($exception, $server->getFaultExceptions()); } else { - foreach($exception as $row) { + foreach ($exception as $row) { $this->assertContains($row, $server->getFaultExceptions()); } } @@ -702,7 +702,7 @@ public function testIsRegisteredAsFaultException($exception) if (!is_array($exception)) { $this->assertTrue($server->isRegisteredAsFaultException($exception)); } else { - foreach($exception as $row) { + foreach ($exception as $row) { $this->assertTrue($server->isRegisteredAsFaultException($row)); } } diff --git a/test/Wsdl/ArrayOfTypeSequenceStrategyTest.php b/test/Wsdl/ArrayOfTypeSequenceStrategyTest.php index 3a45834c..984c7704 100644 --- a/test/Wsdl/ArrayOfTypeSequenceStrategyTest.php +++ b/test/Wsdl/ArrayOfTypeSequenceStrategyTest.php @@ -221,7 +221,7 @@ public function testAddComplexTypeArrayOfObject() // array of class a and class b - foreach(array( + foreach (array( 'ArrayOfComplexTypeB' => 'ComplexTypeB', 'ArrayOfComplexTypeA' => 'ComplexTypeA' ) as $arrayTypeName => $typeName) { diff --git a/test/WsdlTest.php b/test/WsdlTest.php index 62b3a185..7b61c4ab 100644 --- a/test/WsdlTest.php +++ b/test/WsdlTest.php @@ -126,7 +126,7 @@ public function dataProviderForURITesting() public function testAddMessage($parameters) { $messageParts = array(); - foreach($parameters as $i => $parameter) { + foreach ($parameters as $i => $parameter) { $messageParts['parameter'.$i] = $this->wsdl->getType($parameter); } @@ -156,7 +156,7 @@ public function testAddMessage($parameters) public function testAddComplexMessage($parameters) { $messageParts = array(); - foreach($parameters as $i => $parameter) { + foreach ($parameters as $i => $parameter) { $messageParts['parameter'.$i] = array( 'type' => $this->wsdl->getType($parameter), 'name' => 'parameter'.$i @@ -851,7 +851,7 @@ public function testAddElement() $this->assertEquals('sequence', $nodes->item(0)->firstChild->localName); $n = 0; - foreach($element['sequence'] as $elementDefinition) { + foreach ($element['sequence'] as $elementDefinition) { $n++; $elementNode = $this->xpath->query('xsd:element[@name="'.$elementDefinition['name'].'"]', $nodes->item(0)->firstChild); $this->assertEquals($elementDefinition['type'], $elementNode->item(0)->getAttribute('type'));