jfx/ci-report

View on GitHub
src/DataFixtures/ORM/Suites.php

Summary

Maintainability
D
2 days
Test Coverage

Method load has 320 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function load(ObjectManager $manager)
    {
        $ref1Date = new DateTime();
        $ref1Date->setDate(2017, 7, 1)->setTime(12, 30, 1);
        $ref2Date = new DateTime();
Severity: Major
Found in src/DataFixtures/ORM/Suites.php - About 1 day to fix

    File Suites.php has 339 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /**
     * Copyright (c) 2017 Francois-Xavier Soubirou.
     *
     * This file is part of ci-report.
    Severity: Minor
    Found in src/DataFixtures/ORM/Suites.php - About 4 hrs to fix

      The method load() has 325 lines of code. Current threshold is set to 100. Avoid really long methods.
      Open

          public function load(ObjectManager $manager)
          {
              $ref1Date = new DateTime();
              $ref1Date->setDate(2017, 7, 1)->setTime(12, 30, 1);
              $ref2Date = new DateTime();
      Severity: Minor
      Found in src/DataFixtures/ORM/Suites.php by phpmd

      There are no issues that match your filters.

      Category
      Status