mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 04:53:49 +00:00
Apply rector rules: symfony up to 54
This commit is contained in:
@@ -19,9 +19,7 @@ use Symfony\Component\Routing\Annotation\Route;
|
||||
*/
|
||||
class AdminController extends AbstractController
|
||||
{
|
||||
/**
|
||||
* @Route("/{_locale}/admin/aside-activity", name="chill_aside_activity_admin")
|
||||
*/
|
||||
#[Route(path: '/{_locale}/admin/aside-activity', name: 'chill_aside_activity_admin')]
|
||||
public function indexAdminAction()
|
||||
{
|
||||
return $this->render('@ChillAsideActivity/Admin/index.html.twig');
|
||||
|
@@ -29,9 +29,8 @@ class AsideActivity implements TrackCreationInterface, TrackUpdateInterface
|
||||
* @ORM\ManyToOne(targetEntity=User::class)
|
||||
*
|
||||
* @ORM\JoinColumn(nullable=false)
|
||||
*
|
||||
* @Assert\NotBlank
|
||||
*/
|
||||
#[Assert\NotBlank]
|
||||
private User $agent;
|
||||
|
||||
/**
|
||||
|
@@ -117,9 +117,7 @@ class AsideActivityCategory
|
||||
return null !== $this->parent;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Assert\Callback
|
||||
*/
|
||||
#[Assert\Callback]
|
||||
public function preventRecursiveParent(ExecutionContextInterface $context, mixed $payload)
|
||||
{
|
||||
if (!$this->hasParent()) {
|
||||
|
Reference in New Issue
Block a user