chamilo/chamilo-lms

View on GitHub

Language: Use parent ISO code + self ID for new sub languages
#6016

AngelFQC wants to merge AngelFQC:sub-lang into chamilo:master
Failed
2 issues to fix.

Showing 2 of 2 total issues

Function up has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
New

public function up(Schema $schema): void
{
$kernel = $this->container->get('kernel');
$baseTranslationPath = $kernel->getProjectDir().'/var/translations/messages.';
 
 
Severity: Minor
Found in src/CoreBundle/Migrations/Schema/V200/Version20250106152601.php - About 25 mins to fix

Method up has 40 lines of code (exceeds 25 allowed). Consider refactoring.
New

public function up(Schema $schema): void
{
$kernel = $this->container->get('kernel');
$baseTranslationPath = $kernel->getProjectDir().'/var/translations/messages.';
 
 
Severity: Minor
Found in src/CoreBundle/Migrations/Schema/V200/Version20250106152601.php - About 1 hr to fix
    Category
    Status