We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acf2297 commit 29c0164Copy full SHA for 29c0164
1 file changed
src/SoftaculousNOC.php
@@ -79,8 +79,8 @@ public function req()
79
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
80
81
82
- $this->post = array('nocname' => $this->nocname,
83
- 'nocpass' => $this->nocpass);
+ $this->post = ['nocname' => $this->nocname,
+ 'nocpass' => $this->nocpass];
84
85
$this->post = http_build_query($this->post);
86
curl_setopt($ch, CURLOPT_POST, 1);
@@ -1153,7 +1153,7 @@ public function toArray($xml)
1153
// if the node is already set, put it into an array
1154
if (isset($arr[$key])) {
1155
if (!is_array($arr[$key]) || $arr[$key][0] == null) {
1156
- $arr[$key] = array( $arr[$key] );
+ $arr[$key] = [ $arr[$key] ];
1157
}
1158
$arr[$key][] = $node;
1159
} else {
0 commit comments