Passed
Push — master ( a5c74c...eed2cc )
by Radosław
02:38
created
src/AuctionHelper.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 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
      * @param integer $localId - local item id, required by WebAPI
44 44
      * @return integer id of created auction
45 45
      */
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
     /**
127 127
      * @param  integer $itemId id of auction to get
128
-     * @return Radowoj\Yaah\Auction | null
128
+     * @return Auction|null | null
129 129
      */
130 130
     public function getAuctionByItemId($itemId)
131 131
     {
Please login to merge, or discard this 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/Auction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     {
35 35
         $fields = [];
36 36
 
37
-        foreach($this->fields as $fid => $value) {
37
+        foreach ($this->fields as $fid => $value) {
38 38
             $fields[] = (new Field($fid, $value))->toArray();
39 39
         }
40 40
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         $this->fields = [];
52 52
         $this->photos = [];
53 53
 
54
-        foreach($fields as $apiField) {
54
+        foreach ($fields as $apiField) {
55 55
             $field = new Field(0, '');
56 56
             $field->fromArray((array)$apiField);
57 57
             $this->fields[$field->getFid()] = $field->getValue();
Please login to merge, or discard this patch.
src/Field.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
         //recursive object to array :)
190 190
         $array = json_decode(json_encode($array), true);
191 191
 
192
-        foreach($array as $key => $value) {
192
+        foreach ($array as $key => $value) {
193 193
             if (!property_exists($this, $key)) {
194 194
                 throw new Exception("Unknown Field property: {$key}");
195 195
             }
Please login to merge, or discard this patch.