@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | $info_props = $info->addChild('hosting')->addChild('vrt_hst'); |
| 48 | 48 | |
| 49 | - if($ftp_login != "" && $ftp_pass != "") |
|
| 49 | + if ($ftp_login != "" && $ftp_pass != "") |
|
| 50 | 50 | { |
| 51 | 51 | $prop_ftp_user = $info_props->addChild('property'); |
| 52 | 52 | $prop_ftp_user->addChild("name", 'ftp_login'); |
@@ -58,10 +58,10 @@ discard block |
||
| 58 | 58 | $prop_ftp_pass->addChild("value", $ftp_pass); |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - if($ip != "") |
|
| 61 | + if ($ip != "") |
|
| 62 | 62 | $info_props->addChild("ip_address", $ip); |
| 63 | 63 | |
| 64 | - if($more_prop) |
|
| 64 | + if ($more_prop) |
|
| 65 | 65 | foreach ($more_prop as $name => $value) |
| 66 | 66 | $info->addChild($name, $value); |
| 67 | 67 | |
@@ -58,12 +58,14 @@ |
||
| 58 | 58 | $prop_ftp_pass->addChild("value", $ftp_pass); |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - if($ip != "") |
|
| 62 | - $info_props->addChild("ip_address", $ip); |
|
| 61 | + if($ip != "") { |
|
| 62 | + $info_props->addChild("ip_address", $ip); |
|
| 63 | + } |
|
| 63 | 64 | |
| 64 | - if($more_prop) |
|
| 65 | - foreach ($more_prop as $name => $value) |
|
| 65 | + if($more_prop) { |
|
| 66 | + foreach ($more_prop as $name => $value) |
|
| 66 | 67 | $info->addChild($name, $value); |
| 68 | + } |
|
| 67 | 69 | |
| 68 | 70 | $response = $this->_client->request($packet); |
| 69 | 71 | return new Struct\Info($response); |