mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
DX: fix phstan & cs
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user