APO-Epsilon/apo-website

View on GitHub
exec.php

Summary

Maintainability
A
0 mins
Test Coverage

Line exceeds 120 characters; contains 162 characters
Open

    echo ("</ul><div class=\"small-12 columns\"><p class=\"text-center\"><a href=\"mailto:" . $position_email . "\">" . $position_email . "</a></p></div></div>");
Severity: Minor
Found in exec.php by phpcodesniffer

Line exceeds 120 characters; contains 146 characters
Open

      echo "<img src=\"" . getPhotoLink($name_query['id']) . "\" width=\"125\" style=\"display: block; margin-left: auto; margin-right: auto;\">";
Severity: Minor
Found in exec.php by phpcodesniffer

Line exceeds 120 characters; contains 166 characters
Open

    echo "<li><div class=\"row\"><div class=\"small-12 columns\"><h1 class=\"text-center\">$current_position</h1></div><ul class=\"small-block-grid-3 text-center\">";
Severity: Minor
Found in exec.php by phpcodesniffer

Expected 1 space after closing parenthesis; found 0
Open

  if(mysqli_num_rows($result2) == 0){
Severity: Minor
Found in exec.php by phpcodesniffer

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

  $sql2 = "SELECT id, firstname, lastname FROM contact_information WHERE position='$current_position';";
Severity: Minor
Found in exec.php by phpcodesniffer

Expected 1 space after closing parenthesis; found 0
Open

while($position_query = mysqli_fetch_array($result)){
Severity: Minor
Found in exec.php by phpcodesniffer

Expected 1 space after ELSE keyword; 0 found
Open

  }else{
Severity: Minor
Found in exec.php by phpcodesniffer

Space before opening parenthesis of function call prohibited
Open

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

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

  $current_position = $position_query['position'];
Severity: Minor
Found in exec.php by phpcodesniffer

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

  $result2 = $db->query($sql2);
Severity: Minor
Found in exec.php by phpcodesniffer

Space before opening parenthesis of function call prohibited
Open

require_once ('get_photo.php');
Severity: Minor
Found in exec.php by phpcodesniffer

Expected 1 space after WHILE keyword; 0 found
Open

while($position_query = mysqli_fetch_array($result)){
Severity: Minor
Found in exec.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  }else{
Severity: Minor
Found in exec.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  if(mysqli_num_rows($result2) == 0){
Severity: Minor
Found in exec.php by phpcodesniffer

Space before opening parenthesis of function call prohibited
Open

require_once ('mysql_access.php');
Severity: Minor
Found in exec.php by phpcodesniffer

Expected 1 space after WHILE keyword; 0 found
Open

    while($name_query = mysqli_fetch_array($result2)){
Severity: Minor
Found in exec.php by phpcodesniffer

Expected 1 space after closing parenthesis; found 0
Open

    while($name_query = mysqli_fetch_array($result2)){
Severity: Minor
Found in exec.php by phpcodesniffer

Line indented incorrectly; expected at least 12 spaces, found 6
Open

      echo "<img src=\"" . getPhotoLink($name_query['id']) . "\" width=\"125\" style=\"display: block; margin-left: auto; margin-right: auto;\">";
Severity: Minor
Found in exec.php by phpcodesniffer

Expected 1 space after IF keyword; 0 found
Open

  if(mysqli_num_rows($result2) == 0){
Severity: Minor
Found in exec.php by phpcodesniffer

Line indented incorrectly; expected at least 12 spaces, found 6
Open

      echo "<h4 class=\"text-center\">" . $firstname . "<br>" . $lastname . "</h4></div></li>";
Severity: Minor
Found in exec.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

    while($name_query = mysqli_fetch_array($result2)){
Severity: Minor
Found in exec.php by phpcodesniffer

Line indented incorrectly; expected at least 12 spaces, found 6
Open

      echo "<li style=\"float: none; display: inline-block;\"><div class=\"small-12 columns\">";
Severity: Minor
Found in exec.php by phpcodesniffer

Line indented incorrectly; expected at least 12 spaces, found 6
Open

      $lastname = $name_query['lastname'];
Severity: Minor
Found in exec.php by phpcodesniffer

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

    $position_email = $position_query['position_email'];
Severity: Minor
Found in exec.php by phpcodesniffer

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

    echo "</li>";
Severity: Minor
Found in exec.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

    }
Severity: Minor
Found in exec.php by phpcodesniffer

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

    echo ("</ul><div class=\"small-12 columns\"><p class=\"text-center\"><a href=\"mailto:" . $position_email . "\">" . $position_email . "</a></p></div></div>");
Severity: Minor
Found in exec.php by phpcodesniffer

Expected 1 space after closing brace; 0 found
Open

  }else{
Severity: Minor
Found in exec.php by phpcodesniffer

Line indented incorrectly; expected at least 12 spaces, found 6
Open

      $firstname = $name_query['firstname'];
Severity: Minor
Found in exec.php by phpcodesniffer

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

    echo "<li><div class=\"row\"><div class=\"small-12 columns\"><h1 class=\"text-center\">$current_position</h1></div><ul class=\"small-block-grid-3 text-center\">";
Severity: Minor
Found in exec.php by phpcodesniffer

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

    ;
Severity: Minor
Found in exec.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  }
Severity: Minor
Found in exec.php by phpcodesniffer

There are no issues that match your filters.

Category
Status