Code optimation by PHP-Code Sniffer

This commit is contained in:
2020-04-02 21:13:35 +02:00
parent 725ca5b149
commit ac5a3f1d5a
314 changed files with 665 additions and 1688 deletions

View File

@@ -19,8 +19,6 @@ trait SlugAttribut
/**
* @todo Maybe throw an other Exception here?
*
* @param string $slug
*
* @throws ValueInvalidException
*/
public function setSlug(string $slug): void
@@ -31,17 +29,11 @@ trait SlugAttribut
$this->slug = $slug;
}
/**
* @return string|null
*/
public function getSlug(): ?string
{
return $this->slug;
}
/**
* @return bool
*/
public function hasSlug(): bool
{
return isset($this->slug);