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,12 +12,18 @@ declare(strict_types=1);
namespace Chill\ThirdPartyBundle\Templating\Entity;
use Chill\MainBundle\Templating\Entity\AbstractChillEntityRender;
use Chill\MainBundle\Templating\Entity\BoxUtilsChillEntityRenderTrait;
use Chill\MainBundle\Templating\Entity\ChillEntityRenderInterface;
use Chill\MainBundle\Templating\TranslatableStringHelper;
use Chill\ThirdPartyBundle\Entity\ThirdParty;
use Symfony\Component\Templating\EngineInterface;
class ThirdPartyRender extends AbstractChillEntityRender
/**
* @implements ChillEntityRenderInterface<ThirdParty>
*/
class ThirdPartyRender implements ChillEntityRenderInterface
{
use BoxUtilsChillEntityRenderTrait;
protected EngineInterface $engine;
protected TranslatableStringHelper $translatableStringHelper;
@@ -30,9 +36,6 @@ class ThirdPartyRender extends AbstractChillEntityRender
$this->translatableStringHelper = $translatableStringHelper;
}
/**
* @param ThirdParty $entity
*/
public function renderBox($entity, array $options): string
{
$params = [
@@ -59,9 +62,6 @@ class ThirdPartyRender extends AbstractChillEntityRender
$this->getDefaultClosingBox();
}
/**
* @param ThirdParty $entity
*/
public function renderString($entity, array $options): string
{
if ($entity->getCivility() !== null) {