Skip to content

Commit 29c0164

Browse files
committed
php7.4 updates
1 parent acf2297 commit 29c0164

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/SoftaculousNOC.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ public function req()
7979
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
8080

8181

82-
$this->post = array('nocname' => $this->nocname,
83-
'nocpass' => $this->nocpass);
82+
$this->post = ['nocname' => $this->nocname,
83+
'nocpass' => $this->nocpass];
8484

8585
$this->post = http_build_query($this->post);
8686
curl_setopt($ch, CURLOPT_POST, 1);
@@ -1153,7 +1153,7 @@ public function toArray($xml)
11531153
// if the node is already set, put it into an array
11541154
if (isset($arr[$key])) {
11551155
if (!is_array($arr[$key]) || $arr[$key][0] == null) {
1156-
$arr[$key] = array( $arr[$key] );
1156+
$arr[$key] = [ $arr[$key] ];
11571157
}
11581158
$arr[$key][] = $node;
11591159
} else {

0 commit comments

Comments
 (0)