jfx/ci-report

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

Summary

Maintainability
C
1 day
Test Coverage

Method load has 256 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/Campaigns.php - About 1 day to fix

    File Campaigns.php has 275 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/Campaigns.php - About 2 hrs to fix

      The method load() has 260 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/Campaigns.php by phpmd

      There are no issues that match your filters.

      Category
      Status