chamilo/chamilo-lms

View on GitHub
src/CourseBundle/Repository/CLpRelUserRepository.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused parameters such as '$currentUser'.
Open

        $currentUser,

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Missing function doc comment
Open

    public function __construct(ManagerRegistry $registry)

Doc comment for parameter $newUserList does not match actual variable name $course
Open

     * @param array $newUserList

Doc comment for parameter $deleteUsers does not match actual variable name $lp
Open

     * @param bool  $deleteUsers

Missing class doc comment
Open

final class CLpRelUserRepository extends ResourceRepository

Add a single space around assignment operators
Open

declare(strict_types=1);

Doc comment for parameter $usersToDelete does not match actual variable name $course
Open

     * @param array $usersToDelete

There are no issues that match your filters.

Category
Status