e107inc/e107

View on GitHub
e107_handlers/date_handler.php

Summary

Maintainability
A
30 mins
Test Coverage
B
87%

Avoid too many return statements within this method.
Open

        return gmmktime($timeVals[1], $timeVals[2], $timeVals[3], $month, $day, $year);
Severity: Major
Found in e107_handlers/date_handler.php - About 30 mins to fix

    Argument #2 of this call to \str_pad is typically a literal or constant but isn't, but argument #1 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
    Open

                echo ($mode =='list') ? "Unknown format : '{$format}'   ". str_pad(' ', $maxValueLength). ($description ? " ( {$description} )" : ''). "<br />" : "";
    Severity: Minor
    Found in e107_handlers/date_handler.php by phan

    Argument 1 (datestamp) is string but \e_date::convert_date() takes int defined at /code/e107_handlers/date_handler.php:145
    Open

            return is_numeric($string) ? $this->convert_date($string, $mask) : $this->toTime($string, $mask);
    Severity: Minor
    Found in e107_handlers/date_handler.php by phan

    There are no issues that match your filters.

    Category
    Status