chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

    public function diskSpace(Request $request): Response

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

    #[Route('/{tool}/{type}/{id}/view', name: 'chamilo_core_resource_view', methods: ['GET'])]

Add a single space around assignment operators
Open

declare(strict_types=1);

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

class ResourceController extends AbstractResourceController implements CourseControllerInterface

Closing brace must be on a line by itself
Open

    ) {}

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

    public function view(Request $request, TrackEDownloadsRepository $trackEDownloadsRepository): Response

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

    #[Route(path: '/{tool}/{type}/{id}/disk_space', methods: ['GET', 'POST'], name: 'chamilo_core_resource_disk_space')]

Missing function doc comment
Open

    public function __construct(

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

#[Route('/r')]

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

    public function link(Request $request, RouterInterface $router, CLinkRepository $cLinkRepository): RedirectResponse

Missing function doc comment
Open

    public function changeVisibilityAll(

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

    #[Route('/{tool}/{type}/{id}/link', name: 'chamilo_core_resource_link', methods: ['GET'])]

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

    #[Route(

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

    #[Route('/{tool}/{type}/{id}/change_visibility', name: 'chamilo_core_resource_change_visibility', methods: ['POST'])]

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

    public function changeVisibility(

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

    public function download(Request $request, TrackEDownloadsRepository $trackEDownloadsRepository): Response

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

    #[Route('/{tool}/{type}/{id}/download', name: 'chamilo_core_resource_download', methods: ['GET'])]

Line indented incorrectly; expected 4 spaces, found 8
Open

        private readonly UserHelper $userHelper,

Line indented incorrectly; expected 4 spaces, found 8
Open

        private readonly ResourceNodeRepository $resourceNodeRepository,

Closing brace must be on a line by itself
Open

    ) {}

There are no issues that match your filters.

Category
Status