astehlik/typo3-extension-mediaoembed

View on GitHub
Classes/Provider/ProviderUrls.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Method __construct has 263 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

    public function __construct()
    {
        $host = '{host}';
        $this->urls = [
            '#https?://((m|www)\.)?youtube\.com/watch.*#i' => [
Severity: Major
Found in Classes/Provider/ProviderUrls.php - About 1 day to fix

    File ProviderUrls.php has 277 lines of code (exceeds 250 allowed). Consider refactoring.
    Wontfix

    <?php
    
    declare(strict_types=1);
    
    namespace Sto\Mediaoembed\Provider;
    Severity: Minor
    Found in Classes/Provider/ProviderUrls.php - About 2 hrs to fix

      The method __construct() has 270 lines of code. Current threshold is set to 100. Avoid really long methods.
      Wontfix

          public function __construct()
          {
              $host = '{host}';
              $this->urls = [
                  '#https?://((m|www)\.)?youtube\.com/watch.*#i' => [
      Severity: Minor
      Found in Classes/Provider/ProviderUrls.php by phpmd

      There are no issues that match your filters.

      Category
      Status