Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
royduin authored and StyleCIBot committed Nov 18, 2021
1 parent 88333ae commit 340bfd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function scopeByIds(Builder $query, array $productIds): Builder

public function getPriceAttribute($price)
{
if (!(array)$this->children) {
if (!(array) $this->children) {
return $price;
}

Expand All @@ -96,7 +96,7 @@ public function getPriceAttribute($price)

public function getSpecialPriceAttribute($specialPrice)
{
if (!(array)$this->children) {
if (!(array) $this->children) {
if ($this->special_from_date && $this->special_from_date > now()->toDateString()) {
return null;
}
Expand Down

0 comments on commit 340bfd2

Please sign in to comment.