DesarrollosWeb/documentofacil

View on GitHub
pago_en_linea.php

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 11 of 11 total issues

File pago_en_linea.php has 268 lines of code (exceeds 250 allowed). Consider refactoring.
Confirmed

<?php
//region Includes
include_once 'gestoria/constants.php';
include_once 'gestoria/Procedure.php';
include_once 'gestoria/Db.php';
Severity: Minor
Found in pago_en_linea.php - About 2 hrs to fix

Call to undeclared function \get_user_meta()
Open

$user_metadata = get_user_meta($user->ID, "", false);
Severity: Critical
Found in pago_en_linea.php by phan

Call to undeclared function \get_userdata()
Open

$user = get_userdata(2);
Severity: Critical
Found in pago_en_linea.php by phan

Call to method get_procedure_types from undeclared class \Procedure
Open

$procedure_types = $procedure_instance->get_procedure_types();
Severity: Critical
Found in pago_en_linea.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 pago_en_linea.php by phan

Call to method __construct from undeclared class \Procedure
Open

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

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

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

Call to undeclared function \get_footer()
Open

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

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

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

Line exceeds 120 characters; contains 148 characters
Open

href="https://www.bbva.com/es/que-es-el-ccv-o-cvc-en-las-tarjetas-de-credito/"><?= $text["cvc_code"]; ?></a>
Severity: Minor
Found in pago_en_linea.php by phpcodesniffer

Expected 1 space after closing parenthesis; found 0
Open

<?php foreach ($procedure_types as $procedure): ?>
Severity: Minor
Found in pago_en_linea.php by phpcodesniffer

There are no issues that match your filters.

Category
Status