chamilo/chamilo-lms

View on GitHub
src/CoreBundle/Traits/Repository/ORM/TreeRepositoryTrait.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '74', column '23').
Open

            throw new \Gedmo\Exception\InvalidMappingException('Tree listener was not found on your entity manager, it must be hooked into the event manager');

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '79', column '23').
Open

            throw new \Gedmo\Exception\InvalidMappingException('This repository cannot be used for tree type: '.$treeListener->getStrategy($em, $class->name)->getName());

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing parameter name
Open

     * @param string - Sort direction ("asc" or "desc")

Missing class doc comment
Open

trait TreeRepositoryTrait

Missing parameter name
Open

     * @param string - Sort direction ("asc" or "desc")

Missing parameter name
Open

     * @param string - Sort by field

Missing parameter name
Open

     * @param string - Sort by field

There are no issues that match your filters.

Category
Status