PascalHonegger/M151

View on GitHub
Discover/DiscoverRowBuilder.php

Summary

Maintainability
A
1 hr
Test Coverage

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

    function __construct(array $location)
    {
        echo '
        <div id="' . $location['id_location'] . '" class="contentLocation">
            <table style="width:100%" class="table" onclick="openlocation(' . $location['id_location'] . ', \'' . $location['name'] . '\')">
Severity: Minor
Found in Discover/DiscoverRowBuilder.php - About 1 hr to fix

    Missing class import via use statement (line '36', column '28').
    Open

            $filemanager = new FileManager();
    Severity: Minor
    Found in Discover/DiscoverRowBuilder.php by phpmd

    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

    There are no issues that match your filters.

    Category
    Status