chamilo/chamilo-lms

View on GitHub
src/CoreBundle/Migrations/Schema/V200/Version20250106152601.php

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 2 of 2 total issues

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

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

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

    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
    Category
    Status