attogram/attogram

View on GitHub
Attogram/AttogramDatabaseInterface.php

Summary

Maintainability
A
1 hr
Test Coverage

Method tabler has 10 arguments (exceeds 4 allowed). Consider refactoring.
Open

        $table,
        $tableId,
        $nameSingular,
        $namePlural,
        $publicLink,
Severity: Major
Found in Attogram/AttogramDatabaseInterface.php - About 1 hr to fix

    The method tabler has 10 parameters. Consider reducing the number of parameters to less than 10.
    Open

        public function tabler(
            $table,
            $tableId,
            $nameSingular,
            $namePlural,

    Saw an @param annotation for countSql, but it was not found in the param list of function tabler(string $table, string $tableId, string $nameSingular, string $namePlural, string $publicLink, array $col, string $sql, string $adminLink, bool $showEdit, int $perPage) : void
    Open

         * @param  string $countSql     SQL query to get total number of items in table

    Expected @param annotation for publicLink to be before the @param annotation for col
    Open

         * @param  array  $col          Column Display Info - array of array('class'=>'...', 'title'=>'...', 'key'=>'...')

    TODO found
    Open

         // TODO - return string, not print

    There are no issues that match your filters.

    Category
    Status