features/calendar/routes.php

Summary

Maintainability
A
0 mins
Test Coverage

Expected 1 space after FUNCTION keyword; 0 found
Open

$app->get("/calendar/facilitators/add/:id", function($id) use ($app) {
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Expected 1 space after FUNCTION keyword; 0 found
Open

$app->post("/calendar/facilitators/:id", function($id) use ($app) {
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Expected 1 space after FUNCTION keyword; 0 found
Open

$app->get("/calendar/facilitators/request/:id", function($id) use ($app) {
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Expected 1 space after FUNCTION keyword; 0 found
Open

$app->get("/calendar/facilitators/:id", function($id) use ($app) {
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 12
Open

            }
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        }
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 12
Open

            if (count($facilitator["values"]) === 1) {
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Expected 1 space after IF keyword; 0 found
Open

        if(!$config["facilitator"]) {
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        }
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        } else {
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Whitespace found at end of line
Open

            $subject = "Facilitator needed [PM-{$id}]";            
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 12
Open

            } else {
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        }
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        }
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        }
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        } else {
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        if (!$error) {
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        } else {
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        if ($facilitator["status"] === Persistence::OK) {
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        if(!$config["facilitator"]) {
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        if ($ok) {
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        if (!$error) {
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Expected 1 space after IF keyword; 0 found
Open

        if(!$config["facilitator"]) {
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        }
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        } else {
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        if(!$config["facilitator"]) {
Severity: Minor
Found in features/calendar/routes.php by phpcodesniffer

There are no issues that match your filters.

Category
Status