@@ -48,11 +48,11 @@ |
||
48 | 48 | $content = file_get_contents($this->template); |
49 | 49 | |
50 | 50 | $data = array_merge($data, [ |
51 | - 'ThreePLID' => $this->getId(), |
|
52 | - 'Login' => $this->getLogin(), |
|
53 | - 'Password' => $this->getPassword(), |
|
54 | - 'CustomerID' => $this->getCustomerId(), |
|
55 | - 'FacilityID' => $this->getFacilityId() |
|
51 | + 'ThreePLID' => $this->getId(), |
|
52 | + 'Login' => $this->getLogin(), |
|
53 | + 'Password' => $this->getPassword(), |
|
54 | + 'CustomerID' => $this->getCustomerId(), |
|
55 | + 'FacilityID' => $this->getFacilityId() |
|
56 | 56 | ]); |
57 | 57 | |
58 | 58 | foreach ($data as $prop => $value) { |
@@ -16,7 +16,7 @@ |
||
16 | 16 | 'http://www.JOI.com/schemas/ViaSub.WMS/FindOrders' |
17 | 17 | ); |
18 | 18 | |
19 | - $request->setTemplate(__DIR__ . '/../Request/findOrders.xml'); |
|
19 | + $request->setTemplate(__DIR__.'/../Request/findOrders.xml'); |
|
20 | 20 | $response = $request->fetch([ |
21 | 21 | 'BeginDate' => $beginDate->format('YYYY-MM-DD'), |
22 | 22 | 'EndDate' => $endDate->format('YYYY-MM-DD') |
@@ -10,7 +10,7 @@ |
||
10 | 10 | public function fetch(array $data): ResponseInterface |
11 | 11 | { |
12 | 12 | if ($this->getUrl() === 'http://www.JOI.com/schemas/ViaSub.WMS/FindOrders') { |
13 | - return new ResponseMock(file_get_contents(__DIR__ . '/../files/findOrders/response.xml')); |
|
13 | + return new ResponseMock(file_get_contents(__DIR__.'/../files/findOrders/response.xml')); |
|
14 | 14 | } |
15 | 15 | throw new \Exception; |
16 | 16 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | public function body(): string |
19 | 19 | { |
20 | - return (string) $this->response->getBody(); |
|
20 | + return (string)$this->response->getBody(); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | public function json(): array |