desrosj/respect-art-direction

View on GitHub
functions-display.php

Summary

Maintainability
A
35 mins
Test Coverage

Method rad_post_thumbnail_html has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function rad_post_thumbnail_html( $html, $post_id, $post_thumbnail_id, $size, $attr ) {
Severity: Minor
Found in functions-display.php - About 35 mins to fix

    Avoid unused parameters such as '$post_id'.
    Open

    function rad_post_thumbnail_html( $html, $post_id, $post_thumbnail_id, $size, $attr ) {
    Severity: Minor
    Found in functions-display.php by phpmd

    UnusedFormalParameter

    Since: 0.2

    Avoid passing parameters to methods or constructors and then not using those parameters.

    Example

    class Foo
    {
        private function bar($howdy)
        {
            // $howdy is not used
        }
    }

    Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

    Avoid unused parameters such as '$attr'.
    Open

    function rad_post_thumbnail_html( $html, $post_id, $post_thumbnail_id, $size, $attr ) {
    Severity: Minor
    Found in functions-display.php by phpmd

    UnusedFormalParameter

    Since: 0.2

    Avoid passing parameters to methods or constructors and then not using those parameters.

    Example

    class Foo
    {
        private function bar($howdy)
        {
            // $howdy is not used
        }
    }

    Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

    Each array item in a multi-line array declaration must end in a comma
    Open

            '<picture>'
    Severity: Minor
    Found in functions-display.php by phpcodesniffer

    Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space
    Open

            $sources = array();
    Severity: Minor
    Found in functions-display.php by phpcodesniffer

    There are no issues that match your filters.

    Category
    Status