Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

Commit a546682

Browse files
Makinamiweierophinney
authored andcommitted
Fix to adhere to coding standards
1 parent d84065c commit a546682

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/AbstractValue.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,11 +440,15 @@ protected static function createSimpleXMLElement(&$xml)
440440
protected static function extractTypeAndValue(\SimpleXMLElement $xml, &$type, &$value)
441441
{
442442
// Casting is necessary to work with strict-typed systems
443-
foreach((array) $xml as $type => $value) break;
443+
foreach ((array) $xml as $type => $value) {
444+
break;
445+
}
444446
if (!$type and $value === null) {
445447
$namespaces = ['ex' => 'http://ws.apache.org/xmlrpc/namespaces/extensions'];
446448
foreach ($namespaces as $namespaceName => $namespaceUri) {
447-
foreach ((array)$xml->children($namespaceUri) as $type => $value) break;
449+
foreach ((array)$xml->children($namespaceUri) as $type => $value) {
450+
break;
451+
}
448452
if ($type !== null) {
449453
$type = $namespaceName . ':' . $type;
450454
break;

0 commit comments

Comments
 (0)