APO-Epsilon/apo-website

View on GitHub
check_requirements.php

Summary

Maintainability
D
3 days
Test Coverage

show_active accesses the super-global variable $_GET.
Open

function show_active() {
    include('mysql_access.php');
    
    //$response=$db->query("SELECT event_name,L_val,F_val,repeatable FROM events_listing WHERE event_type='Point'");
    //$count = 0;
Severity: Minor
Found in check_requirements.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

display_event_table accesses the super-global variable $_SESSION.
Open

function display_event_table($rtype)
{
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];
    //get events for the user
Severity: Minor
Found in check_requirements.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_GET.
Open

function show_active() {
    include('mysql_access.php');
    
    //$response=$db->query("SELECT event_name,L_val,F_val,repeatable FROM events_listing WHERE event_type='Point'");
    //$count = 0;
Severity: Minor
Found in check_requirements.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_SESSION.
Open

function show_active() {
    include('mysql_access.php');
    
    //$response=$db->query("SELECT event_name,L_val,F_val,repeatable FROM events_listing WHERE event_type='Point'");
    //$count = 0;
Severity: Minor
Found in check_requirements.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

show_active accesses the super-global variable $_SESSION.
Open

function show_active() {
    include('mysql_access.php');
    
    //$response=$db->query("SELECT event_name,L_val,F_val,repeatable FROM events_listing WHERE event_type='Point'");
    //$count = 0;
Severity: Minor
Found in check_requirements.php by phpmd

Superglobals

Since: 0.2

Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.

Example

class Foo {
    public function bar() {
        $name = $_POST['foo'];
    }
}

Source

Function display_event_table has a Cognitive Complexity of 48 (exceeds 5 allowed). Consider refactoring.
Open

function display_event_table($rtype)
{
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];
    //get events for the user
Severity: Minor
Found in check_requirements.php - About 7 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Method display_event_table has 109 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function display_event_table($rtype)
{
    include('mysql_access.php');
    $user_id = $_SESSION['sessionID'];
    //get events for the user
Severity: Major
Found in check_requirements.php - About 4 hrs to fix

    Method list_stats has 97 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function list_stats($hours_id, $semester) {
      include ('mysql_access.php');
      include('requirements.php');
      // Total Hours
      $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
    Severity: Major
    Found in check_requirements.php - About 3 hrs to fix

      Function list_stats has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
      Open

      function list_stats($hours_id, $semester) {
        include ('mysql_access.php');
        include('requirements.php');
        // Total Hours
        $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
      Severity: Minor
      Found in check_requirements.php - About 3 hrs to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      File check_requirements.php has 292 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      require_once ('session.php');
      require_once ('mysql_access.php');
      ?>
      <!doctype html>
      Severity: Minor
      Found in check_requirements.php - About 3 hrs to fix

        Method show_active has 45 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function show_active() {
            include('mysql_access.php');
            
            //$response=$db->query("SELECT event_name,L_val,F_val,repeatable FROM events_listing WHERE event_type='Point'");
            //$count = 0;
        Severity: Minor
        Found in check_requirements.php - About 1 hr to fix

          Function show_active has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
          Open

          function show_active() {
              include('mysql_access.php');
              
              //$response=$db->query("SELECT event_name,L_val,F_val,repeatable FROM events_listing WHERE event_type='Point'");
              //$count = 0;
          Severity: Minor
          Found in check_requirements.php - About 1 hr to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          The function list_stats() has an NPath complexity of 6561. The configured NPath complexity threshold is 200.
          Open

          function list_stats($hours_id, $semester) {
            include ('mysql_access.php');
            include('requirements.php');
            // Total Hours
            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpmd

          NPathComplexity

          Since: 0.1

          The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

          Example

          class Foo {
              function bar() {
                  // lots of complicated code
              }
          }

          Source https://phpmd.org/rules/codesize.html#npathcomplexity

          The function list_stats() has 107 lines of code. Current threshold is set to 100. Avoid really long methods.
          Open

          function list_stats($hours_id, $semester) {
            include ('mysql_access.php');
            include('requirements.php');
            // Total Hours
            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpmd

          The function display_event_table() has 121 lines of code. Current threshold is set to 100. Avoid really long methods.
          Open

          function display_event_table($rtype)
          {
              include('mysql_access.php');
              $user_id = $_SESSION['sessionID'];
              //get events for the user
          Severity: Minor
          Found in check_requirements.php by phpmd

          The function list_stats() has a Cyclomatic Complexity of 25. The configured cyclomatic complexity threshold is 10.
          Open

          function list_stats($hours_id, $semester) {
            include ('mysql_access.php');
            include('requirements.php');
            // Total Hours
            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpmd

          CyclomaticComplexity

          Since: 0.1

          Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

          Example

          // Cyclomatic Complexity = 11
          class Foo {
          1   public function example() {
          2       if ($a == $b) {
          3           if ($a1 == $b1) {
                          fiddle();
          4           } elseif ($a2 == $b2) {
                          fiddle();
                      } else {
                          fiddle();
                      }
          5       } elseif ($c == $d) {
          6           while ($c == $d) {
                          fiddle();
                      }
          7        } elseif ($e == $f) {
          8           for ($n = 0; $n < $h; $n++) {
                          fiddle();
                      }
                  } else {
                      switch ($z) {
          9               case 1:
                              fiddle();
                              break;
          10              case 2:
                              fiddle();
                              break;
          11              case 3:
                              fiddle();
                              break;
                          default:
                              fiddle();
                              break;
                      }
                  }
              }
          }

          Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

          The function display_event_table() has a Cyclomatic Complexity of 14. The configured cyclomatic complexity threshold is 10.
          Open

          function display_event_table($rtype)
          {
              include('mysql_access.php');
              $user_id = $_SESSION['sessionID'];
              //get events for the user
          Severity: Minor
          Found in check_requirements.php by phpmd

          CyclomaticComplexity

          Since: 0.1

          Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

          Example

          // Cyclomatic Complexity = 11
          class Foo {
          1   public function example() {
          2       if ($a == $b) {
          3           if ($a1 == $b1) {
                          fiddle();
          4           } elseif ($a2 == $b2) {
                          fiddle();
                      } else {
                          fiddle();
                      }
          5       } elseif ($c == $d) {
          6           while ($c == $d) {
                          fiddle();
                      }
          7        } elseif ($e == $f) {
          8           for ($n = 0; $n < $h; $n++) {
                          fiddle();
                      }
                  } else {
                      switch ($z) {
          9               case 1:
                              fiddle();
                              break;
          10              case 2:
                              fiddle();
                              break;
          11              case 3:
                              fiddle();
                              break;
                          default:
                              fiddle();
                              break;
                      }
                  }
              }
          }

          Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

          Avoid using undefined variables such as '$db' which will lead to PHP notices.
          Open

            $results = $db->query($sql) or die("Error Calculating Hours. $db->error");
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$taskforce_events' which will lead to PHP notices.
          Open

              echo "<h3>Committee - $taskforce_events taskforce events</h3>";
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$db' which will lead to PHP notices.
          Open

            $results = $db->query($sql) or die("Error Calculating Hours. $db->error");
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$friendship_points' which will lead to PHP notices.
          Open

                  $points_needed = $friendship_points;
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$db' which will lead to PHP notices.
          Open

                      $eresponse=$db->query("SELECT event_name, " . $val . ",event_leader_id,event_type FROM events_listing WHERE event_id='" . $eid . "'");
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$db' which will lead to PHP notices.
          Open

            $results = $db->query($sql) or die("Error Calculating Hours");
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$fundraising_hours' which will lead to PHP notices.
          Open

              echo "<span>Fundraising Hours:</span> $hrs of $fundraising_hours<br/>";
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$db' which will lead to PHP notices.
          Open

              $response=$db->query($SQL);
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$required_hours' which will lead to PHP notices.
          Open

              echo "<span>Total Hours:</span> $hrs of $required_hours<br/>";
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$db' which will lead to PHP notices.
          Open

            $delete = $db->query($sql) or exit("There was an error, contact Webmaster");
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$db' which will lead to PHP notices.
          Open

            $results = $db->query($sql) or die("Error Calculating Hours");
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$db' which will lead to PHP notices.
          Open

            $results = $db->query($sql) or die("Error Calculating Hours");
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$db' which will lead to PHP notices.
          Open

            $results = $db->query($sql) or die("Error Calculating Hours");
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$db' which will lead to PHP notices.
          Open

                  $theresponse=$db->query("SELECT event_name,event_id FROM events_listing WHERE required=1");
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$db' which will lead to PHP notices.
          Open

            $results = $db->query($sql) or die("Error Calculating Hours");
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$db' which will lead to PHP notices.
          Open

            $results = $db->query($sql) or die("Error Calculating Hours");
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$leadership_points' which will lead to PHP notices.
          Open

                  $points_needed = $leadership_points;
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$db' which will lead to PHP notices.
          Open

              $zresponse=$db->query("SELECT event_id FROM events_signup WHERE user_id='" . $user_id . "'");
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$max_bought_hours' which will lead to PHP notices.
          Open

              echo "<span>Bought Hours:</span> $hrs of maximum $max_bought_hours<br/>";
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$db' which will lead to PHP notices.
          Open

                          $lresponse=$db->query("SELECT firstname,lastname,email FROM contact_information WHERE id='" . $eresult['event_leader_id'] . "'");
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$db' which will lead to PHP notices.
          Open

            $results = $db->query($sql) or die("Error Calculating Hours");
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$db' which will lead to PHP notices.
          Open

              $response=$db->query("SELECT event_id FROM events_signup WHERE user_id='" . $user_id . "'");
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$db' which will lead to PHP notices.
          Open

                  $taskq=$db->query("SELECT * FROM events_listing WHERE event_id='" . $zresult["event_id"] . "'");
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$db' which will lead to PHP notices.
          Open

                      $eq=$db->query("SELECT email FROM contact_information WHERE id=$elid");
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$db' which will lead to PHP notices.
          Open

                  $mresponse=$db->query("SELECT meeting,excuse FROM meetings_missed WHERE user_id=$user_id AND semester='$current_semester'");
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$excused_absences' which will lead to PHP notices.
          Open

                  echo "$excused of $excused_absences excused absences.<br>";
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$unexcused_absences' which will lead to PHP notices.
          Open

                  echo "$unexcused of $unexcused_absences unexcused absences.<br>";
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$apo_hours' which will lead to PHP notices.
          Open

              echo "<span>APO Hours:</span> $hrs of $apo_hours<br/>";
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          Avoid using undefined variables such as '$c_number' which will lead to PHP notices.
          Open

            echo "<br><p>You need $c_number of the four C categories :</p>";
          Severity: Minor
          Found in check_requirements.php by phpmd

          UndefinedVariable

          Since: 2.8.0

          Detects when a variable is used that has not been defined before.

          Example

          class Foo
          {
              private function bar()
              {
                  // $message is undefined
                  echo $message;
              }
          }

          Source https://phpmd.org/rules/cleancode.html#undefinedvariable

          The method display_event_table uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
          Open

                      {
                          $excused++;
                      }
          Severity: Minor
          Found in check_requirements.php by phpmd

          ElseExpression

          Since: 1.4.0

          An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

          Example

          class Foo
          {
              public function bar($flag)
              {
                  if ($flag) {
                      // one branch
                  } else {
                      // another branch
                  }
              }
          }

          Source https://phpmd.org/rules/cleancode.html#elseexpression

          The method display_event_table uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
          Open

              {
                  echo "Error : Incorrect Display Type";
              }
          Severity: Minor
          Found in check_requirements.php by phpmd

          ElseExpression

          Since: 1.4.0

          An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

          Example

          class Foo
          {
              public function bar($flag)
              {
                  if ($flag) {
                      // one branch
                  } else {
                      // another branch
                  }
              }
          }

          Source https://phpmd.org/rules/cleancode.html#elseexpression

          The method show_active uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
          Open

              {
                  echo "Sorry, this page only handles Active requirements at the moment.";
              }
          Severity: Minor
          Found in check_requirements.php by phpmd

          ElseExpression

          Since: 1.4.0

          An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

          Example

          class Foo
          {
              public function bar($flag)
              {
                  if ($flag) {
                      // one branch
                  } else {
                      // another branch
                  }
              }
          }

          Source https://phpmd.org/rules/cleancode.html#elseexpression

          The method display_event_table uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
          Open

                      {
                          echo 'x</td></tr>';
                          $unexcused++;
                      }
          Severity: Minor
          Found in check_requirements.php by phpmd

          ElseExpression

          Since: 1.4.0

          An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

          Example

          class Foo
          {
              public function bar($flag)
              {
                  if ($flag) {
                      // one branch
                  } else {
                      // another branch
                  }
              }
          }

          Source https://phpmd.org/rules/cleancode.html#elseexpression

          The function delete_event() contains an exit expression.
          Open

            $delete = $db->query($sql) or exit("There was an error, contact Webmaster");
          Severity: Minor
          Found in check_requirements.php by phpmd

          ExitExpression

          Since: 0.2

          An exit-expression within regular code is untestable and therefore it should be avoided. Consider to move the exit-expression into some kind of startup script where an error/exception code is returned to the calling environment.

          Example

          class Foo {
              public function bar($param)  {
                  if ($param === 42) {
                      exit(23);
                  }
              }
          }

          Source https://phpmd.org/rules/design.html#exitexpression

          The function list_stats() contains an exit expression.
          Open

            $results = $db->query($sql) or die("Error Calculating Hours");
          Severity: Minor
          Found in check_requirements.php by phpmd

          ExitExpression

          Since: 0.2

          An exit-expression within regular code is untestable and therefore it should be avoided. Consider to move the exit-expression into some kind of startup script where an error/exception code is returned to the calling environment.

          Example

          class Foo {
              public function bar($param)  {
                  if ($param === 42) {
                      exit(23);
                  }
              }
          }

          Source https://phpmd.org/rules/design.html#exitexpression

          The function list_stats() contains an exit expression.
          Open

            $results = $db->query($sql) or die("Error Calculating Hours");
          Severity: Minor
          Found in check_requirements.php by phpmd

          ExitExpression

          Since: 0.2

          An exit-expression within regular code is untestable and therefore it should be avoided. Consider to move the exit-expression into some kind of startup script where an error/exception code is returned to the calling environment.

          Example

          class Foo {
              public function bar($param)  {
                  if ($param === 42) {
                      exit(23);
                  }
              }
          }

          Source https://phpmd.org/rules/design.html#exitexpression

          The function list_stats() contains an exit expression.
          Open

            $results = $db->query($sql) or die("Error Calculating Hours");
          Severity: Minor
          Found in check_requirements.php by phpmd

          ExitExpression

          Since: 0.2

          An exit-expression within regular code is untestable and therefore it should be avoided. Consider to move the exit-expression into some kind of startup script where an error/exception code is returned to the calling environment.

          Example

          class Foo {
              public function bar($param)  {
                  if ($param === 42) {
                      exit(23);
                  }
              }
          }

          Source https://phpmd.org/rules/design.html#exitexpression

          Avoid unused local variables such as '$delete'.
          Open

            $delete = $db->query($sql) or exit("There was an error, contact Webmaster");
          Severity: Minor
          Found in check_requirements.php by phpmd

          UnusedLocalVariable

          Since: 0.2

          Detects when a local variable is declared and/or assigned, but not used.

          Example

          class Foo {
              public function doSomething()
              {
                  $i = 5; // Unused
              }
          }

          Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

          Avoid unused local variables such as '$db'.
          Open

            $delete = $db->query($sql) or exit("There was an error, contact Webmaster");
          Severity: Minor
          Found in check_requirements.php by phpmd

          UnusedLocalVariable

          Since: 0.2

          Detects when a local variable is declared and/or assigned, but not used.

          Example

          class Foo {
              public function doSomething()
              {
                  $i = 5; // Unused
              }
          }

          Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

          Avoid unused local variables such as '$taskforce_events'.
          Open

              echo "<h3>Committee - $taskforce_events taskforce events</h3>";
          Severity: Minor
          Found in check_requirements.php by phpmd

          UnusedLocalVariable

          Since: 0.2

          Detects when a local variable is declared and/or assigned, but not used.

          Example

          class Foo {
              public function doSomething()
              {
                  $i = 5; // Unused
              }
          }

          Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

          The function list_stats() contains an exit expression.
          Open

            $results = $db->query($sql) or die("Error Calculating Hours. $db->error");
          Severity: Minor
          Found in check_requirements.php by phpmd

          ExitExpression

          Since: 0.2

          An exit-expression within regular code is untestable and therefore it should be avoided. Consider to move the exit-expression into some kind of startup script where an error/exception code is returned to the calling environment.

          Example

          class Foo {
              public function bar($param)  {
                  if ($param === 42) {
                      exit(23);
                  }
              }
          }

          Source https://phpmd.org/rules/design.html#exitexpression

          Avoid unused local variables such as '$max_bought_hours'.
          Open

              echo "<span>Bought Hours:</span> $hrs of maximum $max_bought_hours<br/>";
          Severity: Minor
          Found in check_requirements.php by phpmd

          UnusedLocalVariable

          Since: 0.2

          Detects when a local variable is declared and/or assigned, but not used.

          Example

          class Foo {
              public function doSomething()
              {
                  $i = 5; // Unused
              }
          }

          Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

          Avoid unused local variables such as '$c_number'.
          Open

            echo "<br><p>You need $c_number of the four C categories :</p>";
          Severity: Minor
          Found in check_requirements.php by phpmd

          UnusedLocalVariable

          Since: 0.2

          Detects when a local variable is declared and/or assigned, but not used.

          Example

          class Foo {
              public function doSomething()
              {
                  $i = 5; // Unused
              }
          }

          Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

          The function list_stats() contains an exit expression.
          Open

            $results = $db->query($sql) or die("Error Calculating Hours");
          Severity: Minor
          Found in check_requirements.php by phpmd

          ExitExpression

          Since: 0.2

          An exit-expression within regular code is untestable and therefore it should be avoided. Consider to move the exit-expression into some kind of startup script where an error/exception code is returned to the calling environment.

          Example

          class Foo {
              public function bar($param)  {
                  if ($param === 42) {
                      exit(23);
                  }
              }
          }

          Source https://phpmd.org/rules/design.html#exitexpression

          Avoid unused local variables such as '$excused_absences'.
          Open

                  echo "$excused of $excused_absences excused absences.<br>";
          Severity: Minor
          Found in check_requirements.php by phpmd

          UnusedLocalVariable

          Since: 0.2

          Detects when a local variable is declared and/or assigned, but not used.

          Example

          class Foo {
              public function doSomething()
              {
                  $i = 5; // Unused
              }
          }

          Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

          The function list_stats() contains an exit expression.
          Open

            $results = $db->query($sql) or die("Error Calculating Hours");
          Severity: Minor
          Found in check_requirements.php by phpmd

          ExitExpression

          Since: 0.2

          An exit-expression within regular code is untestable and therefore it should be avoided. Consider to move the exit-expression into some kind of startup script where an error/exception code is returned to the calling environment.

          Example

          class Foo {
              public function bar($param)  {
                  if ($param === 42) {
                      exit(23);
                  }
              }
          }

          Source https://phpmd.org/rules/design.html#exitexpression

          Avoid unused local variables such as '$unexcused_absences'.
          Open

                  echo "$unexcused of $unexcused_absences unexcused absences.<br>";
          Severity: Minor
          Found in check_requirements.php by phpmd

          UnusedLocalVariable

          Since: 0.2

          Detects when a local variable is declared and/or assigned, but not used.

          Example

          class Foo {
              public function doSomething()
              {
                  $i = 5; // Unused
              }
          }

          Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

          Avoid unused local variables such as '$friendship_points'.
          Open

                  $points_needed = $friendship_points;
          Severity: Minor
          Found in check_requirements.php by phpmd

          UnusedLocalVariable

          Since: 0.2

          Detects when a local variable is declared and/or assigned, but not used.

          Example

          class Foo {
              public function doSomething()
              {
                  $i = 5; // Unused
              }
          }

          Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

          Avoid unused local variables such as '$required_hours'.
          Open

              echo "<span>Total Hours:</span> $hrs of $required_hours<br/>";
          Severity: Minor
          Found in check_requirements.php by phpmd

          UnusedLocalVariable

          Since: 0.2

          Detects when a local variable is declared and/or assigned, but not used.

          Example

          class Foo {
              public function doSomething()
              {
                  $i = 5; // Unused
              }
          }

          Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

          Avoid unused local variables such as '$apo_hours'.
          Open

              echo "<span>APO Hours:</span> $hrs of $apo_hours<br/>";
          Severity: Minor
          Found in check_requirements.php by phpmd

          UnusedLocalVariable

          Since: 0.2

          Detects when a local variable is declared and/or assigned, but not used.

          Example

          class Foo {
              public function doSomething()
              {
                  $i = 5; // Unused
              }
          }

          Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

          Avoid unused local variables such as '$fundraising_hours'.
          Open

              echo "<span>Fundraising Hours:</span> $hrs of $fundraising_hours<br/>";
          Severity: Minor
          Found in check_requirements.php by phpmd

          UnusedLocalVariable

          Since: 0.2

          Detects when a local variable is declared and/or assigned, but not used.

          Example

          class Foo {
              public function doSomething()
              {
                  $i = 5; // Unused
              }
          }

          Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

          The function list_stats() contains an exit expression.
          Open

            $results = $db->query($sql) or die("Error Calculating Hours");
          Severity: Minor
          Found in check_requirements.php by phpmd

          ExitExpression

          Since: 0.2

          An exit-expression within regular code is untestable and therefore it should be avoided. Consider to move the exit-expression into some kind of startup script where an error/exception code is returned to the calling environment.

          Example

          class Foo {
              public function bar($param)  {
                  if ($param === 42) {
                      exit(23);
                  }
              }
          }

          Source https://phpmd.org/rules/design.html#exitexpression

          Avoid unused local variables such as '$leadership_points'.
          Open

                  $points_needed = $leadership_points;
          Severity: Minor
          Found in check_requirements.php by phpmd

          UnusedLocalVariable

          Since: 0.2

          Detects when a local variable is declared and/or assigned, but not used.

          Example

          class Foo {
              public function doSomething()
              {
                  $i = 5; // Unused
              }
          }

          Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

          The function list_stats() contains an exit expression.
          Open

            $results = $db->query($sql) or die("Error Calculating Hours");
          Severity: Minor
          Found in check_requirements.php by phpmd

          ExitExpression

          Since: 0.2

          An exit-expression within regular code is untestable and therefore it should be avoided. Consider to move the exit-expression into some kind of startup script where an error/exception code is returned to the calling environment.

          Example

          class Foo {
              public function bar($param)  {
                  if ($param === 42) {
                      exit(23);
                  }
              }
          }

          Source https://phpmd.org/rules/design.html#exitexpression

          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 28 and the first side effect is on line 2.
          Open

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

          The parameter $hours_id is not named in camelCase.
          Open

          function list_stats($hours_id, $semester) {
            include ('mysql_access.php');
            include('requirements.php');
            // Total Hours
            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseParameterName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name parameters.

          Example

          class ClassName {
              public function doSomething($user_name) {
              }
          }

          Source

          Avoid variables with short names like $i. Configured minimum length is 3.
          Open

            while($i = mysqli_fetch_array($results)) {
          Severity: Minor
          Found in check_requirements.php by phpmd

          ShortVariable

          Since: 0.2

          Detects when a field, local, or parameter has a very short name.

          Example

          class Something {
              private $q = 15; // VIOLATION - Field
              public static function main( array $as ) { // VIOLATION - Formal
                  $r = 20 + $this->q; // VIOLATION - Local
                  for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                      $r += $this->q;
                  }
              }
          }

          Source https://phpmd.org/rules/naming.html#shortvariable

          The parameter $user_id is not named in camelCase.
          Open

          function delete_event($eid, $user_id) {
            include ('mysql_access.php');
            $sql = "DELETE FROM `events_signup` WHERE `event_id` = '$eid' AND `user_id` = '$user_id' LIMIT 1";
            $delete = $db->query($sql) or exit("There was an error, contact Webmaster");
          }
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseParameterName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name parameters.

          Example

          class ClassName {
              public function doSomething($user_name) {
              }
          }

          Source

          Avoid variables with short names like $ex. Configured minimum length is 3.
          Open

                      $ex = $meetingevent['excuse'];
          Severity: Minor
          Found in check_requirements.php by phpmd

          ShortVariable

          Since: 0.2

          Detects when a field, local, or parameter has a very short name.

          Example

          class Something {
              private $q = 15; // VIOLATION - Field
              public static function main( array $as ) { // VIOLATION - Formal
                  $r = 20 + $this->q; // VIOLATION - Local
                  for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                      $r += $this->q;
                  }
              }
          }

          Source https://phpmd.org/rules/naming.html#shortvariable

          Avoid variables with short names like $er. Configured minimum length is 3.
          Open

                      $er=mysqli_fetch_array($eq);
          Severity: Minor
          Found in check_requirements.php by phpmd

          ShortVariable

          Since: 0.2

          Detects when a field, local, or parameter has a very short name.

          Example

          class Something {
              private $q = 15; // VIOLATION - Field
              public static function main( array $as ) { // VIOLATION - Formal
                  $r = 20 + $this->q; // VIOLATION - Local
                  for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                      $r += $this->q;
                  }
              }
          }

          Source https://phpmd.org/rules/naming.html#shortvariable

          Avoid variables with short names like $eq. Configured minimum length is 3.
          Open

                      $eq=$db->query("SELECT email FROM contact_information WHERE id=$elid");
          Severity: Minor
          Found in check_requirements.php by phpmd

          ShortVariable

          Since: 0.2

          Detects when a field, local, or parameter has a very short name.

          Example

          class Something {
              private $q = 15; // VIOLATION - Field
              public static function main( array $as ) { // VIOLATION - Formal
                  $r = 20 + $this->q; // VIOLATION - Local
                  for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                      $r += $this->q;
                  }
              }
          }

          Source https://phpmd.org/rules/naming.html#shortvariable

          Avoid variables with short names like $mm. Configured minimum length is 3.
          Open

                  $mm = 0;
          Severity: Minor
          Found in check_requirements.php by phpmd

          ShortVariable

          Since: 0.2

          Detects when a field, local, or parameter has a very short name.

          Example

          class Something {
              private $q = 15; // VIOLATION - Field
              public static function main( array $as ) { // VIOLATION - Formal
                  $r = 20 + $this->q; // VIOLATION - Local
                  for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                      $r += $this->q;
                  }
              }
          }

          Source https://phpmd.org/rules/naming.html#shortvariable

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

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

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

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

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

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

          Spaces must be used for alignment; tabs are not allowed
          Open

                  echo "<tr><td></td><td>Total</td><td>" . $points . "</td></tr>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                          echo "<td>" . $lresult['email'] . "</td>";        
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                          echo "<td>" . $eresult['event_type'] . "</td>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  echo "<h3>Service - 25 Hours</h3>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                          echo "<td><sup><a href='check_requirements.php?delete=$eid'>Delete?</a></sup></td></tr>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  global $current_semester;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  list_stats($user_id,$current_semester);
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              else if ($rtype == "Service")
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  echo "More Service information and add hours <a href='service_hours.php'>HERE!</a><br><br>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  echo "</table>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                          $points = $points + $eresult[$val];
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  echo "<p>You have " . $points . " of 4 points.</p>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                          echo 'attended</td></tr>'; 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  echo "<table><tr><th>missed meeting</th><th>excuse</th></tr>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  while($meetingevent=mysqli_fetch_array($mresponse))
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              echo "<h3>Committee - $taskforce_events taskforce events</h3>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      $eq=$db->query("SELECT email FROM contact_information WHERE id=$elid");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 0 spaces before closing bracket; 1 found
          Open

                      else if ( is_user_excused($user_id,$reqevent['event_id']) )
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                          $excused++;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      if ($ex == 'none')
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              //$response=$db->query("SELECT event_name,L_val,F_val,repeatable FROM events_listing WHERE event_type='Point'");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              //echo "you have not met all the requirements :(<br>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Blank line found at start of control structure
          Open

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  echo "<table><tr><th>Event</th><th>Attended?</th></tr>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                          $unexcused++;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  global $current_semester;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  echo "$excused of $excused_absences excused absences.<br>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              //echo "you have x unexcused absences left of y<br>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      $ename = $taskr['event_name'];
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              else if ($rtype == "Required")
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  $unexcused = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  $theresponse=$db->query("SELECT event_name,event_id FROM events_listing WHERE required=1");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      $mtg = $meetingevent['meeting'];
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  echo "</table>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              $SQL = "SELECT lastname,firstname,status FROM contact_information WHERE id=" . $user_id;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      else
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Blank line found at start of control structure
          Open

              if ($result['status']=='Active' ||$result['status']=='Appointed' ||$result['status']=='Elected') {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Blank line found at end of control structure
          Open

          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  $taskr=mysqli_fetch_array($taskq);
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      echo "<tr><td>" . $reqevent['event_name'] . '</td><td>';
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      echo "<tr><td>$mtg</td><td>$ex</td></tr>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              include('mysql_access.php');
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              $zresponse=$db->query("SELECT event_id FROM events_signup WHERE user_id='" . $user_id . "'");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  $taskq=$db->query("SELECT * FROM events_listing WHERE event_id='" . $zresult["event_id"] . "'");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      $elid = $taskr['event_leader_id'];
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  include('retrieve_event.php');
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      //check if attended
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      //check if excused
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  $mm = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              else
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              echo "<h1>Requirements for " . $result['firstname'] . " " . $result['lastname'] . "</h1>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  $user_id = $_SESSION['sessionID'];
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              $c_events = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                          echo 'x</td></tr>';
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  echo "$unexcused of $unexcused_absences unexcused absences.<br>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              //keep track of progress?
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              while($zresult=mysqli_fetch_array($zresponse))
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      $er=mysqli_fetch_array($eq);
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  while($reqevent=mysqli_fetch_array($theresponse))
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  include('requirements.php');
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      $mm++;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                          $unexcused++;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              echo "This is a brand new page. If you have any issues or thoughts, please contact Adam Callanan at apo.epsilon.webmaster@gmail.com";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  $eid = $_GET['delete'];
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  $excused = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              //$count = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              $response=$db->query($SQL);
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              if (isset($_GET['delete'])) {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                          echo 'excused</td></tr>';
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              $user_id = $_SESSION['sessionID'];
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              if ($result['status']=='Active' ||$result['status']=='Appointed' ||$result['status']=='Elected') {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  delete_event($eid, $user_id);
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 0 spaces before closing bracket; 1 found
          Open

                      if ( did_user_attend($user_id,$reqevent['event_id']) )
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  $mresponse=$db->query("SELECT meeting,excuse FROM meetings_missed WHERE user_id=$user_id AND semester='$current_semester'");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      else if ( is_user_excused($user_id,$reqevent['event_id']) )
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      else
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  echo "</table>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              //echo "you have x excused absences left of y<br>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  if($taskr['event_type'] == 'Taskforce')
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              display_event_table("Friendship");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  echo "<h3>Required Events</h3>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      //else unexcused
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      $ex = $meetingevent['excuse'];
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  echo "Meetings Missed : $mm<br><br>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  echo "Error : Incorrect Display Type";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              $result=mysqli_fetch_array($response);
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              include('requirements.php');
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              echo "<table><tr><th>#</th><th>Event Name</th><th>Event Leader</th></tr>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              display_event_table("Leadership");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      if ( did_user_attend($user_id,$reqevent['event_id']) )
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                          $excused++;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              echo "<h2>ID# " . $user_id . " Status: " . $result['status'] . "</h2>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      $leader_email = $er['email'];
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      $c_events++;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                  echo "Sorry, this page only handles Active requirements at the moment.";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

                      echo "<tr><td>$c_events</td><td>$ename</td><td>$leader_email</td></tr>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              echo "<tr><td></td><td>Total</td><td>$c_events</td></tr></table>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              //add submit button and send to recsec ?
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              //echo "<br><br><input type=submit value='submit'>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              else
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              display_event_table("Service");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              display_event_table("Required");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Spaces must be used for alignment; tabs are not allowed
          Open

              echo "<p>You have $c_events of 3 events.</p>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

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

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

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              $hrs = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $hrs = round($i['sum_hours'], 2);
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $c_count++;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line exceeds 120 characters; contains 161 characters
          Open

            $sql = "SELECT SUM(hours) AS sum_hours FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `servicetype` = 'Campus'  AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              $hrs = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $hrs = round($i['sum_hours'], 2);
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              $hrs = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line exceeds 120 characters; contains 161 characters
          Open

            $sql = "SELECT SUM(hours) AS sum_hours FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `event` = 'Bought Hours'  AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $hrs = round($i['sum_hours'], 2);
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line exceeds 120 characters; contains 165 characters
          Open

            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `event` != 'Non-APO Hours'  AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line exceeds 120 characters; contains 156 characters
          Open

            $sql = "SELECT SUM(hours) AS sum_hours FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `fundraising` = '1'  AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line exceeds 120 characters; contains 133 characters
          Open

            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              $hrs = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              $hrs = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              $hrs = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $c_count++;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $points_needed = $leadership_points;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $val = "F_val";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                          echo "<td>" . $lresult['email'] . "</td>";        
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              if ($rtype == "Leadership" || $rtype == "Friendship")
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $hrs = round($i['sum_hours'], 2);
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                          echo "<td>" . $eresult['event_name'] . "</td>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              else if ($rtype == "Friendship")
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                      $eresult=mysqli_fetch_array($eresponse);
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                          echo "<td>" . $lresult['firstname'] . " " . $lresult['lastname'] . "</td>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $hrs = $i['sum_hours'];
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $hrs = $i['sum_hours'];
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line exceeds 120 characters; contains 162 characters
          Open

            $sql = "SELECT SUM(hours) AS sum_hours FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `servicetype` = 'Chapter'  AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              $hrs = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $hrs = $i['sum_hours'];
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              $response=$db->query("SELECT event_id FROM events_signup WHERE user_id='" . $user_id . "'");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              include('requirements.php');
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line exceeds 120 characters; contains 160 characters
          Open

                  echo "<tr><td>#</td><td>Event Name</td><td>" . $rtype . " Points</td><td>Event Leader</td><td>Leader Email</td><td>Event Type</td><td>Delete</td></tr>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $c_count++;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              //get events for the user
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                          echo "<td>" . $eresult[$val] . "</td>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                          $count++;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line exceeds 120 characters; contains 145 characters
          Open

                          $lresponse=$db->query("SELECT firstname,lastname,email FROM contact_information WHERE id='" . $eresult['event_leader_id'] . "'");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $hrs = round($i['sum_hours'], 2);
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  echo "<h3>" . $rtype . " - " . $points_needed . " Points</h3>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              $hrs = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  echo "<table>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line exceeds 120 characters; contains 146 characters
          Open

                      $eresponse=$db->query("SELECT event_name, " . $val . ",event_leader_id,event_type FROM events_listing WHERE event_id='" . $eid . "'");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                      if ($eresult[$val] > 0)
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                          $lresult=mysqli_fetch_array($lresponse);
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $c_count++;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line exceeds 120 characters; contains 162 characters
          Open

            $sql = "SELECT SUM(hours) AS sum_hours FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `servicetype` = 'Country'  AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  echo "<tr><td>#</td><td>Event Name</td><td>" . $rtype . " Points</td><td>Event Leader</td><td>Leader Email</td><td>Event Type</td><td>Delete</td></tr>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  { 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  //pull info for that event_id
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                      {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $val = "L_val";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                          //get leader name & email
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  while($result=mysqli_fetch_array($response))
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                      $eresponse=$db->query("SELECT event_name, " . $val . ",event_leader_id,event_type FROM events_listing WHERE event_id='" . $eid . "'");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                          $lresponse=$db->query("SELECT firstname,lastname,email FROM contact_information WHERE id='" . $eresult['event_leader_id'] . "'");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $points_needed = $friendship_points;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  echo "<a href='event_signup.php'>Add events here.</a><br>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $count = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $points = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                      $eid = $result['event_id'];
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line exceeds 120 characters; contains 164 characters
          Open

            $sql = "SELECT SUM(hours) AS sum_hours FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `servicetype` = 'Community'  AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              include('mysql_access.php');
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              $user_id = $_SESSION['sessionID'];
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              if ($rtype == "Leadership")
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                          echo "<tr><td>".$count . "</td>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line exceeds 120 characters; contains 137 characters
          Open

              echo "This is a brand new page. If you have any issues or thoughts, please contact Adam Callanan at apo.epsilon.webmaster@gmail.com";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line exceeds 120 characters; contains 132 characters
          Open

                  $mresponse=$db->query("SELECT meeting,excuse FROM meetings_missed WHERE user_id=$user_id AND semester='$current_semester'");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $c_count++;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              echo "<span>Chapter Hours:</span> $hrs<br/>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $results = $db->query($sql) or die("Error Calculating Hours. $db->error");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after WHILE keyword; 0 found
          Open

            while($i = mysqli_fetch_array($results)) {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 4 spaces, found 2
          Open

            }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 4 spaces, found 2
          Open

            while($i = mysqli_fetch_array($results)) {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after WHILE keyword; 0 found
          Open

            while($i = mysqli_fetch_array($results)) {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 4 spaces, found 2
          Open

            }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $results->free();
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              $hrs = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing parenthesis; found 7
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Space before opening parenthesis of function call prohibited
          Open

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

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              $hrs = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $hrs = $i['sum_hours'];
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $hrs = round($i['sum_hours'], 2);
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 4 spaces, found 2
          Open

            }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $sql = "SELECT SUM(hours) AS sum_hours FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `servicetype` = 'Campus'  AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              $hrs = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Whitespace found at end of line
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 4 spaces, found 2
          Open

            }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $sql = "SELECT SUM(hours) AS sum_hours FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `event` = 'Bought Hours'  AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $results = $db->query($sql) or die("Error Calculating Hours");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 4 spaces, found 2
          Open

            }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 4 spaces, found 2
          Open

            while($i = mysqli_fetch_array($results)) {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            echo "<br><p>You need $c_number of the four C categories :</p>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $c_count = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing parenthesis; found 7
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            include ('mysql_access.php');
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing parenthesis; found 7
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              echo "<span>APO Hours:</span> $hrs of $apo_hours<br/>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $hrs = $i['sum_hours'];
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $results = $db->query($sql) or die("Error Calculating Hours");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Space before opening parenthesis of function call prohibited
          Open

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

          Space before opening parenthesis of function call prohibited
          Open

            include ('mysql_access.php');
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 4 spaces, found 2
          Open

            while($i = mysqli_fetch_array($results)) {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Whitespace found at end of line
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $sql = "SELECT SUM(hours) AS sum_hours FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `fundraising` = '1'  AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              $hrs = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              echo "<span>Total Hours:</span> $hrs of $required_hours<br/>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after WHILE keyword; 0 found
          Open

            while($i = mysqli_fetch_array($results)) {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $results->free();
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after WHILE keyword; 0 found
          Open

            while($i = mysqli_fetch_array($results)) {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $results = $db->query($sql) or die("Error Calculating Hours");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 4 spaces, found 2
          Open

            while($i = mysqli_fetch_array($results)) {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $results->free();
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 4 spaces, found 2
          Open

            while($i = mysqli_fetch_array($results)) {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $hrs = round($i['sum_hours'], 2);
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after WHILE keyword; 0 found
          Open

            while($i = mysqli_fetch_array($results)) {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              echo "<span>Bought Hours:</span> $hrs of maximum $max_bought_hours<br/>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $results->free();
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              $hrs = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $hrs = round($i['sum_hours'], 2);
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Opening brace should be on a new line
          Open

          function list_stats($hours_id, $semester) {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $results = $db->query($sql) or die("Error Calculating Hours");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              $hrs = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing parenthesis; found 7
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $sql = "SELECT SUM(hours) AS sum_hours FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `servicetype` = 'Chapter'  AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing parenthesis; found 7
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after WHILE keyword; 0 found
          Open

            while($i = mysqli_fetch_array($results)) {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            include('requirements.php');
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `event` != 'Non-APO Hours'  AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Whitespace found at end of line
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing parenthesis; found 7
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $hrs = round($i['sum_hours'], 2);
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              $hrs = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $results->free();
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              if ($rtype == "Leadership")
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing parenthesis; found 10
          Open

                  while($result=mysqli_fetch_array($response))
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $hrs = $i['sum_hours'];
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $val = "L_val";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing brace; newline found
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            include ('mysql_access.php');
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing brace; newline found
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $results = $db->query($sql) or die("Error Calculating Hours");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              echo "<span>Fundraising Hours:</span> $hrs of $fundraising_hours<br/>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $results->free();
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Whitespace found at end of line
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $results = $db->query($sql) or die("Error Calculating Hours");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 4 spaces, found 2
          Open

            while($i = mysqli_fetch_array($results)) {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Whitespace found at end of line
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing parenthesis; found 7
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Whitespace found at end of line
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $c_count++;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 4 spaces, found 2
          Open

            }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              include('requirements.php');
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Usage of ELSE IF is discouraged; use ELSEIF instead
          Open

              else if ($rtype == "Friendship")
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 4 spaces, found 2
          Open

            }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Whitespace found at end of line
          Open

                          echo "<td>" . $lresult['email'] . "</td>";        
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Opening brace should be on a new line
          Open

          function delete_event($eid, $user_id) {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Whitespace found at end of line
          Open

                  { 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Usage of ELSE IF is discouraged; use ELSEIF instead
          Open

              else if ($rtype == "Service")
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after WHILE keyword; 0 found
          Open

            while($i = mysqli_fetch_array($results)) {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after WHILE keyword; 0 found
          Open

            while($i = mysqli_fetch_array($results)) {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Whitespace found at end of line
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              echo "<span>Country Hours:</span> $hrs<br/>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Space before opening parenthesis of function call prohibited
          Open

            include ('mysql_access.php');
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $val = "F_val";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              echo "<span>Campus Hours:</span> $hrs<br/>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $sql = "SELECT SUM(hours) AS sum_hours FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `servicetype` = 'Community'  AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $results = $db->query($sql) or die("Error Calculating Hours");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $sql = "DELETE FROM `events_signup` WHERE `event_id` = '$eid' AND `user_id` = '$user_id' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $sql = "SELECT SUM(hours) AS sum_hours FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `servicetype` = 'Country'  AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              $hrs = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing parenthesis; found 7
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $points_needed = $leadership_points;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              else if ($rtype == "Friendship")
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing parenthesis; found 14
          Open

                      if ($eresult[$val] > 0)
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 4 spaces, found 2
          Open

            }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              echo "<span>Community Hours:</span> $hrs<br/>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $results->free();
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $c_count++;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing parenthesis; found 6
          Open

              if ($rtype == "Leadership")
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $points_needed = $friendship_points;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing parenthesis; found 14
          Open

                      else if ( is_user_excused($user_id,$reqevent['event_id']) )
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              echo "<h3>Committee - $taskforce_events taskforce events</h3>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Whitespace found at end of line
          Open

              if ($i['sum_hours'] > 0) 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 4 spaces, found 2
          Open

            while($i = mysqli_fetch_array($results)) {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            echo "<p>You have " . $c_count . " of the 3 C's.</p>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing parenthesis; found 6
          Open

              if ($rtype == "Leadership" || $rtype == "Friendship")
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          No space found after comma in function call
          Open

                  list_stats($user_id,$current_semester);
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing parenthesis; found 6
          Open

              else if ($rtype == "Required")
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              echo "<table><tr><th>#</th><th>Event Name</th><th>Event Leader</th></tr>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after IF keyword; 0 found
          Open

                  if($taskr['event_type'] == 'Taskforce')
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $results->free();
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing brace; newline found
          Open

                      }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                      $eq=$db->query("SELECT email FROM contact_information WHERE id=$elid");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 4 spaces, found 2
          Open

            while($i = mysqli_fetch_array($results)) {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

            $delete = $db->query($sql) or exit("There was an error, contact Webmaster");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $c_count++;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after WHILE keyword; 0 found
          Open

                  while($result=mysqli_fetch_array($response))
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $hrs = round($i['sum_hours'], 2);
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing parenthesis; found 6
          Open

              else if ($rtype == "Service")
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing parenthesis; found 6
          Open

              else if ($rtype == "Friendship")
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Usage of ELSE IF is discouraged; use ELSEIF instead
          Open

              else if ($rtype == "Required")
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing parenthesis; found 10
          Open

                  while($reqevent=mysqli_fetch_array($theresponse))
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 0 spaces after opening bracket; 1 found
          Open

                      if ( did_user_attend($user_id,$reqevent['event_id']) )
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  delete_event($eid, $user_id);
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                      $elid = $taskr['event_leader_id'];
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          No space found after comma in function call
          Open

                      if ( did_user_attend($user_id,$reqevent['event_id']) )
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing brace; newline found
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              $zresponse=$db->query("SELECT event_id FROM events_signup WHERE user_id='" . $user_id . "'");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $taskq=$db->query("SELECT * FROM events_listing WHERE event_id='" . $zresult["event_id"] . "'");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing brace; newline found
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Whitespace found at end of line
          Open

                          echo 'attended</td></tr>'; 
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after WHILE keyword; 0 found
          Open

                  while($meetingevent=mysqli_fetch_array($mresponse))
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $user_id = $_SESSION['sessionID'];
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Usage of ELSE IF is discouraged; use ELSEIF instead
          Open

                      else if ( is_user_excused($user_id,$reqevent['event_id']) )
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after ELSE keyword; newline found
          Open

                      else
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              while($zresult=mysqli_fetch_array($zresponse))
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after WHILE keyword; 0 found
          Open

                  while($reqevent=mysqli_fetch_array($theresponse))
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing parenthesis; found 14
          Open

                      if ( did_user_attend($user_id,$reqevent['event_id']) )
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after ELSE keyword; newline found
          Open

              else
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              if (isset($_GET['delete'])) {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              {
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $taskr=mysqli_fetch_array($taskq);
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                      $ename = $taskr['event_name'];
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing parenthesis; found 14
          Open

                      if ($ex == 'none')
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing brace; newline found
          Open

                      }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after ELSE keyword; newline found
          Open

                      else
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing parenthesis; found 6
          Open

              while($zresult=mysqli_fetch_array($zresponse))
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 0 spaces after opening bracket; 1 found
          Open

                      else if ( is_user_excused($user_id,$reqevent['event_id']) )
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              $c_events = 0;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          No space found after comma in function call
          Open

                      else if ( is_user_excused($user_id,$reqevent['event_id']) )
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing parenthesis; found 10
          Open

                  while($meetingevent=mysqli_fetch_array($mresponse))
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                      $c_events++;
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              display_event_table("Leadership");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after ELSE keyword; newline found
          Open

              else
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              include('requirements.php');
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                  $eid = $_GET['delete'];
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 12 spaces, found 8
          Open

                  if($taskr['event_type'] == 'Taskforce')
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                      $leader_email = $er['email'];
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              echo "<p>You have $c_events of 3 events.</p>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              display_event_table("Required");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing brace; newline found
          Open

                      }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Opening brace should be on a new line
          Open

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

          Expected 1 space after WHILE keyword; 0 found
          Open

              while($zresult=mysqli_fetch_array($zresponse))
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing parenthesis; found 10
          Open

                  if($taskr['event_type'] == 'Taskforce')
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                      $er=mysqli_fetch_array($eq);
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 12 spaces, found 8
          Open

                  }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              display_event_table("Service");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Expected 1 space after closing brace; newline found
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              echo "<tr><td></td><td>Total</td><td>$c_events</td></tr></table>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

              display_event_table("Friendship");
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          Line indented incorrectly; expected 8 spaces, found 4
          Open

              }
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

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

                      echo "<tr><td>$c_events</td><td>$ename</td><td>$leader_email</td></tr>";
          Severity: Minor
          Found in check_requirements.php by phpcodesniffer

          The variable $required_hours is not named in camelCase.
          Open

          function list_stats($hours_id, $semester) {
            include ('mysql_access.php');
            include('requirements.php');
            // Total Hours
            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $hours_id is not named in camelCase.
          Open

          function list_stats($hours_id, $semester) {
            include ('mysql_access.php');
            include('requirements.php');
            // Total Hours
            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $hours_id is not named in camelCase.
          Open

          function list_stats($hours_id, $semester) {
            include ('mysql_access.php');
            include('requirements.php');
            // Total Hours
            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $c_number is not named in camelCase.
          Open

          function list_stats($hours_id, $semester) {
            include ('mysql_access.php');
            include('requirements.php');
            // Total Hours
            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $hours_id is not named in camelCase.
          Open

          function list_stats($hours_id, $semester) {
            include ('mysql_access.php');
            include('requirements.php');
            // Total Hours
            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $hours_id is not named in camelCase.
          Open

          function list_stats($hours_id, $semester) {
            include ('mysql_access.php');
            include('requirements.php');
            // Total Hours
            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $c_count is not named in camelCase.
          Open

          function list_stats($hours_id, $semester) {
            include ('mysql_access.php');
            include('requirements.php');
            // Total Hours
            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $hours_id is not named in camelCase.
          Open

          function list_stats($hours_id, $semester) {
            include ('mysql_access.php');
            include('requirements.php');
            // Total Hours
            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $max_bought_hours is not named in camelCase.
          Open

          function list_stats($hours_id, $semester) {
            include ('mysql_access.php');
            include('requirements.php');
            // Total Hours
            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $c_count is not named in camelCase.
          Open

          function list_stats($hours_id, $semester) {
            include ('mysql_access.php');
            include('requirements.php');
            // Total Hours
            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $c_count is not named in camelCase.
          Open

          function list_stats($hours_id, $semester) {
            include ('mysql_access.php');
            include('requirements.php');
            // Total Hours
            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $apo_hours is not named in camelCase.
          Open

          function list_stats($hours_id, $semester) {
            include ('mysql_access.php');
            include('requirements.php');
            // Total Hours
            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $hours_id is not named in camelCase.
          Open

          function list_stats($hours_id, $semester) {
            include ('mysql_access.php');
            include('requirements.php');
            // Total Hours
            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $hours_id is not named in camelCase.
          Open

          function list_stats($hours_id, $semester) {
            include ('mysql_access.php');
            include('requirements.php');
            // Total Hours
            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $c_count is not named in camelCase.
          Open

          function list_stats($hours_id, $semester) {
            include ('mysql_access.php');
            include('requirements.php');
            // Total Hours
            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $hours_id is not named in camelCase.
          Open

          function list_stats($hours_id, $semester) {
            include ('mysql_access.php');
            include('requirements.php');
            // Total Hours
            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $fundraising_hours is not named in camelCase.
          Open

          function list_stats($hours_id, $semester) {
            include ('mysql_access.php');
            include('requirements.php');
            // Total Hours
            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $c_count is not named in camelCase.
          Open

          function list_stats($hours_id, $semester) {
            include ('mysql_access.php');
            include('requirements.php');
            // Total Hours
            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $c_count is not named in camelCase.
          Open

          function list_stats($hours_id, $semester) {
            include ('mysql_access.php');
            include('requirements.php');
            // Total Hours
            $sql = "SELECT SUM(hours) AS `sum_hours` FROM `recorded_hours` WHERE `user_id` = '$hours_id' AND `semester` = '$semester' LIMIT 1";
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $user_id is not named in camelCase.
          Open

          function display_event_table($rtype)
          {
              include('mysql_access.php');
              $user_id = $_SESSION['sessionID'];
              //get events for the user
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $points_needed is not named in camelCase.
          Open

          function display_event_table($rtype)
          {
              include('mysql_access.php');
              $user_id = $_SESSION['sessionID'];
              //get events for the user
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $leader_email is not named in camelCase.
          Open

          function show_active() {
              include('mysql_access.php');
              
              //$response=$db->query("SELECT event_name,L_val,F_val,repeatable FROM events_listing WHERE event_type='Point'");
              //$count = 0;
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $user_id is not named in camelCase.
          Open

          function display_event_table($rtype)
          {
              include('mysql_access.php');
              $user_id = $_SESSION['sessionID'];
              //get events for the user
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $current_semester is not named in camelCase.
          Open

          function display_event_table($rtype)
          {
              include('mysql_access.php');
              $user_id = $_SESSION['sessionID'];
              //get events for the user
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $c_events is not named in camelCase.
          Open

          function show_active() {
              include('mysql_access.php');
              
              //$response=$db->query("SELECT event_name,L_val,F_val,repeatable FROM events_listing WHERE event_type='Point'");
              //$count = 0;
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $c_events is not named in camelCase.
          Open

          function show_active() {
              include('mysql_access.php');
              
              //$response=$db->query("SELECT event_name,L_val,F_val,repeatable FROM events_listing WHERE event_type='Point'");
              //$count = 0;
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $points_needed is not named in camelCase.
          Open

          function display_event_table($rtype)
          {
              include('mysql_access.php');
              $user_id = $_SESSION['sessionID'];
              //get events for the user
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $user_id is not named in camelCase.
          Open

          function show_active() {
              include('mysql_access.php');
              
              //$response=$db->query("SELECT event_name,L_val,F_val,repeatable FROM events_listing WHERE event_type='Point'");
              //$count = 0;
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $user_id is not named in camelCase.
          Open

          function display_event_table($rtype)
          {
              include('mysql_access.php');
              $user_id = $_SESSION['sessionID'];
              //get events for the user
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $unexcused_absences is not named in camelCase.
          Open

          function display_event_table($rtype)
          {
              include('mysql_access.php');
              $user_id = $_SESSION['sessionID'];
              //get events for the user
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $user_id is not named in camelCase.
          Open

          function show_active() {
              include('mysql_access.php');
              
              //$response=$db->query("SELECT event_name,L_val,F_val,repeatable FROM events_listing WHERE event_type='Point'");
              //$count = 0;
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $c_events is not named in camelCase.
          Open

          function show_active() {
              include('mysql_access.php');
              
              //$response=$db->query("SELECT event_name,L_val,F_val,repeatable FROM events_listing WHERE event_type='Point'");
              //$count = 0;
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $taskforce_events is not named in camelCase.
          Open

          function show_active() {
              include('mysql_access.php');
              
              //$response=$db->query("SELECT event_name,L_val,F_val,repeatable FROM events_listing WHERE event_type='Point'");
              //$count = 0;
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $user_id is not named in camelCase.
          Open

          function display_event_table($rtype)
          {
              include('mysql_access.php');
              $user_id = $_SESSION['sessionID'];
              //get events for the user
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $current_semester is not named in camelCase.
          Open

          function display_event_table($rtype)
          {
              include('mysql_access.php');
              $user_id = $_SESSION['sessionID'];
              //get events for the user
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $user_id is not named in camelCase.
          Open

          function display_event_table($rtype)
          {
              include('mysql_access.php');
              $user_id = $_SESSION['sessionID'];
              //get events for the user
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $leadership_points is not named in camelCase.
          Open

          function display_event_table($rtype)
          {
              include('mysql_access.php');
              $user_id = $_SESSION['sessionID'];
              //get events for the user
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $SQL is not named in camelCase.
          Open

          function show_active() {
              include('mysql_access.php');
              
              //$response=$db->query("SELECT event_name,L_val,F_val,repeatable FROM events_listing WHERE event_type='Point'");
              //$count = 0;
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $user_id is not named in camelCase.
          Open

          function show_active() {
              include('mysql_access.php');
              
              //$response=$db->query("SELECT event_name,L_val,F_val,repeatable FROM events_listing WHERE event_type='Point'");
              //$count = 0;
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $c_events is not named in camelCase.
          Open

          function show_active() {
              include('mysql_access.php');
              
              //$response=$db->query("SELECT event_name,L_val,F_val,repeatable FROM events_listing WHERE event_type='Point'");
              //$count = 0;
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $user_id is not named in camelCase.
          Open

          function delete_event($eid, $user_id) {
            include ('mysql_access.php');
            $sql = "DELETE FROM `events_signup` WHERE `event_id` = '$eid' AND `user_id` = '$user_id' LIMIT 1";
            $delete = $db->query($sql) or exit("There was an error, contact Webmaster");
          }
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $excused_absences is not named in camelCase.
          Open

          function display_event_table($rtype)
          {
              include('mysql_access.php');
              $user_id = $_SESSION['sessionID'];
              //get events for the user
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $user_id is not named in camelCase.
          Open

          function show_active() {
              include('mysql_access.php');
              
              //$response=$db->query("SELECT event_name,L_val,F_val,repeatable FROM events_listing WHERE event_type='Point'");
              //$count = 0;
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $user_id is not named in camelCase.
          Open

          function show_active() {
              include('mysql_access.php');
              
              //$response=$db->query("SELECT event_name,L_val,F_val,repeatable FROM events_listing WHERE event_type='Point'");
              //$count = 0;
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $friendship_points is not named in camelCase.
          Open

          function display_event_table($rtype)
          {
              include('mysql_access.php');
              $user_id = $_SESSION['sessionID'];
              //get events for the user
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $points_needed is not named in camelCase.
          Open

          function display_event_table($rtype)
          {
              include('mysql_access.php');
              $user_id = $_SESSION['sessionID'];
              //get events for the user
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $current_semester is not named in camelCase.
          Open

          function display_event_table($rtype)
          {
              include('mysql_access.php');
              $user_id = $_SESSION['sessionID'];
              //get events for the user
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $user_id is not named in camelCase.
          Open

          function show_active() {
              include('mysql_access.php');
              
              //$response=$db->query("SELECT event_name,L_val,F_val,repeatable FROM events_listing WHERE event_type='Point'");
              //$count = 0;
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $leader_email is not named in camelCase.
          Open

          function show_active() {
              include('mysql_access.php');
              
              //$response=$db->query("SELECT event_name,L_val,F_val,repeatable FROM events_listing WHERE event_type='Point'");
              //$count = 0;
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $user_id is not named in camelCase.
          Open

          function display_event_table($rtype)
          {
              include('mysql_access.php');
              $user_id = $_SESSION['sessionID'];
              //get events for the user
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $current_semester is not named in camelCase.
          Open

          function display_event_table($rtype)
          {
              include('mysql_access.php');
              $user_id = $_SESSION['sessionID'];
              //get events for the user
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $SQL is not named in camelCase.
          Open

          function show_active() {
              include('mysql_access.php');
              
              //$response=$db->query("SELECT event_name,L_val,F_val,repeatable FROM events_listing WHERE event_type='Point'");
              //$count = 0;
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          The variable $c_events is not named in camelCase.
          Open

          function show_active() {
              include('mysql_access.php');
              
              //$response=$db->query("SELECT event_name,L_val,F_val,repeatable FROM events_listing WHERE event_type='Point'");
              //$count = 0;
          Severity: Minor
          Found in check_requirements.php by phpmd

          CamelCaseVariableName

          Since: 0.2

          It is considered best practice to use the camelCase notation to name variables.

          Example

          class ClassName {
              public function doSomething() {
                  $data_module = new DataModule();
              }
          }

          Source

          There are no issues that match your filters.

          Category
          Status