File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ public function getStatus( $webspaceId )
137137 return null ;
138138 }
139139
140- return trim ( reset ( $ response ->data ->gen_info ->status ) );
140+ return trim ( $ response ->data ->gen_info ->status );
141141 }
142142
143143
@@ -253,7 +253,7 @@ public function getPlanGuid( $guid )
253253 return null ;
254254 }
255255
256- return trim ( reset ( $ response ->data ->subscriptions ->subscription ->plan ->$ guidPropertyName ) );
256+ return trim ( $ response ->data ->subscriptions ->subscription ->plan ->$ guidPropertyName );
257257 }
258258
259259
@@ -369,7 +369,7 @@ public function getCurrentCertificate( $filters ) {
369369
370370 foreach ( $ responseProperties as $ property ) {
371371 if ( $ property ->name == 'certificate_name ' ) {
372- return trim ( reset ( $ property ->value ) );
372+ return trim ( $ property ->value );
373373 }
374374 }
375375
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public function __construct($apiResponse)
1818 }
1919
2020 foreach ($ apiResponse ->vrt_hst ->property as $ propertyInfo ) {
21- $ this ->properties [reset ( $ propertyInfo ->name ) ] = reset ( $ propertyInfo ->value ) ;
21+ $ this ->properties [$ propertyInfo ->name ] = $ propertyInfo ->value ;
2222 }
2323 }
2424}
You can’t perform that action at this time.
0 commit comments