chamilo/chamilo-lms

View on GitHub
src/CoreBundle/Controller/Admin/PluginsController.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused local variables such as '$pluginName'.
Open

        foreach ($allPlugins as $pluginName) {

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

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

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

class PluginsController extends BaseController

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

    #[Route('/', name: 'chamilo_core_plugins', methods: ['GET', 'POST'])]

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

    public function pluginsAdd(): Response

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

    public function index(): Response

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

    #[IsGranted('ROLE_ADMIN')]

Add a single space around assignment operators
Open

declare(strict_types=1);

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

#[Route('/plugins')]

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

    #[IsGranted('ROLE_ADMIN')]

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

    #[Route('/add', name: 'chamilo_core_plugins', methods: ['GET', 'POST'])]

There are no issues that match your filters.

Category
Status