GinoPane/PHPolyglot

View on GitHub
src/API/Implementation/TTS/IbmWatson/Voice/IbmWatsonVoicesTrait.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method getVoiceConstraints has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function getVoiceConstraints(): array
    {
        return [
            IbmWatsonVoicesInterface::VOICE_ALLISON => new TtsVoiceFormat(
                new Language(Language::CODE_ENGLISH),
Severity: Major
Found in src/API/Implementation/TTS/IbmWatson/Voice/IbmWatsonVoicesTrait.php - About 2 hrs to fix

    Method getVoiceParameter has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getVoiceParameter(Language $language, array $additionalData = []): string
        {
            $voiceConstraints = $this->getVoiceConstraints();
    
            /** @var string $voice */
    Severity: Minor
    Found in src/API/Implementation/TTS/IbmWatson/Voice/IbmWatsonVoicesTrait.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status