APO-Epsilon/apo-website

View on GitHub
login.php

Summary

Maintainability
A
0 mins
Test Coverage

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 21 and the first side effect is on line 2.
Open

<?php
Severity: Minor
Found in login.php by phpcodesniffer

TRUE, FALSE and NULL must be lowercase; expected "true" but found "True"
Open

$active_page = True;
Severity: Minor
Found in login.php by phpcodesniffer

TRUE, FALSE and NULL must be lowercase; expected "false" but found "False"
Open

$public_page = False;
Severity: Minor
Found in login.php by phpcodesniffer

TRUE, FALSE and NULL must be lowercase; expected "false" but found "False"
Open

$exec_page = False;
Severity: Minor
Found in login.php by phpcodesniffer

End of line character is invalid; expected "\n" but found "\r\n"
Open

<?php
Severity: Minor
Found in login.php by phpcodesniffer

Line indented incorrectly; expected at least 4 spaces, found 2
Open

  echo "</div>";
Severity: Minor
Found in login.php by phpcodesniffer

Line indented incorrectly; expected at least 4 spaces, found 2
Open

  echo "<div class=\"small-12 columns\">";
Severity: Minor
Found in login.php by phpcodesniffer

Space before opening parenthesis of function call prohibited
Open

require_once ('session.php');
Severity: Minor
Found in login.php by phpcodesniffer

Line indented incorrectly; expected at least 4 spaces, found 2
Open

  echo "<h3><a href='./logout.php'>Logout</a></h3>";
Severity: Minor
Found in login.php by phpcodesniffer

Opening brace should be on a new line
Open

function show_active() {
Severity: Minor
Found in login.php by phpcodesniffer

There are no issues that match your filters.

Category
Status