Passed
Push — master ( 18fd6e...a300cb )
by Radosław
02:30
created
src/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Auction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/FieldTest.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/AuctionHelper.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      *
40 40
      * @throws Radowoj\Yaah\Exception on failure
41 41
      *
42
-     * @param  Radowoj\Yaah\Auction $auction Auction to create
42
+     * @param  Auction $auction Auction to create
43 43
      * @return $itemId - id of created
44 44
      */
45 45
     public function newAuction(Auction $auction)
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.