@@ -172,7 +172,7 @@ |
||
| 172 | 172 | */ |
| 173 | 173 | protected function executePut() |
| 174 | 174 | { |
| 175 | - return $this->executeBase(function ($uriProcessor, $segment) { |
|
| 175 | + return $this->executeBase(function($uriProcessor, $segment) { |
|
| 176 | 176 | $requestMethod = $uriProcessor->getService()->getOperationContext()->incomingRequest()->getMethod(); |
| 177 | 177 | $resourceSet = $segment->getTargetResourceSetWrapper(); |
| 178 | 178 | $keyDescriptor = $segment->getKeyDescriptor(); |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | $xml = self::$xml = $input_xml; |
| 39 | 39 | } |
| 40 | 40 | $array[$xml->documentElement->tagName] = self::convert($xml->documentElement); |
| 41 | - self::$xml = null; // clear the xml node in the class for 2nd time use. |
|
| 41 | + self::$xml = null; // clear the xml node in the class for 2nd time use. |
|
| 42 | 42 | return $array; |
| 43 | 43 | } |
| 44 | 44 | /** |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | break; |
| 59 | 59 | case XML_ELEMENT_NODE: |
| 60 | 60 | // for each child node, call the covert function recursively |
| 61 | - for ($i=0, $m=$node->childNodes->length; $i<$m; $i++) { |
|
| 61 | + for ($i = 0, $m = $node->childNodes->length; $i < $m; $i++) { |
|
| 62 | 62 | $child = $node->childNodes->item($i); |
| 63 | 63 | $v = self::convert($child); |
| 64 | 64 | if (isset($child->tagName)) { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | if (is_array($output)) { |
| 79 | 79 | // if only one node of its kind, assign it directly instead if array($value); |
| 80 | 80 | foreach ($output as $t => $v) { |
| 81 | - if (is_array($v) && count($v)==1) { |
|
| 81 | + if (is_array($v) && count($v) == 1) { |
|
| 82 | 82 | $output[$t] = $v[0]; |
| 83 | 83 | } |
| 84 | 84 | } |