Skip to content

Conversation

@christianbeeznest
Copy link
Contributor

No description provided.

@@ -0,0 +1,807 @@
<?php

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File SettingsValueTemplateFixtures.php has 786 lines of code (exceeds 250 allowed). Consider refactoring.

/**
* Returns the list of JSON templates grouped by category.
*/
public static function getTemplatesGrouped(): array

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method getTemplatesGrouped has 739 lines of code (exceeds 25 allowed). Consider refactoring.

}
}

public function down(Schema $schema): void

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Method down has 28 lines of code (exceeds 25 allowed). Consider refactoring.

return 'Adds value_template_id column to settings table and creates settings_value_template table for JSON templates.';
}

public function up(Schema $schema): void

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

}
}

public function down(Schema $schema): void

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function down has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.

@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit 4b12728 and detected 12 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 11
Duplication 1

View more on Code Climate.

@ywarnier ywarnier merged commit 94566b0 into chamilo:master Jul 9, 2025
2 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants