@@ -143,7 +143,7 @@ |
||
143 | 143 | $this->soapClient->expects($this->once()) |
144 | 144 | ->method('doSomethingNotImplementedInHelper') |
145 | 145 | ->with( |
146 | - $this->callback(function($params){ |
|
146 | + $this->callback(function($params) { |
|
147 | 147 | return array_key_exists('param1', $params) |
148 | 148 | && array_key_exists('webapiKey', $params) |
149 | 149 | && $params['param1'] == 1337 |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | $items = $data->sellFormFieldsForCategory->sellFormFieldsList->item; |
30 | 30 | |
31 | - return array_map(function ($item) { |
|
31 | + return array_map(function($item) { |
|
32 | 32 | return [ |
33 | 33 | 'fid' => $item->sellFormId, |
34 | 34 | 'title' => $item->sellFormTitle, |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | */ |
87 | 87 | public function finishAuctions(array $auctionIds, $cancelAllBids = 0, $finishCancelReason = '') |
88 | 88 | { |
89 | - $finishItemsList = array_map(function ($auctionId) use ($cancelAllBids, $finishCancelReason) { |
|
89 | + $finishItemsList = array_map(function($auctionId) use ($cancelAllBids, $finishCancelReason) { |
|
90 | 90 | return [ |
91 | 91 | 'finishItemId' => $auctionId, |
92 | 92 | 'finishCancelAllBids' => $cancelAllBids, |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | */ |
135 | 135 | public function getAuctionByItemId($itemId) |
136 | 136 | { |
137 | - $response = $this->client->doGetItemFields(['itemId' => $itemId]); |
|
137 | + $response = $this->client->doGetItemFields(['itemId' => $itemId]); |
|
138 | 138 | if (isset($response->itemFields->item)) { |
139 | 139 | $auction = new Auction(); |
140 | 140 | $auction->fromApiRepresentation($response->itemFields->item); |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | { |
32 | 32 | $map = $this->getMap(); |
33 | 33 | $fields = []; |
34 | - foreach($humanReadableArray as $key => $value) { |
|
34 | + foreach ($humanReadableArray as $key => $value) { |
|
35 | 35 | if (array_key_exists($key, $map)) { |
36 | 36 | $fields[$map[$key]] = $value; |
37 | 37 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $flippedMap = array_flip($map); |
48 | 48 | $humanReadableArray = []; |
49 | 49 | |
50 | - foreach($fields as $key => $value) { |
|
50 | + foreach ($fields as $key => $value) { |
|
51 | 51 | if (array_key_exists($key, $flippedMap)) { |
52 | 52 | $humanReadableArray[$flippedMap[$key]] = $value; |
53 | 53 | } |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | */ |
202 | 202 | protected function setRangeDate(array $range) |
203 | 203 | { |
204 | - usort($range, function($date1, $date2){ |
|
204 | + usort($range, function($date1, $date2) { |
|
205 | 205 | return strtotime($date1) - strtotime($date2); |
206 | 206 | }); |
207 | 207 | $this->fValues[self::VALUE_RANGE_DATE] = array_combine( |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | */ |
243 | 243 | public function isRangeDate(array $range) |
244 | 244 | { |
245 | - $dates = array_filter($range, function($item){ |
|
245 | + $dates = array_filter($range, function($item) { |
|
246 | 246 | return preg_match(self::DATE_REGEX, $item); |
247 | 247 | }); |
248 | 248 |