mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 11:03:50 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -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)) {
|
||||
|
@@ -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' => [
|
||||
|
Reference in New Issue
Block a user