features/anniversary/routes.php

Summary

Maintainability
A
0 mins
Test Coverage

Blank line found at start of control structure
Open

    if (count($pms)) {

Expected 1 blank line at end of file; 3 found
Open

});

Function closing brace must go on the next line following the body; found 1 blank lines before brace
Open

});

Function closing brace must go on the next line following the body; found 1 blank lines before brace
Open

});

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

    } else {

Spaces must be used to indent lines; tabs are not allowed
Open

    if ($pm_ids['status'] === Anniversary::OK) {

Spaces must be used to indent lines; tabs are not allowed
Open

    /* 

Spaces must be used to indent lines; tabs are not allowed
Open

    header("Content-Type: application/json");

Spaces must be used to indent lines; tabs are not allowed
Open

    echo json_encode(array("anniversaries_today" => $anivs));

Spaces must be used to indent lines; tabs are not allowed
Open

        $anivs = count($pm_ids['values']);

Spaces must be used to indent lines; tabs are not allowed
Open

        $anivs = 0;

Spaces must be used to indent lines; tabs are not allowed
Open

    $pm_ids = Anniversary::get_ids($today, $conn);

Whitespace found at end of line
Open

    /* 

There are no issues that match your filters.

Category
Status