APO-Epsilon/apo-website

View on GitHub
r8conf2016/register_process2.php

Summary

Maintainability
A
0 mins
Test Coverage

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

        $T_shirt_size == NULL || $phone1 == NULL || $phone2 == NULL || $phone3 == NULL ||)

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

    if ($firstname == NULL || $lastname == NULL || $email == NULL || $password == NULL || 

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

    if ($firstname == NULL || $lastname == NULL || $email == NULL || $password == NULL || 

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

        $T_shirt_size == NULL || $phone1 == NULL || $phone2 == NULL || $phone3 == NULL ||)

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

    if ($firstname == NULL || $lastname == NULL || $email == NULL || $password == NULL || 

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

        $T_shirt_size == NULL || $phone1 == NULL || $phone2 == NULL || $phone3 == NULL ||)

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

    if ($firstname == NULL || $lastname == NULL || $email == NULL || $password == NULL || 

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

        $T_shirt_size == NULL || $phone1 == NULL || $phone2 == NULL || $phone3 == NULL ||)

Line exceeds 120 characters; contains 329 characters
Open

    die('There has an been error with your registration. This may be because the email address you supplied is already in use, or there may be other technical problems. If the error persists, please contact the webmaster at <a href="mailto:apo.epsilon.webmaster@gmail.com">apo.epsilon.webmaster@gmail.com.</a>' . mysqli_error());

Line exceeds 120 characters; contains 122 characters
Open

      echo '<div class="entry"><strong>Not all of the required fields were filled out.  Please try again.</strong></div>';

Line exceeds 120 characters; contains 143 characters
Open

$subject = "(" . $resultcount['COUNT(*)'] . ") " . $firstname . " " . $lastname . " has registered for the APO Epsilon Region VIII Conference";

Line exceeds 120 characters; contains 145 characters
Open

        $query2 = $db->query($insert) or die('<br><div class="entry"><strong>Your username is already taken.  Please try again.</strong></div>');

Spaces must be used to indent lines; tabs are not allowed
Open

        $T_shirt_size == NULL || $phone1 == NULL || $phone2 == NULL || $phone3 == NULL ||)

Space before opening parenthesis of function call prohibited
Open

require_once ('../mysql_access.php');

Line indented incorrectly; expected 0 spaces, found 4
Open

    }

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

    die('There has an been error with your registration. This may be because the email address you supplied is already in use, or there may be other technical problems. If the error persists, please contact the webmaster at <a href="mailto:apo.epsilon.webmaster@gmail.com">apo.epsilon.webmaster@gmail.com.</a>' . mysqli_error());

Space before opening parenthesis of function call prohibited
Open

require_once ('../PasswordHash.php');

Line indented incorrectly; expected 4 spaces, found 0
Open

if (!$result) {

Line indented incorrectly; expected 4 spaces, found 0
Open

}

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

$result = $db->query($insert);

Space before opening parenthesis of function call prohibited
Open

require_once ('session.php');

Whitespace found at end of line
Open

    if ($firstname == NULL || $lastname == NULL || $email == NULL || $password == NULL || 

Expected 1 space after closing parenthesis; found 5
Open

        $T_shirt_size == NULL || $phone1 == NULL || $phone2 == NULL || $phone3 == NULL ||)

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

echo <<<END

Line indented incorrectly; expected 0 spaces, found 4
Open

    if ($firstname == NULL || $lastname == NULL || $email == NULL || $password == NULL || 

Line indented incorrectly; expected 0 spaces, found 4
Open

    } else {

There are no issues that match your filters.

Category
Status