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;
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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
- Read upRead up
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
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";
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";
- Read upRead up
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>
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;
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;
- Read upRead up
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";
- Read upRead up
- Exclude checks
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";
- Exclude checks
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
- Exclude checks
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";
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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>";
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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 . "'");
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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/>";
- Read upRead up
- Exclude checks
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);
- Read upRead up
- Exclude checks
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/>";
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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 . "'");
- Read upRead up
- Exclude checks
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/>";
- Read upRead up
- Exclude checks
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'] . "'");
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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 . "'");
- Read upRead up
- Exclude checks
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"] . "'");
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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'");
- Read upRead up
- Exclude checks
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>";
- Read upRead up
- Exclude checks
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>";
- Read upRead up
- Exclude checks
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/>";
- Read upRead up
- Exclude checks
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>";
- Read upRead up
- Exclude checks
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++;
}
- Read upRead up
- Exclude checks
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";
}
- Read upRead up
- Exclude checks
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.";
}
- Read upRead up
- Exclude checks
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++;
}
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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>";
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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/>";
- Read upRead up
- Exclude checks
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>";
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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>";
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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>";
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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/>";
- Read upRead up
- Exclude checks
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/>";
- Read upRead up
- Exclude checks
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/>";
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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
- Exclude checks
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";
- Read upRead up
- Exclude checks
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)) {
- Read upRead up
- Exclude checks
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");
}
- Read upRead up
- Exclude checks
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'];
- Read upRead up
- Exclude checks
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);
- Read upRead up
- Exclude checks
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");
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "false" but found "False" Open
$public_page = False;
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "false" but found "False" Open
$exec_page = False;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<tr><td></td><td>Total</td><td>" . $points . "</td></tr>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<td>" . $lresult['email'] . "</td>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<td>" . $eresult['event_type'] . "</td>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<h3>Service - 25 Hours</h3>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
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>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
global $current_semester;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
list_stats($user_id,$current_semester);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
else if ($rtype == "Service")
- Exclude checks
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>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "</table>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$points = $points + $eresult[$val];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<p>You have " . $points . " of 4 points.</p>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo 'attended</td></tr>';
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<table><tr><th>missed meeting</th><th>excuse</th></tr>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
while($meetingevent=mysqli_fetch_array($mresponse))
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<h3>Committee - $taskforce_events taskforce events</h3>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$eq=$db->query("SELECT email FROM contact_information WHERE id=$elid");
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
else if ( is_user_excused($user_id,$reqevent['event_id']) )
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$excused++;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if ($ex == 'none')
- Exclude checks
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'");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//echo "you have not met all the requirements :(<br>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
{
- Exclude checks
Blank line found at start of control structure Open
{
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<table><tr><th>Event</th><th>Attended?</th></tr>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
{
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$unexcused++;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
global $current_semester;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "$excused of $excused_absences excused absences.<br>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//echo "you have x unexcused absences left of y<br>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$ename = $taskr['event_name'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
else if ($rtype == "Required")
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$unexcused = 0;
- Exclude checks
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");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
{
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$mtg = $meetingevent['meeting'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "</table>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$SQL = "SELECT lastname,firstname,status FROM contact_information WHERE id=" . $user_id;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
else
- Exclude checks
Blank line found at start of control structure Open
if ($result['status']=='Active' ||$result['status']=='Appointed' ||$result['status']=='Elected') {
- Exclude checks
Blank line found at end of control structure Open
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$taskr=mysqli_fetch_array($taskq);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
{
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<tr><td>" . $reqevent['event_name'] . '</td><td>';
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<tr><td>$mtg</td><td>$ex</td></tr>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
include('mysql_access.php');
- Exclude checks
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 . "'");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$taskq=$db->query("SELECT * FROM events_listing WHERE event_id='" . $zresult["event_id"] . "'");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$elid = $taskr['event_leader_id'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
include('retrieve_event.php');
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//check if attended
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//check if excused
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$mm = 0;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
else
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<h1>Requirements for " . $result['firstname'] . " " . $result['lastname'] . "</h1>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$user_id = $_SESSION['sessionID'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$c_events = 0;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo 'x</td></tr>';
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "$unexcused of $unexcused_absences unexcused absences.<br>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//keep track of progress?
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
while($zresult=mysqli_fetch_array($zresponse))
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$er=mysqli_fetch_array($eq);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
while($reqevent=mysqli_fetch_array($theresponse))
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
include('requirements.php');
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$mm++;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$unexcused++;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
{
- Exclude checks
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";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$eid = $_GET['delete'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$excused = 0;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
{
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//$count = 0;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$response=$db->query($SQL);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if (isset($_GET['delete'])) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo 'excused</td></tr>';
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$user_id = $_SESSION['sessionID'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if ($result['status']=='Active' ||$result['status']=='Appointed' ||$result['status']=='Elected') {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
delete_event($eid, $user_id);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
{
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
if ( did_user_attend($user_id,$reqevent['event_id']) )
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
{
- Exclude checks
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'");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
else if ( is_user_excused($user_id,$reqevent['event_id']) )
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
{
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
else
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "</table>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
{
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//echo "you have x excused absences left of y<br>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if($taskr['event_type'] == 'Taskforce')
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
display_event_table("Friendship");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<h3>Required Events</h3>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//else unexcused
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
{
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$ex = $meetingevent['excuse'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "Meetings Missed : $mm<br><br>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "Error : Incorrect Display Type";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$result=mysqli_fetch_array($response);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
include('requirements.php');
- Exclude checks
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>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
{
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
display_event_table("Leadership");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
{
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if ( did_user_attend($user_id,$reqevent['event_id']) )
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$excused++;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<h2>ID# " . $user_id . " Status: " . $result['status'] . "</h2>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$leader_email = $er['email'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$c_events++;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "Sorry, this page only handles Active requirements at the moment.";
- Exclude checks
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>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<tr><td></td><td>Total</td><td>$c_events</td></tr></table>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//add submit button and send to recsec ?
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//echo "<br><br><input type=submit value='submit'>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
else
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
display_event_table("Service");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
display_event_table("Required");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<p>You have $c_events of 3 events.</p>";
- Exclude checks
End of line character is invalid; expected "\n" but found "\r\n" Open
<?php
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ($i['sum_hours'] > 0)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$hrs = 0;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ($i['sum_hours'] > 0)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$hrs = round($i['sum_hours'], 2);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$c_count++;
- Exclude checks
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";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ($i['sum_hours'] > 0)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$hrs = 0;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$hrs = round($i['sum_hours'], 2);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$hrs = 0;
- Exclude checks
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";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$hrs = round($i['sum_hours'], 2);
- Exclude checks
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";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ($i['sum_hours'] > 0)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
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";
- Exclude checks
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";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$hrs = 0;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$hrs = 0;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ($i['sum_hours'] > 0)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ($i['sum_hours'] > 0)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$hrs = 0;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ($i['sum_hours'] > 0)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$c_count++;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$points_needed = $leadership_points;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$val = "F_val";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
echo "<td>" . $lresult['email'] . "</td>";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ($rtype == "Leadership" || $rtype == "Friendship")
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$hrs = round($i['sum_hours'], 2);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
echo "<td>" . $eresult['event_name'] . "</td>";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
else if ($rtype == "Friendship")
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$eresult=mysqli_fetch_array($eresponse);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
echo "<td>" . $lresult['firstname'] . " " . $lresult['lastname'] . "</td>";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$hrs = $i['sum_hours'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$hrs = $i['sum_hours'];
- Exclude checks
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";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$hrs = 0;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$hrs = $i['sum_hours'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
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 . "'");
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
include('requirements.php');
- Exclude checks
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>";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$c_count++;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ($i['sum_hours'] > 0)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
//get events for the user
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
echo "<td>" . $eresult[$val] . "</td>";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$count++;
- Exclude checks
Line exceeds 120 characters; contains 145 characters Open
$lresponse=$db->query("SELECT firstname,lastname,email FROM contact_information WHERE id='" . $eresult['event_leader_id'] . "'");
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$hrs = round($i['sum_hours'], 2);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
echo "<h3>" . $rtype . " - " . $points_needed . " Points</h3>";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$hrs = 0;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
echo "<table>";
- Exclude checks
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 . "'");
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ($eresult[$val] > 0)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$lresult=mysqli_fetch_array($lresponse);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$c_count++;
- Exclude checks
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";
- Exclude checks
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>";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
//pull info for that event_id
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$val = "L_val";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
//get leader name & email
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
while($result=mysqli_fetch_array($response))
- Exclude checks
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 . "'");
- Exclude checks
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'] . "'");
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$points_needed = $friendship_points;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
echo "<a href='event_signup.php'>Add events here.</a><br>";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$count = 0;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$points = 0;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$eid = $result['event_id'];
- Exclude checks
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";
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
include('mysql_access.php');
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$user_id = $_SESSION['sessionID'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if ($rtype == "Leadership")
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
echo "<tr><td>".$count . "</td>";
- Exclude checks
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";
- Exclude checks
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'");
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$c_count++;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
echo "<span>Chapter Hours:</span> $hrs<br/>";
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$results = $db->query($sql) or die("Error Calculating Hours. $db->error");
- Exclude checks
Expected 1 space after WHILE keyword; 0 found Open
while($i = mysqli_fetch_array($results)) {
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
}
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
while($i = mysqli_fetch_array($results)) {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
{
- Exclude checks
Expected 1 space after WHILE keyword; 0 found Open
while($i = mysqli_fetch_array($results)) {
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
}
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$results->free();
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$hrs = 0;
- Exclude checks
Expected 1 space after closing parenthesis; found 7 Open
if ($i['sum_hours'] > 0)
- Exclude checks
Space before opening parenthesis of function call prohibited Open
require_once ('session.php');
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
if ($i['sum_hours'] > 0)
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$hrs = 0;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$hrs = $i['sum_hours'];
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$hrs = round($i['sum_hours'], 2);
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
{
- Exclude checks
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";
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$hrs = 0;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Whitespace found at end of line Open
if ($i['sum_hours'] > 0)
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
}
- Exclude checks
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";
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$results = $db->query($sql) or die("Error Calculating Hours");
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
}
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
while($i = mysqli_fetch_array($results)) {
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
echo "<br><p>You need $c_number of the four C categories :</p>";
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$c_count = 0;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Expected 1 space after closing parenthesis; found 7 Open
if ($i['sum_hours'] > 0)
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
include ('mysql_access.php');
- Exclude checks
Expected 1 space after closing parenthesis; found 7 Open
if ($i['sum_hours'] > 0)
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
echo "<span>APO Hours:</span> $hrs of $apo_hours<br/>";
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$hrs = $i['sum_hours'];
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$results = $db->query($sql) or die("Error Calculating Hours");
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
if ($i['sum_hours'] > 0)
- Exclude checks
Space before opening parenthesis of function call prohibited Open
require_once ('mysql_access.php');
- Exclude checks
Space before opening parenthesis of function call prohibited Open
include ('mysql_access.php');
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
while($i = mysqli_fetch_array($results)) {
- Exclude checks
Whitespace found at end of line Open
if ($i['sum_hours'] > 0)
- Exclude checks
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";
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$hrs = 0;
- Exclude checks
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";
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
echo "<span>Total Hours:</span> $hrs of $required_hours<br/>";
- Exclude checks
Expected 1 space after WHILE keyword; 0 found Open
while($i = mysqli_fetch_array($results)) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
if ($i['sum_hours'] > 0)
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$results->free();
- Exclude checks
Expected 1 space after WHILE keyword; 0 found Open
while($i = mysqli_fetch_array($results)) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
if ($i['sum_hours'] > 0)
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$results = $db->query($sql) or die("Error Calculating Hours");
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
while($i = mysqli_fetch_array($results)) {
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$results->free();
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
if ($i['sum_hours'] > 0)
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
if ($i['sum_hours'] > 0)
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
{
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
while($i = mysqli_fetch_array($results)) {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$hrs = round($i['sum_hours'], 2);
- Exclude checks
Expected 1 space after WHILE keyword; 0 found Open
while($i = mysqli_fetch_array($results)) {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
echo "<span>Bought Hours:</span> $hrs of maximum $max_bought_hours<br/>";
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$results->free();
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$hrs = 0;
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$hrs = round($i['sum_hours'], 2);
- Exclude checks
Opening brace should be on a new line Open
function list_stats($hours_id, $semester) {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
{
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$results = $db->query($sql) or die("Error Calculating Hours");
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$hrs = 0;
- Exclude checks
Expected 1 space after closing parenthesis; found 7 Open
if ($i['sum_hours'] > 0)
- Exclude checks
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";
- Exclude checks
Expected 1 space after closing parenthesis; found 7 Open
if ($i['sum_hours'] > 0)
- Exclude checks
Expected 1 space after WHILE keyword; 0 found Open
while($i = mysqli_fetch_array($results)) {
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
include('requirements.php');
- Exclude checks
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";
- Exclude checks
Whitespace found at end of line Open
if ($i['sum_hours'] > 0)
- Exclude checks
Expected 1 space after closing parenthesis; found 7 Open
if ($i['sum_hours'] > 0)
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$hrs = round($i['sum_hours'], 2);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$hrs = 0;
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$results->free();
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
if ($rtype == "Leadership")
- Exclude checks
Expected 1 space after closing parenthesis; found 10 Open
while($result=mysqli_fetch_array($response))
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$hrs = $i['sum_hours'];
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$val = "L_val";
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
include ('mysql_access.php');
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$results = $db->query($sql) or die("Error Calculating Hours");
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
echo "<span>Fundraising Hours:</span> $hrs of $fundraising_hours<br/>";
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$results->free();
- Exclude checks
Whitespace found at end of line Open
if ($i['sum_hours'] > 0)
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$results = $db->query($sql) or die("Error Calculating Hours");
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
if ($i['sum_hours'] > 0)
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
while($i = mysqli_fetch_array($results)) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Whitespace found at end of line Open
if ($i['sum_hours'] > 0)
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
if ($i['sum_hours'] > 0)
- Exclude checks
Expected 1 space after closing parenthesis; found 7 Open
if ($i['sum_hours'] > 0)
- Exclude checks
Whitespace found at end of line Open
if ($i['sum_hours'] > 0)
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$c_count++;
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
include('requirements.php');
- Exclude checks
Usage of ELSE IF is discouraged; use ELSEIF instead Open
else if ($rtype == "Friendship")
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
}
- Exclude checks
Whitespace found at end of line Open
echo "<td>" . $lresult['email'] . "</td>";
- Exclude checks
Opening brace should be on a new line Open
function delete_event($eid, $user_id) {
- Exclude checks
Whitespace found at end of line Open
{
- Exclude checks
Usage of ELSE IF is discouraged; use ELSEIF instead Open
else if ($rtype == "Service")
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
{
- Exclude checks
Expected 1 space after WHILE keyword; 0 found Open
while($i = mysqli_fetch_array($results)) {
- Exclude checks
Expected 1 space after WHILE keyword; 0 found Open
while($i = mysqli_fetch_array($results)) {
- Exclude checks
Whitespace found at end of line Open
if ($i['sum_hours'] > 0)
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
echo "<span>Country Hours:</span> $hrs<br/>";
- Exclude checks
Space before opening parenthesis of function call prohibited Open
include ('mysql_access.php');
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$val = "F_val";
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
echo "<span>Campus Hours:</span> $hrs<br/>";
- Exclude checks
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";
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$results = $db->query($sql) or die("Error Calculating Hours");
- Exclude checks
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";
- Exclude checks
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";
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$hrs = 0;
- Exclude checks
Expected 1 space after closing parenthesis; found 7 Open
if ($i['sum_hours'] > 0)
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$points_needed = $leadership_points;
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
else if ($rtype == "Friendship")
- Exclude checks
Expected 1 space after closing parenthesis; found 14 Open
if ($eresult[$val] > 0)
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
echo "<span>Community Hours:</span> $hrs<br/>";
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$results->free();
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$c_count++;
- Exclude checks
Expected 1 space after closing parenthesis; found 6 Open
if ($rtype == "Leadership")
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$points_needed = $friendship_points;
- Exclude checks
Expected 1 space after closing parenthesis; found 14 Open
else if ( is_user_excused($user_id,$reqevent['event_id']) )
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
echo "<h3>Committee - $taskforce_events taskforce events</h3>";
- Exclude checks
Whitespace found at end of line Open
if ($i['sum_hours'] > 0)
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
while($i = mysqli_fetch_array($results)) {
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
echo "<p>You have " . $c_count . " of the 3 C's.</p>";
- Exclude checks
Expected 1 space after closing parenthesis; found 6 Open
if ($rtype == "Leadership" || $rtype == "Friendship")
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
{
- Exclude checks
No space found after comma in function call Open
list_stats($user_id,$current_semester);
- Exclude checks
Expected 1 space after closing parenthesis; found 6 Open
else if ($rtype == "Required")
- Exclude checks
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>";
- Exclude checks
Expected 1 space after IF keyword; 0 found Open
if($taskr['event_type'] == 'Taskforce')
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$results->free();
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$eq=$db->query("SELECT email FROM contact_information WHERE id=$elid");
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
while($i = mysqli_fetch_array($results)) {
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$delete = $db->query($sql) or exit("There was an error, contact Webmaster");
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$c_count++;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
{
- Exclude checks
Expected 1 space after WHILE keyword; 0 found Open
while($result=mysqli_fetch_array($response))
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$hrs = round($i['sum_hours'], 2);
- Exclude checks
Expected 1 space after closing parenthesis; found 6 Open
else if ($rtype == "Service")
- Exclude checks
Expected 1 space after closing parenthesis; found 6 Open
else if ($rtype == "Friendship")
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Usage of ELSE IF is discouraged; use ELSEIF instead Open
else if ($rtype == "Required")
- Exclude checks
Expected 1 space after closing parenthesis; found 10 Open
while($reqevent=mysqli_fetch_array($theresponse))
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
if ( did_user_attend($user_id,$reqevent['event_id']) )
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
delete_event($eid, $user_id);
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$elid = $taskr['event_leader_id'];
- Exclude checks
No space found after comma in function call Open
if ( did_user_attend($user_id,$reqevent['event_id']) )
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
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 . "'");
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$taskq=$db->query("SELECT * FROM events_listing WHERE event_id='" . $zresult["event_id"] . "'");
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Whitespace found at end of line Open
echo 'attended</td></tr>';
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Expected 1 space after WHILE keyword; 0 found Open
while($meetingevent=mysqli_fetch_array($mresponse))
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$user_id = $_SESSION['sessionID'];
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
{
- Exclude checks
Usage of ELSE IF is discouraged; use ELSEIF instead Open
else if ( is_user_excused($user_id,$reqevent['event_id']) )
- Exclude checks
Expected 1 space after ELSE keyword; newline found Open
else
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
while($zresult=mysqli_fetch_array($zresponse))
- Exclude checks
Expected 1 space after WHILE keyword; 0 found Open
while($reqevent=mysqli_fetch_array($theresponse))
- Exclude checks
Expected 1 space after closing parenthesis; found 14 Open
if ( did_user_attend($user_id,$reqevent['event_id']) )
- Exclude checks
Expected 1 space after ELSE keyword; newline found Open
else
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
if (isset($_GET['delete'])) {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$taskr=mysqli_fetch_array($taskq);
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$ename = $taskr['event_name'];
- Exclude checks
Expected 1 space after closing parenthesis; found 14 Open
if ($ex == 'none')
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Expected 1 space after ELSE keyword; newline found Open
else
- Exclude checks
Expected 1 space after closing parenthesis; found 6 Open
while($zresult=mysqli_fetch_array($zresponse))
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
else if ( is_user_excused($user_id,$reqevent['event_id']) )
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$c_events = 0;
- Exclude checks
No space found after comma in function call Open
else if ( is_user_excused($user_id,$reqevent['event_id']) )
- Exclude checks
Expected 1 space after closing parenthesis; found 10 Open
while($meetingevent=mysqli_fetch_array($mresponse))
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$c_events++;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
display_event_table("Leadership");
- Exclude checks
Expected 1 space after ELSE keyword; newline found Open
else
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
include('requirements.php');
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
$eid = $_GET['delete'];
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
if($taskr['event_type'] == 'Taskforce')
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$leader_email = $er['email'];
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
echo "<p>You have $c_events of 3 events.</p>";
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
display_event_table("Required");
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Opening brace should be on a new line Open
function show_active() {
- Exclude checks
Expected 1 space after WHILE keyword; 0 found Open
while($zresult=mysqli_fetch_array($zresponse))
- Exclude checks
Expected 1 space after closing parenthesis; found 10 Open
if($taskr['event_type'] == 'Taskforce')
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$er=mysqli_fetch_array($eq);
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
display_event_table("Service");
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
echo "<tr><td></td><td>Total</td><td>$c_events</td></tr></table>";
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
display_event_table("Friendship");
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
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>";
- Exclude checks
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";
- Read upRead up
- Exclude checks
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";
- Read upRead up
- Exclude checks
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";
- Read upRead up
- Exclude checks
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";
- Read upRead up
- Exclude checks
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";
- Read upRead up
- Exclude checks
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";
- Read upRead up
- Exclude checks
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";
- Read upRead up
- Exclude checks
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";
- Read upRead up
- Exclude checks
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";
- Read upRead up
- Exclude checks
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";
- Read upRead up
- Exclude checks
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";
- Read upRead up
- Exclude checks
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";
- Read upRead up
- Exclude checks
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";
- Read upRead up
- Exclude checks
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";
- Read upRead up
- Exclude checks
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";
- Read upRead up
- Exclude checks
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";
- Read upRead up
- Exclude checks
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";
- Read upRead up
- Exclude checks
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";
- Read upRead up
- Exclude checks
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";
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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");
}
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Read upRead up
- Exclude checks
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();
}
}