chamilo/chamilo-lms

View on GitHub
src/CoreBundle/Controller/NewsController.php

Summary

Maintainability
A
0 mins
Test Coverage

You must use "/**" style comments for a class comment
Open

class NewsController extends BaseController

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

#[Route('/news')]

You must use "/**" style comments for a function comment
Open

    public function index(SysAnnouncementRepository $sysAnnouncementRepository): Response

Add a single space around assignment operators
Open

declare(strict_types=1);

Missing function doc comment
Open

    public function __construct(

Closing brace must be on a line by itself
Open

    ) {}

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Open

    #[Route('/list', name: 'news_index', methods: ['GET'])]

Closing brace must be on a line by itself
Open

    ) {}

Line indented incorrectly; expected 4 spaces, found 8
Open

        private readonly AccessUrlHelper $accessUrlHelper,

Line indented incorrectly; expected 4 spaces, found 8
Open

        private readonly UserHelper $userHelper,

There are no issues that match your filters.

Category
Status