@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |
28 | - * @param $command |
|
28 | + * @param string $command |
|
29 | 29 | * @param array $properties |
30 | 30 | * @return \PleskX\Api\XmlResponse |
31 | 31 | */ |
@@ -94,8 +94,8 @@ discard block |
||
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
97 | - * @param $command |
|
98 | - * @param $field |
|
97 | + * @param string $command |
|
98 | + * @param string $field |
|
99 | 99 | * @param $value |
100 | 100 | * @return \PleskX\Api\XmlResponse |
101 | 101 | */ |
@@ -347,8 +347,7 @@ discard block |
||
347 | 347 | if (is_array($value)) { |
348 | 348 | if ($this->_isAssoc($value)){ //assoc |
349 | 349 | $this->_arrayToXml($value, $xml->addChild($key)); |
350 | - } |
|
351 | - else{ //indexed |
|
350 | + } else{ //indexed |
|
352 | 351 | foreach ($value as $sub_value){ |
353 | 352 | $xml->addChild($key, $sub_value); |
354 | 353 | } |
@@ -363,7 +362,9 @@ discard block |
||
363 | 362 | |
364 | 363 | protected function _isAssoc(array $arr) |
365 | 364 | { |
366 | - if (array() === $arr) return false; |
|
365 | + if (array() === $arr) { |
|
366 | + return false; |
|
367 | + } |
|
367 | 368 | return array_keys($arr) !== range(0, count($arr) - 1); |
368 | 369 | } |
369 | 370 |