@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
57 | - * @return string|null |
|
57 | + * @return string |
|
58 | 58 | */ |
59 | 59 | public function getCurrencyCode() |
60 | 60 | { |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | } |
72 | 72 | |
73 | 73 | /** |
74 | - * @return float|null |
|
74 | + * @return double |
|
75 | 75 | */ |
76 | 76 | public function getMonetaryValue() |
77 | 77 | { |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |
100 | - * @return string|null |
|
100 | + * @return string |
|
101 | 101 | */ |
102 | 102 | public function getLanguageCode() |
103 | 103 | { |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | } |
115 | 115 | |
116 | 116 | /** |
117 | - * @return string|null |
|
117 | + * @return string |
|
118 | 118 | */ |
119 | 119 | public function getDialectCode() |
120 | 120 | { |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | } |
132 | 132 | |
133 | 133 | /** |
134 | - * @return null|string |
|
134 | + * @return string |
|
135 | 135 | */ |
136 | 136 | public function getCode() |
137 | 137 | { |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | } |
149 | 149 | |
150 | 150 | /** |
151 | - * @return null|string |
|
151 | + * @return string |
|
152 | 152 | */ |
153 | 153 | public function getLocale() |
154 | 154 | { |
@@ -86,7 +86,7 @@ |
||
86 | 86 | * Create the TimeInTransit request. |
87 | 87 | * |
88 | 88 | * @param LocatorRequest $locatorRequest The request details. Refer to the UPS documentation for available structure |
89 | - * @param $requestOption |
|
89 | + * @param integer $requestOption |
|
90 | 90 | * |
91 | 91 | * @return string |
92 | 92 | */ |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | * |
42 | 42 | * @throws Exception |
43 | 43 | * |
44 | - * @return TimeInTransitRequest |
|
44 | + * @return TimeInTransitResponse |
|
45 | 45 | */ |
46 | 46 | public function getTimeInTransit(TimeInTransitRequest $shipment) |
47 | 47 | { |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * |
57 | 57 | * @throws Exception |
58 | 58 | * |
59 | - * @return TimeInTransitRequest |
|
59 | + * @return TimeInTransitResponse |
|
60 | 60 | */ |
61 | 61 | private function sendRequest(TimeInTransitRequest $timeInTransitRequest) |
62 | 62 | { |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | * |
155 | 155 | * @param SimpleXMLElement $response |
156 | 156 | * |
157 | - * @return TimeInTransitRequest |
|
157 | + * @return TimeInTransitResponse |
|
158 | 158 | */ |
159 | 159 | private function formatResponse(SimpleXMLElement $response) |
160 | 160 | { |
@@ -30,11 +30,11 @@ |
||
30 | 30 | } |
31 | 31 | } |
32 | 32 | |
33 | - /** |
|
34 | - * @param null|DOMDocument $document |
|
35 | - * |
|
36 | - * @return DOMElement |
|
37 | - */ |
|
33 | + /** |
|
34 | + * @param null|DOMDocument $document |
|
35 | + * |
|
36 | + * @return DOMElement |
|
37 | + */ |
|
38 | 38 | public function toNode(DOMDocument $document = null) |
39 | 39 | { |
40 | 40 | if (null === $document) { |
@@ -69,7 +69,7 @@ |
||
69 | 69 | * |
70 | 70 | * @throws Exception |
71 | 71 | * |
72 | - * @return stdClass |
|
72 | + * @return \stdClass |
|
73 | 73 | */ |
74 | 74 | public function confirm( |
75 | 75 | $validation, |
@@ -112,14 +112,14 @@ |
||
112 | 112 | /** |
113 | 113 | * Creates and sends a request for the given data. Most errors are handled in SoapRequest |
114 | 114 | * |
115 | - * @param $request |
|
116 | - * @param $endpoint |
|
117 | - * @param $operation |
|
118 | - * @param $wsdl |
|
115 | + * @param string $request |
|
116 | + * @param string $endpoint |
|
117 | + * @param string $operation |
|
118 | + * @param string $wsdl |
|
119 | 119 | * |
120 | 120 | * @throws Exception |
121 | 121 | * |
122 | - * @return TimeInTransitRequest |
|
122 | + * @return \stdClass |
|
123 | 123 | */ |
124 | 124 | private function sendRequest($request, $endpoint, $operation, $wsdl) |
125 | 125 | { |
@@ -212,6 +212,6 @@ |
||
212 | 212 | { |
213 | 213 | $base = ($this->useIntegration ? $this->integrationBaseUrl : $this->productionBaseUrl); |
214 | 214 | |
215 | - return $base . $segment; |
|
215 | + return $base.$segment; |
|
216 | 216 | } |
217 | 217 | } |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | 'endpointurl' => $this->getEndpointUrl(), |
85 | 85 | ]); |
86 | 86 | |
87 | - $this->logger->debug('Request: ' . $this->getRequest(), [ |
|
87 | + $this->logger->debug('Request: '.$this->getRequest(), [ |
|
88 | 88 | 'id' => $id, |
89 | 89 | 'endpointurl' => $this->getEndpointUrl(), |
90 | 90 | ]); |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | $response = $client->post( |
96 | 96 | $this->getEndpointUrl(), |
97 | 97 | [ |
98 | - 'body' => $this->getAccess() . $this->getRequest(), |
|
98 | + 'body' => $this->getAccess().$this->getRequest(), |
|
99 | 99 | 'headers' => [ |
100 | 100 | 'Content-type' => 'application/x-www-form-urlencoded; charset=utf-8', |
101 | 101 | 'Accept-Charset' => 'UTF-8', |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | 'endpointurl' => $this->getEndpointUrl(), |
112 | 112 | ]); |
113 | 113 | |
114 | - $this->logger->debug('Response: ' . $body, [ |
|
114 | + $this->logger->debug('Response: '.$body, [ |
|
115 | 115 | 'id' => $id, |
116 | 116 | 'endpointurl' => $this->getEndpointUrl(), |
117 | 117 | ]); |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | |
129 | 129 | return $responseInstance->setText($body)->setResponse($xml); |
130 | 130 | } elseif ($xml->Response->ResponseStatusCode == 0) { |
131 | - throw new InvalidResponseException('Failure: ' . $xml->Response->Error->ErrorDescription . ' (' . $xml->Response->Error->ErrorCode . ')'); |
|
131 | + throw new InvalidResponseException('Failure: '.$xml->Response->Error->ErrorDescription.' ('.$xml->Response->Error->ErrorCode.')'); |
|
132 | 132 | } |
133 | 133 | } else { |
134 | 134 | throw new InvalidResponseException('Failure: response is in an unexpected format.'); |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | 'endpointurl' => $this->getEndpointUrl(), |
141 | 141 | ]); |
142 | 142 | |
143 | - throw new RequestException('Failure: ' . $e->getMessage()); |
|
143 | + throw new RequestException('Failure: '.$e->getMessage()); |
|
144 | 144 | } |
145 | 145 | } |
146 | 146 |