bourdeau/jdhm-api

View on GitHub
src/JdhmApi/DataFixtures/ORM/LoadClient.php

Summary

Maintainability
A
2 hrs
Test Coverage

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

    private function generateEmail(Client $client)
    {
        $domains = [
            'foo',
            'bar',
Severity: Minor
Found in src/JdhmApi/DataFixtures/ORM/LoadClient.php - About 1 hr to fix

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

        private function generateNames(Client $client)
        {
            $firstNames = [
                'Paul',
                'Dave',
    Severity: Minor
    Found in src/JdhmApi/DataFixtures/ORM/LoadClient.php - About 1 hr to fix

      Missing class import via use statement (line '17', column '41').
      Open

                  $client->setDateOfBirth(new \DateTime("now"));

      MissingImport

      Since: 2.7.0

      Importing all external classes in a file through use statements makes them clearly visible.

      Example

      function make() {
          return new \stdClass();
      }

      Source http://phpmd.org/rules/cleancode.html#MissingImport

      Blank line found at end of control structure
      Open

      
      

      There are no issues that match your filters.

      Category
      Status