Skip to content

Commit

Permalink
fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyDunn committed Nov 3, 2017
1 parent cde95f3 commit 5a945d7
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions src/FedEx/DGDSService/Request.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
namespace FedEx\DGDSService;

use FedEx\AbstractRequest;

/**
Expand All @@ -16,7 +16,7 @@ class Request extends AbstractRequest
const TESTING_URL = 'https://wsbeta.fedex.com:443/web-services/dgds';

protected static $wsdlFileName = 'DGDS_v3.wsdl';

/**
* Sends the AddDangerousGoodsHandlingUnitRequest and returns the response
*
Expand All @@ -30,12 +30,12 @@ public function getAddDangerousGoodsHandlingUnitReply(ComplexType\AddDangerousGo
if ($returnStdClass) {
return $response;
}

$addDangerousGoodsHandlingUnitReply = new ComplexType\AddDangerousGoodsHandlingUnitReply;
$addDangerousGoodsHandlingUnitReply->populateFromStdClass($response);
return $addDangerousGoodsHandlingUnitReply;
}

/**
* Sends the ModifyDangerousGoodsShipmentRequest and returns the response
*
Expand All @@ -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
*
Expand All @@ -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
*
Expand All @@ -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
*
Expand All @@ -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
*
Expand All @@ -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
*
Expand All @@ -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
*
Expand All @@ -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;
Expand Down

0 comments on commit 5a945d7

Please sign in to comment.