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

@@ -15,7 +15,6 @@ use Chill\MainBundle\Routing\LocalMenuBuilderInterface;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\TaskBundle\Security\Authorization\TaskVoter;
use Knp\Menu\MenuItem;
use LogicException;
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
@@ -63,13 +62,13 @@ class MenuBuilder implements LocalMenuBuilderInterface
'person' => $this->buildPersonMenu($menu, $parameters),
'accompanyingCourse' => $this->buildAccompanyingCourseMenu($menu, $parameters),
'section' => $menu->setExtras('icons'),
default => throw new LogicException("this menuid {$menuId} is not implemented"),
default => throw new \LogicException("this menuid {$menuId} is not implemented"),
};
}
public function buildPersonMenu($menu, $parameters)
{
//var $person \Chill\PersonBundle\Entity\Person */
// var $person \Chill\PersonBundle\Entity\Person */
$person = $parameters['person'] ?? null;
if ($this->authorizationChecker->isGranted(TaskVoter::SHOW, $person)) {

View File

@@ -103,7 +103,7 @@ class UserMenuBuilder implements LocalMenuBuilderInterface
{
if (0 < $number) {
$menu->addChild(
$this->translator->trans($message, $number),
$this->translator->trans($message, ['nb' => $number]),
[
'route' => 'chill_task_singletask_my_tasks',
'routeParameters' => [