From 5a945d7b11ab32b90f2adeb163af60ca141597b2 Mon Sep 17 00:00:00 2001 From: Jeremy Dunn Date: Thu, 2 Nov 2017 20:11:59 -0500 Subject: [PATCH] fix syntax error --- src/FedEx/DGDSService/Request.php | 36 +++++++++++++++---------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/FedEx/DGDSService/Request.php b/src/FedEx/DGDSService/Request.php index cb7eec1c..6bd0bf04 100644 --- a/src/FedEx/DGDSService/Request.php +++ b/src/FedEx/DGDSService/Request.php @@ -1,6 +1,6 @@ populateFromStdClass($response); return $addDangerousGoodsHandlingUnitReply; } - + /** * Sends the ModifyDangerousGoodsShipmentRequest and returns the response * @@ -49,12 +49,12 @@ public function getModifyDangerousGoodsShipmentReply(ComplexType\ModifyDangerous if ($returnStdClass) { return $response; } - + $modifyDangerousGoodsShipmentReply = new ComplexType\ModifyDangerousGoodsShipmentReply; $modifyDangerousGoodsShipmentReply->populateFromStdClass($response); return $modifyDangerousGoodsShipmentReply; } - + /** * Sends the UploadDangerousGoodsRequest and returns the response * @@ -68,12 +68,12 @@ public function getUploadDangerousGoodsReply(ComplexType\UploadDangerousGoodsReq if ($returnStdClass) { return $response; } - + $uploadDangerousGoodsReply = new ComplexType\UploadDangerousGoodsReply; $uploadDangerousGoodsReply->populateFromStdClass($response); return $uploadDangerousGoodsReply; } - + /** * Sends the ModifyDangerousGoodsHandlingUnitRequest and returns the response * @@ -87,12 +87,12 @@ public function getModifyDangerousGoodsHandlingUnitReply(ComplexType\ModifyDange if ($returnStdClass) { return $response; } - + $modifyDangerousGoodsHandlingUnitReply = new ComplexType\ModifyDangerousGoodsHandlingUnitReply; $modifyDangerousGoodsHandlingUnitReply->populateFromStdClass($response); return $modifyDangerousGoodsHandlingUnitReply; } - + /** * Sends the DeleteDangerousGoodsHandlingUnitRequest and returns the response * @@ -106,12 +106,12 @@ public function getDeleteDangerousGoodsHandlingUnitReply(ComplexType\DeleteDange if ($returnStdClass) { return $response; } - + $deleteDangerousGoodsHandlingUnitReply = new ComplexType\DeleteDangerousGoodsHandlingUnitReply; $deleteDangerousGoodsHandlingUnitReply->populateFromStdClass($response); return $deleteDangerousGoodsHandlingUnitReply; } - + /** * Sends the DeleteDangerousGoodsRequest and returns the response * @@ -125,12 +125,12 @@ public function getDeleteDangerousGoodsReply(ComplexType\DeleteDangerousGoodsReq if ($returnStdClass) { return $response; } - + $deleteDangerousGoodsReply = new ComplexType\DeleteDangerousGoodsReply; $deleteDangerousGoodsReply->populateFromStdClass($response); return $deleteDangerousGoodsReply; } - + /** * Sends the RetrieveDangerousGoodsRequest and returns the response * @@ -144,12 +144,12 @@ public function getRetrieveDangerousGoodsReply(ComplexType\RetrieveDangerousGood if ($returnStdClass) { return $response; } - + $retrieveDangerousGoodsReply = new ComplexType\RetrieveDangerousGoodsReply; $retrieveDangerousGoodsReply->populateFromStdClass($response); return $retrieveDangerousGoodsReply; } - + /** * Sends the alidateDangerousGoods and returns the response * @@ -159,11 +159,11 @@ public function getRetrieveDangerousGoodsReply(ComplexType\RetrieveDangerousGood */ public function getReply(ComplexType\alidateDangerousGoods $alidateDangerousGoods, $returnStdClass = false) { - $response = $this->getSoapClient()->($alidateDangerousGoods->toArray()); + $response = $this->getSoapClient()->$alidateDangerousGoods->toArray(); if ($returnStdClass) { return $response; } - + $validateDangerousGoodsReply = new ComplexType\ValidateDangerousGoodsReply; $validateDangerousGoodsReply->populateFromStdClass($response); return $validateDangerousGoodsReply;