abrain/einsatzverwaltung

View on GitHub
src/Model/IncidentReport.php

Summary

Maintainability
B
6 hrs
Test Coverage
F
37%

IncidentReport has 32 functions (exceeds 20 allowed). Consider refactoring.
Open

class IncidentReport
{
    /**
     * Wenn es sich um einen bestehenden Beitrag handelt, ist hier das WordPress-Beitragsobjekt gespeichert.
     *
Severity: Minor
Found in src/Model/IncidentReport.php - About 4 hrs to fix

    The class IncidentReport has an overall complexity of 55 which is very high. The configured complexity threshold is 50.
    Open

    class IncidentReport
    {
        /**
         * Wenn es sich um einen bestehenden Beitrag handelt, ist hier das WordPress-Beitragsobjekt gespeichert.
         *
    Severity: Minor
    Found in src/Model/IncidentReport.php by phpmd

    File IncidentReport.php has 276 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    namespace abrain\Einsatzverwaltung\Model;
    
    use abrain\Einsatzverwaltung\Types\AlertingMethod;
    Severity: Minor
    Found in src/Model/IncidentReport.php - About 2 hrs to fix

      TODO found
      Open

                  error_log('The given post object is not an incident report'); // TODO throw exception
      Severity: Minor
      Found in src/Model/IncidentReport.php by fixme

      There are no issues that match your filters.

      Category
      Status