Fixed some inspection issues.

This commit is contained in:
Jan Böhmer 2019-09-16 22:04:59 +02:00
parent f7c2f1032f
commit 21a81486df
24 changed files with 64 additions and 84 deletions

View file

@ -40,13 +40,6 @@ use App\Validator\Constraints\Selectable;
trait BasicPropertyTrait
{
/**
* @var string The name of this part
* @ORM\Column(type="string")
* @ColumnSecurity(prefix="name")
*/
protected $name = '';
/**
* @var string A text describing what this part does
* @ORM\Column(type="text")
@ -182,7 +175,7 @@ trait BasicPropertyTrait
* @param Category $category The new category of this part
* @return self
*/
public function setCategory(Category $category): Part
public function setCategory(Category $category): self
{
$this->category = $category;
return $this;
@ -196,7 +189,7 @@ trait BasicPropertyTrait
*
* @return self
*/
public function setFootprint(?Footprint $new_footprint): Part
public function setFootprint(?Footprint $new_footprint): self
{
$this->footprint = $new_footprint;
return $this;