chamilo/chamilo-lms

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

Summary

Maintainability
A
0 mins
Test Coverage

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

#[Route('/file-manager')]

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

class FileManagerController extends AbstractController

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

    #[Route('/upload-image', name: 'file_manager_upload_image', methods: ['POST'])]

Add a single space around assignment operators
Open

declare(strict_types=1);

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

    public function upload(): JsonResponse

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

    public function rename(): JsonResponse

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

    #[Route('/delete', name: 'file_manager_delete', methods: ['DELETE'])]

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

    #[Route('/upload', name: 'file_manager_upload', methods: ['POST'])]

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

    #[Route('/rename', name: 'file_manager_rename', methods: ['POST'])]

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

    public function list(): JsonResponse

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

    public function uploadImage(Request $request): JsonResponse

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

    public function createFolder(): JsonResponse

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

    #[Route('/download/{filename}', name: 'file_manager_download', methods: ['GET'])]

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

    public function delete(): JsonResponse

Missing function doc comment
Open

    public function __construct(

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

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

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

    #[Route('/create-folder', name: 'file_manager_create_folder', methods: ['POST'])]

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

    public function download(string $filename): Response

There are no issues that match your filters.

Category
Status