@@ -142,7 +142,6 @@ |
||
| 142 | 142 | |
| 143 | 143 | /** |
| 144 | 144 | * Detect type of range passed as argument (int, float, date) |
| 145 | - * @param array $value value to detect type of |
|
| 146 | 145 | */ |
| 147 | 146 | protected function setValueRangeAutodetect(array $range) |
| 148 | 147 | { |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * Sets photos for auction |
| 24 | - * @param array $photos array of photo file paths |
|
| 24 | + * @param string[] $photos array of photo file paths |
|
| 25 | 25 | */ |
| 26 | 26 | public function setPhotos(array $photos) |
| 27 | 27 | { |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | public function fromArray(array $humanReadableArray) |
| 23 | 23 | {
|
| 24 | 24 | $fields = []; |
| 25 | - foreach($humanReadableArray as $key => $value) {
|
|
| 25 | + foreach ($humanReadableArray as $key => $value) {
|
|
| 26 | 26 | if (array_key_exists($key, $this->map)) {
|
| 27 | 27 | $fields[$this->map[$key]] = $value; |
| 28 | 28 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | $flippedMap = array_flip($this->map); |
| 38 | 38 | $humanReadableArray = []; |
| 39 | 39 | |
| 40 | - foreach($fields as $key => $value) {
|
|
| 40 | + foreach ($fields as $key => $value) {
|
|
| 41 | 41 | if (array_key_exists($key, $flippedMap)) {
|
| 42 | 42 | $humanReadableArray[$flippedMap[$key]] = $value; |
| 43 | 43 | } |
@@ -11,6 +11,9 @@ |
||
| 11 | 11 | {
|
| 12 | 12 | protected $config = null; |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @return \SoapClient |
|
| 16 | + */ |
|
| 14 | 17 | abstract protected function getSoapClient(); |
| 15 | 18 | |
| 16 | 19 | protected function setConfig($configArray) |
@@ -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 |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | $data = $this->client->doGetSellFormFieldsForCategory(['categoryId' => $idCategory]); |
| 24 | 24 | $items = $data->sellFormFieldsForCategory->sellFormFieldsList->item; |
| 25 | 25 | |
| 26 | - return array_map(function ($item) { |
|
| 26 | + return array_map(function($item) { |
|
| 27 | 27 | return [ |
| 28 | 28 | 'fid' => $item->sellFormId, |
| 29 | 29 | 'title' => $item->sellFormTitle, |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | */ |
| 82 | 82 | public function finishAuctions(array $auctionIds, $cancelAllBids = 0, $finishCancelReason = '') |
| 83 | 83 | { |
| 84 | - $finishItemsList = array_map(function ($auctionId) use ($cancelAllBids, $finishCancelReason) { |
|
| 84 | + $finishItemsList = array_map(function($auctionId) use ($cancelAllBids, $finishCancelReason) { |
|
| 85 | 85 | return [ |
| 86 | 86 | 'finishItemId' => $auctionId, |
| 87 | 87 | 'finishCancelAllBids' => $cancelAllBids, |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | */ |
| 130 | 130 | public function getAuctionByItemId($itemId) |
| 131 | 131 | { |
| 132 | - $response = $this->client->doGetItemFields(['itemId' => $itemId]); |
|
| 132 | + $response = $this->client->doGetItemFields(['itemId' => $itemId]); |
|
| 133 | 133 | if (isset($response->itemFields->item)) { |
| 134 | 134 | $auction = new Auction(); |
| 135 | 135 | $auction->fromApiRepresentation($response->itemFields->item); |