@@ -62,7 +62,7 @@ discard block |
||
| 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 |
||
| 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 | ]; |
@@ -101,7 +101,7 @@ discard block |
||
| 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 |
||
| 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 | } |