apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

@@ -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>&nbsp;' .
'<span class="category">' .
$this->getDefaultOpeningBox('activity-reason').
'<span class="badge bg-chill-pink">'.
'<i class="fa fa-question-circle"></i>&nbsp;'.
'<span class="category">'.
$this->translatableStringHelper->localize(
$entity->getCategory()->getName()
) .
'</span>' .
'<span class="separator">&nbsp;>&nbsp;</span>' .
'<span class="reason">' .
).
'</span>'.
'<span class="separator">&nbsp;>&nbsp;</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()
);