Leuchtfeuer/mautic-deutschepost

View on GitHub
Entity/TriggerCampaign.php

Summary

Maintainability
A
3 hrs
Test Coverage

TriggerCampaign has 23 functions (exceeds 20 allowed). Consider refactoring.
Open

class TriggerCampaign extends FormEntity
{
    public const ALLOWED_TYPES = [
        'string'      => 'plugin.printmailing.form.types.string',
        'integer'     => 'plugin.printmailing.form.types.integer',
Severity: Minor
Found in Entity/TriggerCampaign.php - About 2 hrs to fix

    Method loadValidatorMetadata has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public static function loadValidatorMetadata(SymfonyClassMetadata $metadata)
        {
            $metadata->addPropertyConstraints('name', [
                new NotBlank([
                    'message' => 'mautic.core.name.required',
    Severity: Minor
    Found in Entity/TriggerCampaign.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status