File tree 2 files changed +4
-4
lines changed
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 )
137
137
return null ;
138
138
}
139
139
140
- return trim ( reset ( $ response ->data ->gen_info ->status ) );
140
+ return trim ( $ response ->data ->gen_info ->status );
141
141
}
142
142
143
143
@@ -253,7 +253,7 @@ public function getPlanGuid( $guid )
253
253
return null ;
254
254
}
255
255
256
- return trim ( reset ( $ response ->data ->subscriptions ->subscription ->plan ->$ guidPropertyName ) );
256
+ return trim ( $ response ->data ->subscriptions ->subscription ->plan ->$ guidPropertyName );
257
257
}
258
258
259
259
@@ -369,7 +369,7 @@ public function getCurrentCertificate( $filters ) {
369
369
370
370
foreach ( $ responseProperties as $ property ) {
371
371
if ( $ property ->name == 'certificate_name ' ) {
372
- return trim ( reset ( $ property ->value ) );
372
+ return trim ( $ property ->value );
373
373
}
374
374
}
375
375
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public function __construct($apiResponse)
18
18
}
19
19
20
20
foreach ($ apiResponse ->vrt_hst ->property as $ propertyInfo ) {
21
- $ this ->properties [reset ( $ propertyInfo ->name ) ] = reset ( $ propertyInfo ->value ) ;
21
+ $ this ->properties [$ propertyInfo ->name ] = $ propertyInfo ->value ;
22
22
}
23
23
}
24
24
}
You can’t perform that action at this time.
0 commit comments