Completed
Push — master ( c039cd...dcae43 )
by Warrick
01:38
created
src/Offer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -404,7 +404,7 @@
 block discarded – undo
404 404
      */
405 405
     public function toArray(): array
406 406
     {
407
-        return array_filter($this->attributes, function ($attribute) {
407
+        return array_filter($this->attributes, function($attribute) {
408 408
             return $attribute ? true : false;
409 409
         });
410 410
     }
Please login to merge, or discard this patch.
src/OfferCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function find($sku): ?Offer
64 64
     {
65
-        $offers = array_filter($this->items, function (Offer $offer) use ($sku) {
65
+        $offers = array_filter($this->items, function(Offer $offer) use ($sku) {
66 66
             return $offer->toArray()['ShopSKU'] === (string)$sku;
67 67
         });
68 68
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     public function toArray(): array
122 122
     {
123 123
         return [
124
-            'Offers' => array_map(function (Offer $offer) {
124
+            'Offers' => array_map(function(Offer $offer) {
125 125
                 return $offer->toArray();
126 126
             }, $this->items)
127 127
         ];
Please login to merge, or discard this patch.