Passed
Push — master ( 0b22ff...db4f6d )
by Radosław
02:20
created
src/AuctionHelper.php 1 patch
Spacing   +3 added lines, -3 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,
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
129 129
      */
130 130
     public function getAuctionByItemId($itemId)
131 131
     {
132
-        $response =  $this->client->getItemFields(['itemId' => $itemId]);
132
+        $response = $this->client->getItemFields(['itemId' => $itemId]);
133 133
         if (isset($response->itemFields->item)) {
134 134
             $auction = new Auction();
135 135
             $auction->fromApiRepresentation($response->itemFields->item);
Please login to merge, or discard this patch.
src/Field.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,6 @@
 block discarded – undo
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
     {
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
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Radowoj\Yaah;
4 4
 
5
-use PHPUnit\Framework\TestCase;
5
+use PHPUnit\Framework\TestCase;
6 6
 use Radowoj\Yaah\Field;
7 7
 
8 8
 class FieldTest extends TestCase
Please login to merge, or discard this patch.
tests/ClientTest.php 1 patch
Unused Use Statements   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,10 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Radowoj\Yaah;
4 4
 
5
-use PHPUnit\Framework\TestCase;
6
-use Radowoj\Yaah\Config;
7
-use Radowoj\Yaah\Client;
8
-
5
+use PHPUnit\Framework\TestCase;
6
+use Radowoj\Yaah\Config;
7
+use Radowoj\Yaah\Client;
9 8
 use SoapClient;
10 9
 
11 10
 class ClientTest extends TestCase
Please login to merge, or discard this patch.
src/Auction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.