mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -12,7 +12,6 @@ declare(strict_types=1);
|
||||
namespace Chill\ActivityBundle\Templating\Entity;
|
||||
|
||||
use Chill\ActivityBundle\Entity\ActivityReason;
|
||||
use Chill\MainBundle\Templating\Entity\AbstractChillEntityRender;
|
||||
use Chill\MainBundle\Templating\Entity\BoxUtilsChillEntityRenderTrait;
|
||||
use Chill\MainBundle\Templating\Entity\ChillEntityRenderInterface;
|
||||
use Chill\MainBundle\Templating\TranslatableStringHelper;
|
||||
@@ -38,21 +37,21 @@ class ActivityReasonRender implements ChillEntityRenderInterface
|
||||
public function renderBox($entity, array $options): string
|
||||
{
|
||||
return
|
||||
$this->getDefaultOpeningBox('activity-reason') .
|
||||
'<span class="badge bg-chill-pink">' .
|
||||
'<i class="fa fa-question-circle"></i> ' .
|
||||
'<span class="category">' .
|
||||
$this->getDefaultOpeningBox('activity-reason').
|
||||
'<span class="badge bg-chill-pink">'.
|
||||
'<i class="fa fa-question-circle"></i> '.
|
||||
'<span class="category">'.
|
||||
$this->translatableStringHelper->localize(
|
||||
$entity->getCategory()->getName()
|
||||
) .
|
||||
'</span>' .
|
||||
'<span class="separator"> > </span>' .
|
||||
'<span class="reason">' .
|
||||
).
|
||||
'</span>'.
|
||||
'<span class="separator"> > </span>'.
|
||||
'<span class="reason">'.
|
||||
$this->translatableStringHelper->localize(
|
||||
$entity->getName()
|
||||
) .
|
||||
'</span>' .
|
||||
'</span>' .
|
||||
).
|
||||
'</span>'.
|
||||
'</span>'.
|
||||
$this->getDefaultClosingBox();
|
||||
}
|
||||
|
||||
@@ -63,10 +62,10 @@ class ActivityReasonRender implements ChillEntityRenderInterface
|
||||
if (null !== $entity->getCategory()) {
|
||||
$category = $this->translatableStringHelper->localize(
|
||||
$entity->getCategory()->getName()
|
||||
) . ' > ';
|
||||
).' > ';
|
||||
}
|
||||
|
||||
return $category .
|
||||
return $category.
|
||||
$this->translatableStringHelper->localize(
|
||||
$entity->getName()
|
||||
);
|
||||
|
Reference in New Issue
Block a user