Passed
Push — master ( 9544ba...f6872f )
by Warrick
02:24 queued 10s
created
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.
src/Offer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public function fill(array $attributes)
103 103
     {
104
-        $this->attributes = array_map(function ($attributes) {
104
+        $this->attributes = array_map(function($attributes) {
105 105
             return strip_tags($attributes);
106 106
         }, $attributes);
107 107
         return $this;
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
      */
407 407
     public function toArray(): array
408 408
     {
409
-        return array_filter($this->attributes, function ($attribute) {
409
+        return array_filter($this->attributes, function($attribute) {
410 410
             return $attribute ? true : false;
411 411
         });
412 412
     }
Please login to merge, or discard this patch.