Update CanBeBought.php

This commit is contained in:
Patrick
2022-01-18 00:24:11 +01:00
committed by GitHub
parent c2f92ae9f0
commit 2e23535593

View File

@@ -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;
}
}
/**