show_active accesses the super-global variable $_GET. Open
function show_active() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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
submit_event accesses the super-global variable $_SESSION. Open
function submit_event($entry) {
include ('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$wresponse=$db->query("SELECT week_cd FROM week LIMIT 1");
- 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() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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 show_active
has a Cognitive Complexity of 54 (exceeds 5 allowed). Consider refactoring. Open
function show_active() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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 show_active
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
function show_active() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
Method submit_event
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
function submit_event($entry) {
include ('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$wresponse=$db->query("SELECT week_cd FROM week LIMIT 1");
The function show_active() has an NPath complexity of 208. The configured NPath complexity threshold is 200. Open
function show_active() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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 show_active() has 118 lines of code. Current threshold is set to 100. Avoid really long methods. Open
function show_active() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- Exclude checks
The function show_active() has a Cyclomatic Complexity of 15. The configured cyclomatic complexity threshold is 10. Open
function show_active() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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
$response=$db->query("SELECT * FROM events_listing WHERE event_leader_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
$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
$wresponse=$db->query("SELECT week_cd FROM week LIMIT 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
$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
$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
$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
$uresponse=$db->query("SELECT firstname,lastname,email FROM contact_information WHERE id = $uid");
- 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
$sig=$db->query("SELECT * FROM events_signup WHERE event_id = $entry AND week=$week_cd AND Factor=$d");
- 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
$vesponse=$db->query("SELECT position FROM contact_information WHERE id=$user_id LIMIT 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
$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
$subbed = $db->query($new) or die("Submit $d Failed");
- 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
$dsearch=$db->query("SELECT * FROM regular_service_details 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
$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
$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
$gen=$db->query("SELECT * FROM events_listing WHERE event_id = $entry");
- 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
$deets=$db->query("SELECT * FROM regular_service_details WHERE event_id = $entry");
- 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
$subbed = $db->query($new) or die("Submit Failed");
- 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 * FROM events_listing WHERE event_leader_id = $user_id OR event_type = 'Chapter'");
- 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
$wresponse=$db->query("SELECT week_cd FROM week LIMIT 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
$aresponse=$db->query("SELECT user_id,factor,entry_id FROM events_signup WHERE event_id = $eid 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
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
{
$response=$db->query("SELECT * FROM events_listing WHERE event_leader_id = $user_id");
}
- 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
{
$cancel = "<sup><a href='leader_list.php?delete_event=$eid'>Delete Event?</a></sup>";
if ($result['closed'] == 1)
{
$submit = "<sup><a href='leader_list.php?open=$eid'>Open?</a></sup>";
- 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
{
$submit = "submitted";
}
- 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
{
$cancel = "<sup><a href='leader_list.php?uncancel=$eid'>Uncancel?</a></sup>";
}
- 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
{
$submit = "<sup><a href='leader_list.php?end=$eid'>Close?</a></sup>";
}
- 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 submit_event() contains an exit expression. Open
$subbed = $db->query($new) or die("Submit Failed");
- 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 close_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
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 '$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
The function uncancel_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 submit_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
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
The function open_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
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 '$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 '$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
The function delete_event_and_entries() 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
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
The function delete_event_and_entries() 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 cancel_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
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
The function submit_event() contains an exit expression. Open
$subbed = $db->query($new) or die("Submit $d Failed");
- 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 delete_entry() 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
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 '$subbed'. Open
$subbed = $db->query($new) or die("Submit Failed");
- 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 '$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 '$week_cd'. Open
$week_cd = $wres['week_cd'];
- 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
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 27 and the first side effect is on line 2. Open
<?php
- Exclude checks
Avoid variables with short names like $sg. Configured minimum length is 3. Open
$sg=mysqli_fetch_array($sig);
- 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
Spaces must be used for alignment; tabs are not allowed Open
$wresponse=$db->query("SELECT week_cd FROM week LIMIT 1");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$delete = $db->query($sql) or exit("There was an error, contact Webmaster");
- 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
$delete = $db->query($sql) or exit("There was an error, contact Webmaster");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$entry = $_GET['cancel'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$response=$db->query("SELECT * FROM events_listing WHERE event_leader_id = $user_id OR event_type = 'Chapter'");
- 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
$response=$db->query("SELECT * FROM events_listing WHERE event_leader_id = $user_id");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$submit = "<sup><a href='leader_list.php?end=$eid'>Close?</a></sup>";
- 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
//loop for each participant. Display name, factor, and email!
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$wres=mysqli_fetch_array($wresponse);
- 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
$cancel = "<sup><a href='leader_list.php?cancel=$eid'>Cancel?</a></sup>";
- 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['closed'] == 1)
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$uresult=mysqli_fetch_array($uresponse);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$subbed = $db->query($new) or die("Submit $d Failed");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$entry = $_GET['uncancel'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
submit_event($entry);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
else if (isset($_GET['end'])) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if ($daily['cancel'] == 0)
- 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
$submit = "submitted";
- 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
$entry = $_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
uncancel_event($entry);
- 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
delete_event_and_entries($eid);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$week_cd = $wres['week_cd'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$submit = "<sup><a href='leader_list.php?submit=$eid'>Submit?</a></sup>";
- 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
<?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
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
$aresponse=$db->query("SELECT user_id,factor,entry_id FROM events_signup WHERE event_id = $eid AND semester='$current_semester'");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$count++;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$uid = $aresult['user_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
}
- 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
$eid = $_GET['open'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
close_event($eid);
- 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
while($result=mysqli_fetch_array($response))
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//set cancel or uncancel
- 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
<tr><td colspan="2"><?= $result['event_name'] ?></td><td>Type: <?= $result['event_type'] ?> </td>
- 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
$uresponse=$db->query("SELECT firstname,lastname,email FROM contact_information WHERE id = $uid");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<tr><td>" . $count . "</td><td>" . $uresult['firstname'] . " " . $uresult['lastname'] . "</td><td>" . $uresult['email'] . "<td></td><td><sup><a href='leader_list.php?delete=$entry'>Delete?</a></sup></td>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "</tr>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$sg=mysqli_fetch_array($sig);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$n_id = $sg['user_id'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$dsearch=$db->query("SELECT * FROM regular_service_details WHERE event_id=$eid");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$cancel = "<sup><a href='leader_list.php?uncancel=$eid'>Uncancel?</a></sup>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//set submit or null
- 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
<tr><th>#</th><th>Name</th><th>Email</th><th>Note</th><th>Delete?</th></tr>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<?php
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if (isset($sg['user_id'])) //if someone is signed up in this factor
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$new = "INSERT INTO recorded_hours (user_id,month,day,year,date,semester,description,hours,servicetype,event,youth) VALUES($n_id,1,1,2017,0,'Spring 2017','$desc',$hrs,'$svc_type','$event_name',$yth)";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
else if (isset($_GET['submit'])) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
else if (isset($_GET['open'])) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
open_event($eid);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if($vesult['position'] == 'Recording Secretary')
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$response=$db->query("SELECT * FROM events_listing WHERE event_leader_id = $user_id OR event_type = 'Chapter'");
- 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
else
- 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
while($aresult=mysqli_fetch_array($aresponse))
- 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
$entry = $_GET['submit'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
else if (isset($_GET['delete_event'])) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if ($daily['closed'] == 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
$sig=$db->query("SELECT * FROM events_signup WHERE event_id = $entry AND week=$week_cd AND Factor=$d");
- 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 (isset($_GET['uncancel'])) {
- 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
$eid = $_GET['end'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$vesponse=$db->query("SELECT position FROM contact_information WHERE id=$user_id LIMIT 1");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$sg=mysqli_fetch_array($sig);
- 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
$response=$db->query("SELECT * FROM events_listing WHERE event_leader_id = $user_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
{
- 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
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<h1>Events you are leading:</h1>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
cancel_event($entry);
- 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
$eid = $result['event_id'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$week_cd = $wres['week_cd'];
- 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 (isset($_GET['cancel'])) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$wres=mysqli_fetch_array($wresponse);
- 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
$cancel = "<sup><a href='leader_list.php?delete_event=$eid'>Delete Event?</a></sup>";
- 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
<tr><td colspan="5"><?= $result['event_description'] ?></td></tr>
- Exclude checks
Space found after opening bracket of FOR loop Open
for ( $d=1; $d<=$cap; $d++)
- 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
$vesult=mysqli_fetch_array($vesponse);
- 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
//$aresponse=$db->query("SELECT user_id,factor,entry_id FROM events_signup WHERE event_id = $eid AND week = $week_cd");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$entry = $aresult['entry_id'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
delete_entry($entry);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$eid = $_GET['delete_event'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//if rec sec, display all chapter events first
- 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
$wresponse=$db->query("SELECT week_cd FROM week LIMIT 1");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$daily=mysqli_fetch_array($dsearch);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if($result['event_type'] == 'Regular Service')
- 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
$submit = "<sup><a href='leader_list.php?open=$eid'>Open?</a></sup>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<table>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<td><?= $submit ?></td><td><?= $cancel ?></td></tr>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
</table>
- Exclude checks
End of line character is invalid; expected "\n" but found "\r\n" Open
<?php
- Exclude checks
Line exceeds 120 characters; contains 206 characters Open
$new = "INSERT INTO recorded_hours (user_id,month,day,year,date,semester,description,hours,servicetype,event,youth) VALUES ($user_id,1,1,2017,0,'Spring 2017','$desc',$hrs,'$svc_type','$event_name',$yth)";
- Exclude checks
Line exceeds 120 characters; contains 138 characters Open
$aresponse=$db->query("SELECT user_id,factor,entry_id FROM events_signup WHERE event_id = $eid AND semester='$current_semester'");
- Exclude checks
Line exceeds 120 characters; contains 223 characters Open
echo "<tr><td>" . $count . "</td><td>" . $uresult['firstname'] . " " . $uresult['lastname'] . "</td><td>" . $uresult['email'] . "<td></td><td><sup><a href='leader_list.php?delete=$entry'>Delete?</a></sup></td>";
- Exclude checks
Line exceeds 120 characters; contains 204 characters Open
$new = "INSERT INTO recorded_hours (user_id,month,day,year,date,semester,description,hours,servicetype,event,youth) VALUES($n_id,1,1,2017,0,'Spring 2017','$desc',$hrs,'$svc_type','$event_name',$yth)";
- Exclude checks
Line exceeds 120 characters; contains 128 characters Open
$response=$db->query("SELECT * FROM events_listing WHERE event_leader_id = $user_id OR event_type = 'Chapter'");
- Exclude checks
Line exceeds 120 characters; contains 127 characters Open
//$aresponse=$db->query("SELECT user_id,factor,entry_id FROM events_signup WHERE event_id = $eid AND week = $week_cd");
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 3 Open
include ('mysql_access.php');
- Exclude checks
Space before opening parenthesis of function call prohibited Open
include ('mysql_access.php');
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$sql = "DELETE FROM `events_signup` WHERE `entry_id` = '$entry' LIMIT 1";
- Exclude checks
Space before opening parenthesis of function call prohibited Open
include ('mysql_access.php');
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$sql = "UPDATE regular_service_details SET cancel=0 WHERE event_id=$entry LIMIT 1";
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
include ('mysql_access.php');
- 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 4 spaces, found 2 Open
$user_id = $_SESSION['sessionID'];
- Exclude checks
Space before opening parenthesis of function call prohibited Open
require_once ('session.php');
- Exclude checks
Opening brace should be on a new line Open
function submit_event($entry) {
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 3 Open
include ('mysql_access.php');
- Exclude checks
Space before opening parenthesis of function call prohibited Open
include ('mysql_access.php');
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
include ('mysql_access.php');
- 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 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 4 spaces, found 2 Open
$sql = "UPDATE regular_service_details SET cancel=1 WHERE event_id=$entry LIMIT 1";
- Exclude checks
Space before opening parenthesis of function call prohibited Open
include ('mysql_access.php');
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
include ('mysql_access.php');
- Exclude checks
Opening brace should be on a new line Open
function cancel_event($entry) {
- Exclude checks
Opening brace should be on a new line Open
function uncancel_event($entry) {
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
include ('mysql_access.php');
- Exclude checks
Whitespace found at end of line Open
$delete = $db->query($sql) or exit("There was an error, contact Webmaster");
- Exclude checks
Space before opening parenthesis of function call prohibited Open
include ('mysql_access.php');
- Exclude checks
Space before opening parenthesis of function call prohibited Open
include ('mysql_access.php');
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 3 Open
$delete = $db->query($sql) or exit("There was an error, contact Webmaster");
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 3 Open
$sql = "UPDATE events_listing SET closed=0 WHERE event_id=$eid LIMIT 1";
- 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 4 spaces, found 2 Open
$sql = "DELETE FROM `events_signup` WHERE `event_id` = '$eid'";
- Exclude checks
Space before opening parenthesis of function call prohibited Open
include ('mysql_access.php');
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 3 Open
$sql = "UPDATE events_listing SET closed=1 WHERE event_id=$eid LIMIT 1";
- Exclude checks
Whitespace found at end of line Open
$delete = $db->query($sql) or exit("There was an error, contact Webmaster");
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 3 Open
$delete = $db->query($sql) or exit("There was an error, contact Webmaster");
- Exclude checks
Opening brace should be on a new line Open
function delete_entry($entry) {
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
include ('mysql_access.php');
- Exclude checks
Space before opening parenthesis of function call prohibited Open
require_once ('mysql_access.php');
- 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 4 spaces, found 2 Open
$sql = "DELETE FROM `events_listing` WHERE `event_id` = '$eid' LIMIT 1";
- Exclude checks
Whitespace found at end of line Open
$delete = $db->query($sql) or exit("There was an error, contact Webmaster");
- Exclude checks
Usage of ELSE IF is discouraged; use ELSEIF instead Open
else if (isset($_GET['uncancel'])) {
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Expected 1 space after closing parenthesis; found 6 Open
while($result=mysqli_fetch_array($response))
- Exclude checks
Expected 1 space after closing parenthesis; found 14 Open
if ($result['closed'] == 1)
- Exclude checks
Whitespace found at end of line Open
$response=$db->query("SELECT * FROM events_listing WHERE event_leader_id = $user_id");
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
if ($daily['cancel'] == 0)
- Exclude checks
Expected 1 space after ELSE keyword; newline found Open
else
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Whitespace found at end of line Open
$sg=mysqli_fetch_array($sig);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 4 Open
$n_id = $sg['user_id'];
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$dts=mysqli_fetch_array($deets);
- Exclude checks
Usage of ELSE IF is discouraged; use ELSEIF instead Open
else if (isset($_GET['submit'])) {
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$desc = $gens['event_description'] . " Week #" . $week_cd;
- Exclude checks
Expected 1 space after closing parenthesis; found " //if someone is signed up in this factor\n " Open
if (isset($sg['user_id'])) //if someone is signed up in this factor
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 4 Open
$subbed = $db->query($new) or die("Submit $d Failed");
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
{
- Exclude checks
Expected 1 space after closing parenthesis; found 6 Open
if($vesult['position'] == 'Recording Secretary')
- Exclude checks
Expected 1 space after ELSE keyword; newline found Open
else
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Expected 1 space after closing parenthesis; found 4 Open
for ( $d=1; $d<=$cap; $d++)
- 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
Usage of ELSE IF is discouraged; use ELSEIF instead Open
else if (isset($_GET['delete_event'])) {
- Exclude checks
Expected 1 space after ELSE keyword; newline found Open
else
- Exclude checks
Expected 1 space after closing parenthesis; found 10 Open
if ($daily['closed'] == 0)
- Exclude checks
Expected 1 space after ELSE keyword; newline found Open
else
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$yth = $dts['youth'];
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$gens=mysqli_fetch_array($gen);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$sg=mysqli_fetch_array($sig);
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Expected 1 space after IF keyword; 0 found Open
if($vesult['position'] == 'Recording Secretary')
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$cancel = "<sup><a href='leader_list.php?cancel=$eid'>Cancel?</a></sup>";
- Exclude checks
Expected 1 space after closing parenthesis; found 10 Open
while($aresult=mysqli_fetch_array($aresponse))
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$gen=$db->query("SELECT * FROM events_listing WHERE event_id = $entry");
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
{
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$sig=$db->query("SELECT * FROM events_signup WHERE event_id = $entry AND week=$week_cd AND Factor=$d");
- Exclude checks
Usage of ELSE IF is discouraged; use ELSEIF instead Open
else if (isset($_GET['cancel'])) {
- Exclude checks
Usage of ELSE IF is discouraged; use ELSEIF instead Open
else if (isset($_GET['end'])) {
- Exclude checks
Expected 1 space after IF keyword; 0 found Open
if($result['event_type'] == 'Regular Service')
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$submit = "<sup><a href='leader_list.php?submit=$eid'>Submit?</a></sup>";
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$deets=$db->query("SELECT * FROM regular_service_details WHERE event_id = $entry");
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
for ( $d=1; $d<=$cap; $d++)
- Exclude checks
Whitespace found at end of line Open
$response=$db->query("SELECT * FROM events_listing WHERE event_leader_id = $user_id OR event_type = 'Chapter'");
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Expected 1 space after closing parenthesis; found 10 Open
if($result['event_type'] == 'Regular Service')
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$new = "INSERT INTO recorded_hours (user_id,month,day,year,date,semester,description,hours,servicetype,event,youth) VALUES ($user_id,1,1,2017,0,'Spring 2017','$desc',$hrs,'$svc_type','$event_name',$yth)";
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$subbed = $db->query($new) or die("Submit Failed");
- Exclude checks
Whitespace found at end of line Open
$subbed = $db->query($new) or die("Submit $d Failed");
- Exclude checks
Expected 1 space after WHILE keyword; 0 found Open
while($result=mysqli_fetch_array($response))
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
if ($daily['closed'] == 0)
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
}
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$cancel = "<sup><a href='leader_list.php?uncancel=$eid'>Uncancel?</a></sup>";
- Exclude checks
Whitespace found at end of line Open
{
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
}
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$hrs = $gens['S_val'];
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
else
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 12 Open
$submit = "submitted";
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$svc_type = $dts['service_type'];
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 4 Open
$new = "INSERT INTO recorded_hours (user_id,month,day,year,date,semester,description,hours,servicetype,event,youth) VALUES($n_id,1,1,2017,0,'Spring 2017','$desc',$hrs,'$svc_type','$event_name',$yth)";
- Exclude checks
Opening brace should be on a new line Open
function show_active() {
- Exclude checks
Expected 1 space after closing parenthesis; found 10 Open
if ($daily['cancel'] == 0)
- Exclude checks
Whitespace found at end of line Open
{
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$cap = $gens['event_cap'];
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$sql = "UPDATE regular_service_details SET closed=1 WHERE event_id=$entry LIMIT 1";
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
{
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
{
- Exclude checks
Expected 1 space after ELSE keyword; newline found Open
else
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
for ( $d=1; $d<=$cap; $d++)
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
if (isset($sg['user_id'])) //if someone is signed up in this factor
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
{
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Usage of ELSE IF is discouraged; use ELSEIF instead Open
else if (isset($_GET['open'])) {
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
else
- Exclude checks
Expected 1 space after WHILE keyword; 0 found Open
while($aresult=mysqli_fetch_array($aresponse))
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$event_name = $gens['event_name'];
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 8 Open
}
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
{
- Exclude checks
The variable $n_id is not named in camelCase. Open
function submit_event($entry) {
include ('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$wresponse=$db->query("SELECT week_cd FROM week 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 $current_semester is not named in camelCase. Open
function show_active() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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 submit_event($entry) {
include ('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$wresponse=$db->query("SELECT week_cd FROM week 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 $current_semester is not named in camelCase. Open
function show_active() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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 $week_cd is not named in camelCase. Open
function show_active() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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 $week_cd is not named in camelCase. Open
function submit_event($entry) {
include ('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$wresponse=$db->query("SELECT week_cd FROM week 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 $week_cd is not named in camelCase. Open
function submit_event($entry) {
include ('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$wresponse=$db->query("SELECT week_cd FROM week 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 $n_id is not named in camelCase. Open
function submit_event($entry) {
include ('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$wresponse=$db->query("SELECT week_cd FROM week 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 show_active() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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 $event_name is not named in camelCase. Open
function submit_event($entry) {
include ('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$wresponse=$db->query("SELECT week_cd FROM week 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 $event_name is not named in camelCase. Open
function submit_event($entry) {
include ('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$wresponse=$db->query("SELECT week_cd FROM week 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 $svc_type is not named in camelCase. Open
function submit_event($entry) {
include ('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$wresponse=$db->query("SELECT week_cd FROM week 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 $svc_type is not named in camelCase. Open
function submit_event($entry) {
include ('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$wresponse=$db->query("SELECT week_cd FROM week 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 submit_event($entry) {
include ('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$wresponse=$db->query("SELECT week_cd FROM week 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 show_active() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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() {
echo "<h1>Events you are leading:</h1>";
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
- 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 $week_cd is not named in camelCase. Open
function submit_event($entry) {
include ('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$wresponse=$db->query("SELECT week_cd FROM week 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 $svc_type is not named in camelCase. Open
function submit_event($entry) {
include ('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$wresponse=$db->query("SELECT week_cd FROM week 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 $event_name is not named in camelCase. Open
function submit_event($entry) {
include ('mysql_access.php');
$user_id = $_SESSION['sessionID'];
$wresponse=$db->query("SELECT week_cd FROM week 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();
}
}