@@ -1133,8 +1133,6 @@ private static function formatHeaders( $soapUrl, $content, $requestType = "POST"
1133
1133
* @return string response XML
1134
1134
*/
1135
1135
public static function getSoapResponse ( $ soapUrl , $ content , $ throwException = true ) {
1136
- /* Separate the provided URI into Path & Hostname sections */
1137
- $ urlDetails = parse_url ( $ soapUrl );
1138
1136
/* Format cUrl headers */
1139
1137
$ headers = self ::formatHeaders ( $ soapUrl , $ content );
1140
1138
@@ -1432,7 +1430,7 @@ public static function parseRetrieveMultipleResponse( Client $client, $soapRespo
1432
1430
/* If we are in "SimpleMode", just create the Attributes as a stdClass */
1433
1431
if ( $ simpleMode ) {
1434
1432
/* Create an Array to hold the Entity properties */
1435
- $ entityArray = Array () ;
1433
+ $ entityArray = [] ;
1436
1434
/* Identify the Attributes */
1437
1435
$ keyValueNodes = $ entityNode ->getElementsByTagName ( 'Attributes ' )->item ( 0 )->getElementsByTagName ( 'KeyValuePairOfstringanyType ' );
1438
1436
/* Add the Attributes in the Key/Value Pairs of String/AnyType to the Array */
@@ -1468,7 +1466,7 @@ public static function parseRetrieveMultipleResponse( Client $client, $soapRespo
1468
1466
*
1469
1467
* @ignore
1470
1468
*/
1471
- protected static function addAttributes ( Array &$ targetArray , DOMNodeList $ keyValueNodes , Array $ keys = null , $ key1 = null ) {
1469
+ protected static function addAttributes ( array &$ targetArray , DOMNodeList $ keyValueNodes , Array $ keys = null , $ key1 = null ) {
1472
1470
foreach ( $ keyValueNodes as $ keyValueNode ) {
1473
1471
/* Get the Attribute name (key) */
1474
1472
$ attributeKey = $ keyValueNode ->getElementsByTagName ( 'key ' )->item ( 0 )->textContent ;
@@ -1524,10 +1522,10 @@ protected static function addAttributes( Array &$targetArray, DOMNodeList $keyVa
1524
1522
if ( $ keys == null ) {
1525
1523
/* Assume that if there is a duplicate, it's a formatted version of this */
1526
1524
if ( array_key_exists ( $ attributeKey , $ targetArray ) ) {
1527
- $ responseDataArray [ $ attributeKey ] = (Object ) Array (
1525
+ $ targetArray [ $ attributeKey ] = (object )[
1528
1526
'Value ' => $ attributeValue ,
1529
1527
'FormattedValue ' => $ targetArray [ $ attributeKey ]
1530
- ) ;
1528
+ ] ;
1531
1529
} else {
1532
1530
$ targetArray [ $ attributeKey ] = $ attributeValue ;
1533
1531
}
0 commit comments