mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-21 23:05:05 +00:00
Update CanBeBought.php
This commit is contained in:
@@ -19,19 +19,17 @@ trait CanBeBought
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBuyableDescription()
|
||||
public function getBuyableDescription() : ?string
|
||||
{
|
||||
if (($name = $this->getAttribute('name'))) {
|
||||
return $name;
|
||||
}
|
||||
|
||||
if (($title = $this->getAttribute('title'))) {
|
||||
} else if (($title = $this->getAttribute('title'))) {
|
||||
return $title;
|
||||
}
|
||||
|
||||
if (($description = $this->getAttribute('description'))) {
|
||||
} else if (($description = $this->getAttribute('description'))) {
|
||||
return $description;
|
||||
}
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user