@@ -41,7 +41,7 @@ |
||
| 41 | 41 | { |
| 42 | 42 | $requiredParams = ['apiKey', 'login', 'passwordHash', 'isSandbox', 'countryCode']; |
| 43 | 43 | |
| 44 | - foreach($requiredParams as $property) { |
|
| 44 | + foreach ($requiredParams as $property) { |
|
| 45 | 45 | if (!array_key_exists($property, $params)) { |
| 46 | 46 | throw new Exception("{$property} is required in params array"); |
| 47 | 47 | } |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | { |
| 44 | 44 | $fields = []; |
| 45 | 45 | |
| 46 | - foreach($this->fields as $fid => $value) { |
|
| 46 | + foreach ($this->fields as $fid => $value) { |
|
| 47 | 47 | $fields[] = (new Field($fid, $value))->toArray(); |
| 48 | 48 | } |
| 49 | 49 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -use PHPUnit\Framework\TestCase; |
|
| 3 | +use PHPUnit\Framework\TestCase; |
|
| 4 | 4 | use Radowoj\Yaah\Field; |
| 5 | 5 | |
| 6 | 6 | class FieldTest extends TestCase |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | $data = $this->client->getSellFormFieldsForCategory(['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, |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | */ |
| 78 | 78 | public function finishAuctions(array $auctionIds, $cancelAllBids = 0, $finishCancelReason = '') |
| 79 | 79 | { |
| 80 | - $finishItemsList = array_map(function ($auctionId) use ($cancelAllBids, $finishCancelReason) { |
|
| 80 | + $finishItemsList = array_map(function($auctionId) use ($cancelAllBids, $finishCancelReason) { |
|
| 81 | 81 | return [ |
| 82 | 82 | 'finishItemId' => $auctionId, |
| 83 | 83 | 'finishCancelAllBids' => $cancelAllBids, |