DesarrollosWeb/documentofacil

View on GitHub
mis_tramites.php

Summary

Maintainability
A
0 mins
Test Coverage

Showing 35 of 35 total issues

Call to method get_orders_current_user from undeclared class \Procedure
Open

$procedure_data = $procedure->get_orders_current_user(["start" => $current_page, "items" => $items_per_page]);
Severity: Critical
Found in mis_tramites.php by phan

Variable $text is undeclared
Open

<h1 class="display-4"><?= $text["procedure_title"]; ?></h1>
Severity: Minor
Found in mis_tramites.php by phan

Variable $text is undeclared
Open

<caption><?= $text["procedure_list"]; ?></caption>
Severity: Minor
Found in mis_tramites.php by phan

Variable $text is undeclared
Open

tabindex="-1"><?= $text["first"]; ?></a>
Severity: Minor
Found in mis_tramites.php by phan

Variable $text is undeclared
Open

<h2><?= $text["my_procedures"]; ?></h2>
Severity: Minor
Found in mis_tramites.php by phan

Variable $text is undeclared
Open

<th id="4" scope="col"><?= $text["update_date"] ?></th>
Severity: Minor
Found in mis_tramites.php by phan

Call to undeclared function \get_footer()
Open

get_footer();
Severity: Critical
Found in mis_tramites.php by phan

Call to undeclared function \wp_get_current_user() (Did you mean \get_current_user())
Open

$user = wp_get_current_user();
Severity: Critical
Found in mis_tramites.php by phan

Variable $text is undeclared
Open

<h4><?= $text["procedure_check"]; ?></h4>
Severity: Minor
Found in mis_tramites.php by phan

Variable $text is undeclared
Open

href="<?= $_SERVER["PHP_SELF"] . PAGE . ($current_page + 1); ?>"><?= $text["next"]; ?></a>
Severity: Minor
Found in mis_tramites.php by phan

Call to undeclared function \krumo()
Open

krumo($e);
Severity: Critical
Found in mis_tramites.php by phan

Variable $text is undeclared
Open

<th id="5" scope="col"><?= $text["status"] ?></th>
Severity: Minor
Found in mis_tramites.php by phan

Variable $text is undeclared
Open

href="<?= $_SERVER["PHP_SELF"] . PAGE . ($current_page - 1 < 1 ? 1 : $current_page - 1); ?>"><?= $text["previous"]; ?></a>
Severity: Minor
Found in mis_tramites.php by phan

Variable $text is undeclared
Open

<title><?= $text["site_name"] . " - " . $text["procedure_title"]; ?></title>
Severity: Minor
Found in mis_tramites.php by phan

Variable $text is undeclared
Open

<th id="6" scope="col"><?= $text["action"] ?></th>
Severity: Minor
Found in mis_tramites.php by phan

Variable $text is undeclared
Open

<span><?= $text["no_results"]; ?></span>
Severity: Minor
Found in mis_tramites.php by phan

Call to method __construct from undeclared class \Procedure
Open

$procedure = new Procedure($_SESSION["email"]);
Severity: Critical
Found in mis_tramites.php by phan

Variable $text is undeclared
Open

href="formulario.php?procedure_id=<?= $row["id"]; ?>"><?= $text["open"] ?></a>
Severity: Minor
Found in mis_tramites.php by phan

Variable $text is undeclared
Open

<a href="tramites.php" class="btn btn-secondary"><?= $text["back"]; ?></a>
Severity: Minor
Found in mis_tramites.php by phan

Variable $text is undeclared
Open

<th id="1" scope="col"><?= $text["name"]; ?></th>
Severity: Minor
Found in mis_tramites.php by phan

Call to undeclared function \get_header() (Did you mean \get_headers())
Open

get_header();
Severity: Critical
Found in mis_tramites.php by phan

Variable $text is undeclared
Open

<th id="2" scope="col"><?= $text["user"] ?></th>
Severity: Minor
Found in mis_tramites.php by phan

Variable $text is undeclared
Open

<th id="3" scope="col"><?= $text["creation_date"] ?></th>
Severity: Minor
Found in mis_tramites.php by phan

Variable $text is undeclared
Open

href="<?= $_SERVER["PHP_SELF"] . PAGE . ($total_pages); ?>"><?= $text["last"]; ?></a>
Severity: Minor
Found in mis_tramites.php by phan

Remove this commented out code.
Open

//if (!IS_DEVELOPMENT) {
Severity: Major
Found in mis_tramites.php by sonar-php

Define a constant instead of duplicating this literal "email" 3 times.
Open

$_SESSION["email"] = $user->user_email;
Severity: Critical
Found in mis_tramites.php by sonar-php

Define a constant instead of duplicating this literal "PHP_SELF" 4 times.
Open

<a class="page-link" href="<?= $_SERVER["PHP_SELF"] . PAGE . 1; ?>"
Severity: Critical
Found in mis_tramites.php by sonar-php

Remove this commented out code.
Open

//}
Severity: Major
Found in mis_tramites.php by sonar-php

Line exceeds 120 characters; contains 121 characters
Open

<?php if (isset($procedure_data) && isset($procedure_data["data"]) && count($procedure_data["data"]) > 0): ?>
Severity: Minor
Found in mis_tramites.php by phpcodesniffer

Line exceeds 120 characters; contains 150 characters
Open

href="<?= $_SERVER["PHP_SELF"] . PAGE . ($total_pages); ?>"><?= $text["last"]; ?></a>
Severity: Minor
Found in mis_tramites.php by phpcodesniffer

Line exceeds 120 characters; contains 155 characters
Open

href="<?= $_SERVER["PHP_SELF"] . PAGE . ($current_page + 1); ?>"><?= $text["next"]; ?></a>
Severity: Minor
Found in mis_tramites.php by phpcodesniffer

Line exceeds 120 characters; contains 187 characters
Open

href="<?= $_SERVER["PHP_SELF"] . PAGE . ($current_page - 1 < 1 ? 1 : $current_page - 1); ?>"><?= $text["previous"]; ?></a>
Severity: Minor
Found in mis_tramites.php by phpcodesniffer

Expected 1 space after ELSE keyword; 0 found
Open

<?php else: ?>
Severity: Minor
Found in mis_tramites.php by phpcodesniffer

Expected 1 space after closing parenthesis; found 0
Open

<?php foreach ($procedure_data["data"] as $row): ?>
Severity: Minor
Found in mis_tramites.php by phpcodesniffer

Expected 1 space after closing parenthesis; found 0
Open

<?php if (isset($procedure_data) && isset($procedure_data["data"]) && count($procedure_data["data"]) > 0): ?>
Severity: Minor
Found in mis_tramites.php by phpcodesniffer

There are no issues that match your filters.

Category
Status