DX: fix phstan & cs

This commit is contained in:
2023-03-05 17:43:44 +01:00
parent 4dbb195b45
commit 8695099819
25 changed files with 119 additions and 349 deletions

View File

@@ -12,6 +12,8 @@ declare(strict_types=1);
namespace Chill\PersonBundle\Templating\Entity;
use Chill\MainBundle\Templating\Entity\AbstractChillEntityRender;
use Chill\MainBundle\Templating\Entity\BoxUtilsChillEntityRenderTrait;
use Chill\MainBundle\Templating\Entity\ChillEntityRenderInterface;
use Chill\PersonBundle\Config\ConfigPersonAltNamesHelper;
use Chill\PersonBundle\Entity\Person;
use Symfony\Component\Templating\EngineInterface;
@@ -22,8 +24,9 @@ use function array_key_exists;
/**
* Render a Person.
*/
class PersonRender extends AbstractChillEntityRender implements PersonRenderInterface
class PersonRender implements PersonRenderInterface
{
use BoxUtilsChillEntityRenderTrait;
private ConfigPersonAltNamesHelper $configAltNamesHelper;
private EngineInterface $engine;
@@ -40,9 +43,6 @@ class PersonRender extends AbstractChillEntityRender implements PersonRenderInte
$this->translator = $translator;
}
/**
* @param Person $person
*/
public function renderBox($person, array $options): string
{
$params = [
@@ -72,9 +72,6 @@ class PersonRender extends AbstractChillEntityRender implements PersonRenderInte
$this->getDefaultClosingBox();
}
/**
* @param Person $person
*/
public function renderString($person, array $options): string
{
$options = array_merge(['addAge' => true], $options);