@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $this->password = $password; |
58 | 58 | $this->country = $country; |
59 | 59 | |
60 | - if (! array_key_exists($country, $this->hostNames)) { |
|
60 | + if ( ! array_key_exists($country, $this->hostNames)) { |
|
61 | 61 | throw new Exception('No hostname for the given country available.'); |
62 | 62 | } |
63 | 63 | $this->host = 'https://' . $this->hostNames[$country] . '/'; |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | $xml = $this->client->request('GET', $this->_getTransactionUrl($start, $end)); |
117 | 117 | |
118 | 118 | $items = []; |
119 | - $xml->filter('Items Item')->each(function ($item) use (&$items) { |
|
119 | + $xml->filter('Items Item')->each(function($item) use (&$items) { |
|
120 | 120 | $amazonItem = new Item; |
121 | 121 | |
122 | 122 | $amazonItem->setAsin((string)$item->attr('ASIN')); |
@@ -147,10 +147,10 @@ discard block |
||
147 | 147 | strtolower($this->country), |
148 | 148 | $this->associateTag, |
149 | 149 | $start->format('j'), |
150 | - $start->format('n') - 1, |
|
150 | + $start->format('n')-1, |
|
151 | 151 | $start->format('Y'), |
152 | 152 | $end->format('j'), |
153 | - $end->format('n') - 1, |
|
153 | + $end->format('n')-1, |
|
154 | 154 | $end->format('Y')); |
155 | 155 | } |
156 | 156 |