Call to undeclared function \WC()
$states = WC()->countries->get_states("ES");
Call to method __construct
from undeclared class \Procedure
$procedure = new Procedure($_SESSION["email"]);
Variable $text
is undeclared
<li class="list-group-item"><strong><?= $text["document"]; ?></strong>
Call to method get_procedure_status
from undeclared class \Procedure
<?php foreach ($procedure->get_procedure_status() as $status): ?>
Variable $text
is undeclared
class="btn btn-secondary"><?= $text["back"]; ?></button>
Variable $text
is undeclared
<?= $text["process_success"]; ?>.
Call to undeclared function \get_footer()
get_footer();
Variable $text
is undeclared
<title><?= $text["site_name"] . " - " . $text["procedure_title"]; ?></title>
Variable $text
is undeclared
<strong><?= $text["creation_date"]; ?>
Variable $text
is undeclared
<?= $text["sent_to_onedrive"]; ?>
Variable $text
is undeclared
<strong><?= $text["update_date"]; ?>
Call to undeclared function \get_user_meta()
$user_metadata = get_user_meta($procedure_data["procedure"]["user_id"], "", false);
Variable $text
is undeclared
<h1 class="display-4"><?= $text["procedure_title"]; ?></h1>
Variable $text
is undeclared
<a href="tramites.php" class="btn btn-secondary"><?= $text["back_to_list"]; ?></a>
Call to undeclared function \get_header()
(Did you mean \get_headers())
get_header();
Variable $text
is undeclared
<strong><?= $text["user"]; ?></strong>: <?= $user_metadata["first_name"][0] . " " . $user_metadata["last_name"][0] . " (" . $procedure_data["procedure"]["user"] . ")"; ?>
Variable $text
is undeclared
<li class="list-group-item"><strong><?= $text["address"]; ?></strong>
Call to method get_document_types
from undeclared class \Procedure
$document_types = $procedure->get_document_types();
Call to method get_user_type
from undeclared class \Procedure
$user = $procedure->get_user_type($_SESSION["email"]);
Variable $text
is undeclared
<h4><?= $text["documents"]; ?></h4>
Variable $text
is undeclared
<label for="procedure_status" class="form-label"><?= $text["status"]; ?></label>
Variable $text
is undeclared
<button type="submit" name="submit" class="btn btn-primary"><?= $text["send"]; ?></button>
Variable $text
is undeclared
<h3 class="card-title"><?= $text["personal_data"]; ?></h3>
Variable $text
is undeclared
<img src="gestoria/onedrive-logo.png" alt="<?= $text["sent_to_onedrive"]; ?>"><br/>
Call to method process
from undeclared class \Procedure
$result = $procedure->process($_POST, $_FILES);
Variable $text
is undeclared
class="btn btn-secondary"><?= $text["back"]; ?></button>
Call to method get_order_and_procedure
from undeclared class \Procedure
$procedure_data = $procedure->get_order_and_procedure($procedure_id);
Variable $text
is undeclared
<h4 class="card-subtitle mb-2 text-muted"><?= $text["procedure_status"]; ?>
Call to undeclared function \wp_get_current_user()
(Did you mean \get_current_user())
$user_session = wp_get_current_user();
Define a constant instead of duplicating this literal "status" 3 times.
<label for="procedure_status" class="form-label"><?= $text["status"]; ?></label>
Define a constant instead of duplicating this literal "procedure_status" 3 times.
<h4 class="card-subtitle mb-2 text-muted"><?= $text["procedure_status"]; ?>
Define a constant instead of duplicating this literal "administrator" 3 times.
<?php if (isset($user) && isset($user["rol"]["administrator"])): ?>
Remove this commented out code.
Remove this commented out code.
Define a constant instead of duplicating this literal "email" 5 times.
$_SESSION["email"] = $user_session->user_email;
Define a constant instead of duplicating this literal "procedure" 11 times.
$user_metadata = get_user_meta($procedure_data["procedure"]["user_id"], "", false);
Line exceeds 120 characters; contains 198 characters
<strong><?= $text["user"]; ?></strong>: <?= $user_metadata["first_name"][0] . " " . $user_metadata["last_name"][0] . " (" . $procedure_data["procedure"]["user"] . ")"; ?>
Line exceeds 120 characters; contains 156 characters
target="_blank"><?= (!empty($file["document_name"])) ? $file["type"] . " - " . $file["document_name"] : $file["type"]; ?></a>
Line exceeds 120 characters; contains 219 characters
: <?= $user_metadata["billing_address_1"][0] . ", " . $user_metadata["billing_city"][0] . ". " . $states[$user_metadata["billing_state"][0]] . ", " . $user_metadata["billing_postcode"][0]; ?>
Line exceeds 120 characters; contains 155 characters
<option <?php echo (strcasecmp($procedure_data["procedure"]["procedure_status"], $status["status"]) == 0) ? "selected" : ""; ?>
Expected 1 space after closing parenthesis; found 0
<?php if (isset($user) && isset($user["rol"]["customer"])): ?>
Expected 1 space after closing parenthesis; found 0
<?php if (isset($user["rol"]["administrator"])): ?>
Expected 1 space after closing parenthesis; found 0
<?php foreach ($procedure->get_procedure_status() as $status): ?>
Expected 1 space after closing parenthesis; found 0
<?php if (isset($user["rol"]["administrator"])): ?>
Expected 1 space after closing parenthesis; found 0
<?php if (isset($user) && isset($user["rol"]["administrator"])): ?>
Expected 1 space after closing parenthesis; found 0
<?php foreach ($procedure_data["files"] as $file): ?>
Expected 1 space after closing parenthesis; found 0
<?php if (isset($result)): ?>
There are no issues that match your filters.