@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | |
169 | 169 | $response = ''; |
170 | 170 | if($this->response) { |
171 | - $response = $this->response->getResponse(); |
|
171 | + $response = $this->response->getResponse(); |
|
172 | 172 | } |
173 | 173 | |
174 | 174 | |
@@ -179,9 +179,9 @@ discard block |
||
179 | 179 | ); |
180 | 180 | } |
181 | 181 | if($response) |
182 | - return $this->formatResponse($response); |
|
182 | + return $this->formatResponse($response); |
|
183 | 183 | else |
184 | - return $response; |
|
184 | + return $response; |
|
185 | 185 | |
186 | 186 | } |
187 | 187 |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | ); |
168 | 168 | |
169 | 169 | $response = ''; |
170 | - if($this->response) { |
|
170 | + if ($this->response) { |
|
171 | 171 | $response = $this->response->getResponse(); |
172 | 172 | } |
173 | 173 | |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | (int)$response->Response->Error->ErrorCode |
179 | 179 | ); |
180 | 180 | } |
181 | - if($response) |
|
181 | + if ($response) |
|
182 | 182 | return $this->formatResponse($response); |
183 | 183 | else |
184 | 184 | return $response; |
@@ -195,46 +195,46 @@ discard block |
||
195 | 195 | $patterns = [ |
196 | 196 | |
197 | 197 | // UPS Mail Innovations tracking numbers |
198 | - '/^MI\d{6}\d{1,22}$/',// MI 000000 00000000+ |
|
198 | + '/^MI\d{6}\d{1,22}$/', // MI 000000 00000000+ |
|
199 | 199 | |
200 | 200 | // USPS - Certified Mail |
201 | - '/^94071\d{17}$/', // 9407 1000 0000 0000 0000 00 |
|
202 | - '/^7\d{19}$/', // 7000 0000 0000 0000 0000 |
|
201 | + '/^94071\d{17}$/', // 9407 1000 0000 0000 0000 00 |
|
202 | + '/^7\d{19}$/', // 7000 0000 0000 0000 0000 |
|
203 | 203 | |
204 | 204 | // USPS - Collect on Delivery |
205 | - '/^93033\d{17}$/', // 9303 3000 0000 0000 0000 00 |
|
206 | - '/^M\d{9}$/', // M000 0000 00 |
|
205 | + '/^93033\d{17}$/', // 9303 3000 0000 0000 0000 00 |
|
206 | + '/^M\d{9}$/', // M000 0000 00 |
|
207 | 207 | |
208 | 208 | // USPS - Global Express Guaranteed |
209 | - '/^82\d{10}$/', // 82 000 000 00 |
|
209 | + '/^82\d{10}$/', // 82 000 000 00 |
|
210 | 210 | |
211 | 211 | // USPS - Priority Mail Express International |
212 | - '/^EC\d{9}US$/', // EC 000 000 000 US |
|
212 | + '/^EC\d{9}US$/', // EC 000 000 000 US |
|
213 | 213 | |
214 | 214 | // USPS Innovations Expedited |
215 | - '/^927\d{23}$/', // 9270 8900 8900 8900 8900 8900 00 |
|
215 | + '/^927\d{23}$/', // 9270 8900 8900 8900 8900 8900 00 |
|
216 | 216 | |
217 | 217 | // USPS - Priority Mail Express |
218 | - '/^927\d{19}$/', // 9270 1000 0000 0000 0000 00 |
|
219 | - '/^EA\d{9}US$/', // EA 000 000 000 US |
|
218 | + '/^927\d{19}$/', // 9270 1000 0000 0000 0000 00 |
|
219 | + '/^EA\d{9}US$/', // EA 000 000 000 US |
|
220 | 220 | |
221 | 221 | // USPS - Priority Mail International |
222 | - '/^CP\d{9}US$/', // CP 000 000 000 US |
|
222 | + '/^CP\d{9}US$/', // CP 000 000 000 US |
|
223 | 223 | |
224 | 224 | // USPS - Priority Mail |
225 | - '/^92055\d{17}$/', // 9205 5000 0000 0000 0000 00 |
|
226 | - '/^14\d{18}$/', // 1400 0000 0000 0000 0000 |
|
225 | + '/^92055\d{17}$/', // 9205 5000 0000 0000 0000 00 |
|
226 | + '/^14\d{18}$/', // 1400 0000 0000 0000 0000 |
|
227 | 227 | |
228 | 228 | // USPS - Registered Mail |
229 | - '/^92088\d{17}$/', // 9208 8000 0000 0000 0000 00 |
|
230 | - '/^RA\d{9}US$/', // RA 000 000 000 US |
|
229 | + '/^92088\d{17}$/', // 9208 8000 0000 0000 0000 00 |
|
230 | + '/^RA\d{9}US$/', // RA 000 000 000 US |
|
231 | 231 | |
232 | 232 | // USPS - Signature Confirmation |
233 | - '/^9202\d{16}US$/', // 9202 1000 0000 0000 0000 00 |
|
234 | - '/^23\d{16}US$/', // 2300 0000 0000 0000 0000 |
|
233 | + '/^9202\d{16}US$/', // 9202 1000 0000 0000 0000 00 |
|
234 | + '/^23\d{16}US$/', // 2300 0000 0000 0000 0000 |
|
235 | 235 | |
236 | 236 | // USPS - Tracking |
237 | - '/^94\d{20}$/', // 9400 1000 0000 0000 0000 00 |
|
237 | + '/^94\d{20}$/', // 9400 1000 0000 0000 0000 00 |
|
238 | 238 | '/^03\d{18}$/' // 0300 0000 0000 0000 0000 |
239 | 239 | ]; |
240 | 240 |
@@ -178,10 +178,11 @@ |
||
178 | 178 | (int)$response->Response->Error->ErrorCode |
179 | 179 | ); |
180 | 180 | } |
181 | - if($response) |
|
182 | - return $this->formatResponse($response); |
|
183 | - else |
|
184 | - return $response; |
|
181 | + if($response) { |
|
182 | + return $this->formatResponse($response); |
|
183 | + } else { |
|
184 | + return $response; |
|
185 | + } |
|
185 | 186 | |
186 | 187 | } |
187 | 188 |