-
Notifications
You must be signed in to change notification settings - Fork 531
Settings: Add JSON template system and migration - refs #6427 #6448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| @@ -0,0 +1,807 @@ | |||
| <?php | |||
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
|
Code Climate has analyzed commit 4b12728 and detected 12 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
No description provided.