DesarrollosWeb/documentofacil

View on GitHub
pagination.php

Summary

Maintainability
A
0 mins
Test Coverage

Showing 7 of 7 total issues

Call to undeclared function \krumo()
Open

krumo($procedures);
Severity: Critical
Found in pagination.php by phan

Call to method getInstance from undeclared class \DB
Open

$db = DB::getInstance();
Severity: Critical
Found in pagination.php by phan

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

<td><a href="<?= $_SERVER["PHP_SELF"] . "?page=1"; ?>">Primero</a></td>
Severity: Critical
Found in pagination.php by sonar-php

Multi-line function call not indented correctly; expected 4 spaces but found 8
Open

["start" => $offset, "end" => $items_per_page]);
Severity: Minor
Found in pagination.php by phpcodesniffer

Closing parenthesis of a multi-line function call must be on a line by itself
Open

["start" => $offset, "end" => $items_per_page]);
Severity: Minor
Found in pagination.php by phpcodesniffer

Opening parenthesis of a multi-line function call must be the last content on the line
Open

$procedures = $db->get_query("SELECT * FROM wp_procedure ORDER BY creation_date LIMIT :start, :end",
Severity: Minor
Found in pagination.php by phpcodesniffer

Expected 1 space after closing parenthesis; found 0
Open

<?php foreach ($procedures["data"] as $row): ?>
Severity: Minor
Found in pagination.php by phpcodesniffer
Category
Status