honeybee/trellis

View on GitHub
src/Sham/TextGuesser.php

Summary

Maintainability
C
1 day
Test Coverage

File TextGuesser.php has 371 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

namespace Trellis\Sham;

use Faker\Generator;
Severity: Minor
Found in src/Sham/TextGuesser.php - About 4 hrs to fix

    Method buildNameMap has 60 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        protected static function buildNameMap(Generator $generator)
        {
            return array_fill_keys(
                [
                    'name',
    Severity: Major
    Found in src/Sham/TextGuesser.php - About 2 hrs to fix

      Method buildPhoneMap has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          protected static function buildPhoneMap(Generator $generator)
          {
              return array_fill_keys(
                  [
                      'phone',
      Severity: Minor
      Found in src/Sham/TextGuesser.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status