display accesses the super-global variable $_SESSION. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
- 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
print_daily accesses the super-global variable $_SESSION. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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() {
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
if (isset($_GET['delete'])) {
- 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() {
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
if (isset($_GET['delete'])) {
- 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 $_POST. Open
function show_active() {
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
if (isset($_GET['delete'])) {
- 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 $_POST. Open
function show_active() {
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
if (isset($_GET['delete'])) {
- 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() {
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
if (isset($_GET['delete'])) {
- 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
has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
- 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
has 143 lines of code (exceeds 25 allowed). Consider refactoring. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
Function print_daily
has a Cognitive Complexity of 29 (exceeds 5 allowed). Consider refactoring. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 print_daily
has 98 lines of code (exceeds 25 allowed). Consider refactoring. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
File event_signup.php
has 310 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 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
function show_active() {
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
if (isset($_GET['delete'])) {
The function print_daily() has 117 lines of code. Current threshold is set to 100. Avoid really long methods. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- Exclude checks
The function display() has 167 lines of code. Current threshold is set to 100. Avoid really long methods. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
- Exclude checks
The function print_daily() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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() has a Cyclomatic Complexity of 28. The configured cyclomatic complexity threshold is 10. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
- 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
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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=$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
$info=$db->query("SELECT firstname,lastname,phone FROM contact_information WHERE id=$fid");
- 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
$lsearch=$db->query("SELECT firstname,lastname,phone FROM contact_information WHERE id=$d_lead");
- 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
$fsearch=$db->query("SELECT user_id,drive,entry_id FROM events_signup WHERE event_id=$id AND Factor=$c AND week=$week_cd AND day='$day'");
- 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
$already=$db->query("SELECT user_id FROM events_signup WHERE event_id=$id AND week=$week_cd AND day='$day' AND user_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
$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
$info=$db->query("SELECT firstname,lastname,phone FROM contact_information WHERE id=$fid");
- 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
$yresponse=$db->query("SELECT firstname,lastname,email FROM contact_information WHERE id='$l_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
$response=$db->query("SELECT * FROM events_listing WHERE event_id = $event");
- 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 user_id FROM events_signup WHERE event_id = $event AND 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
$vesponse=$db->query("SELECT firstname,lastname,email FROM contact_information WHERE position = 'Recording Secretary' 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
$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
$xresponse=$db->query("SELECT * FROM events_listing WHERE event_type='$event_type' ORDER BY event_name");
- 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
$xresponse=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 COUNT(user_id) FROM events_signup WHERE event_id = $event");
- 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 print_daily uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
{
$already=$db->query("SELECT user_id FROM events_signup WHERE event_id=$id AND week=$week_cd AND day='$day' AND user_id=$uid");
$a_sign=mysqli_fetch_array($already);
if (isset($a_sign['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 print_daily uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
{
$info=$db->query("SELECT firstname,lastname,phone FROM contact_information WHERE id=$fid");
$i=mysqli_fetch_array($info);
$i_num = $i['phone'];
$i_name = $i['firstname'] . " " . $i['lastname'];
- 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 print_daily uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
{
$i_name = "open";
$i_num = "";
$i_drive = "";
}
- 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 uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
{
if ($event_type != "All")
{
$xresponse=$db->query("SELECT * FROM events_listing WHERE event_type='$event_type' ORDER BY event_name");
- 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 uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
{
$l_name = $yresult['firstname'] . " " . $yresult['lastname'];
$l_email = $yresult['email'];
}
- 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 uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
{
$xresponse=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
}
- 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 uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
{
if ($result['event_type'] == 'Chapter')
{
//pull rec sec info
- 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
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 '$page'. Open
$page = null;
- 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 '$user_id'. Open
$user_id = $_SESSION['sessionID'];
- 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 28 and the first side effect is on line 2. Open
<?php
- Exclude checks
The parameter $event_type is not named in camelCase. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
- 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
$i=mysqli_fetch_array($info);
- 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 $id. Configured minimum length is 3. Open
$id = $general['event_id'];
- 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
Spaces must be used for alignment; tabs are not allowed Open
$factor=mysqli_fetch_array($fsearch);
- 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
$d_desc = $general['event_description'];
- 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
$i=mysqli_fetch_array($info);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$i_num = $i['phone'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$l_num = $leader_d['phone'];
- 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
$info=$db->query("SELECT firstname,lastname,phone FROM contact_information WHERE id=$fid");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$name = $general['event_name'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//allow delete
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$i_name = $i['firstname'] . " " . $i['lastname'];
- 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
$d_time = $daily['time'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$i_num = "<sup><a href='event_signup.php?delete=$entr_id'>Delete?</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
echo "<tr><td>$c. $i_name</td><td>$i_num</td><td>$i_drive</td></tr>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if ($event_type == "Regular")
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
case 8:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$week = "3/5/2017";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<h3>Sunday</h3>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
else if ($result['closed'] == 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
<input type="hidden" name="user" value="<?php echo htmlspecialchars($user_id); ?>">
- 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
delete_event($entr_id);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<select name='type_set' onchange="this.form.submit()">
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
{
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
for ( $c=1; $c<=$cap; $c++ )
- 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 "Displaying " . $event_type . " Events";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
switch($week_cd) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//get general details
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<h3>Monday</h3>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
print_daily('monday');
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$response=$db->query("SELECT user_id FROM events_signup WHERE event_id = $event AND user_id = $user_id");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//check if already signed up
- 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
<!--<option value='Regular'>Regular Service</option>
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "True" Open
$active_page = True;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//print details
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$name = $general['event_name'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if ($uid == $fid)
- Exclude checks
Blank line found at end of control structure 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
case 3:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
break;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
case 9:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
break;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
case 10:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$week = "4/9/2017";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
break;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$week = "4/23/2017";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
break;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
print_daily('friday');
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$yresponse=$db->query("SELECT firstname,lastname,email FROM contact_information WHERE id='$l_id'");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if (($result['event_cap'] <= $count) && ($count != 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
</table>
- 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
</form>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$cap = $general['event_cap'];
- Exclude checks
Space found before closing bracket of FOR loop Open
for ( $c=1; $c<=$cap; $c++ )
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$info=$db->query("SELECT firstname,lastname,phone FROM contact_information WHERE id=$fid");
- 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
$week = "3/19/2017";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
print_daily('sunday');
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<h3>Wednesday</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
else
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$event = $result['event_id'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$response=$db->query("SELECT * FROM events_listing WHERE event_id = $event");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$response=$db->query("SELECT COUNT(user_id) FROM events_signup WHERE event_id = $event");
- 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
for ( $c=1; $c<=$cap; $c++ )
- 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
{
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$eid = $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
break;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
case 17:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
break;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
print_daily('saturday');
- 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
$xresponse=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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
$signed=mysqli_fetch_array($response);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$event_type = "none";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if(isset($_POST['type_set']))
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$i_drive = $factor['drive'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$already=$db->query("SELECT user_id FROM events_signup WHERE event_id=$id AND week=$week_cd AND day='$day' AND user_id=$uid");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if ($show)
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$i_name= '
- 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
$week = "1/22/2017";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
break;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$week = "2/12/2017";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
case 12:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
break;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
break;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
case 11:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
case 18:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
while($result=mysqli_fetch_array($xresponse))
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//create a table entry
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<h3>Thursday</h3>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//pull rec sec info
- 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
$l_name = $vesult['firstname'] . " " . $vesult['lastname'];
- 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
$l_name = $yresult['firstname'] . " " . $yresult['lastname'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<tr><td><input type="submit" name="submit" value="signup"/></td><th><?= $result['event_type'] ?> Event : <?= $result['event_name'] ?></th> <td colspan="3">Leader : <?= $l_name ?> </td></tr>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
</form>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<form name="myform" action="" method="post">
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<option value='All'>All</option>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
display($event_type);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$week = "1/29/2017";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
case 5:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
case 7:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
break;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$xresponse=$db->query("SELECT * FROM events_listing WHERE event_type='$event_type' ORDER BY event_name");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$l_id = $result['event_leader_id'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$result=mysqli_fetch_array($response);
- Exclude checks
Blank line found at start of control structure Open
{
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$vesponse=$db->query("SELECT firstname,lastname,email FROM contact_information WHERE position = 'Recording Secretary' LIMIT 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
$entr_id = $_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
</select>
- 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
$l_name = $leader_d['firstname'] . " " . $leader_d['lastname'];
- Exclude checks
Space found after opening bracket of FOR loop Open
for ( $c=1; $c<=$cap; $c++ )
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$fid = $factor['user_id'];
- 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
$a_sign=mysqli_fetch_array($already);
- 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
$i_drive = "";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
break;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
case 4:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$week = "4/16/2017";
- 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
echo "<h3>Tuesday</h3>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
print_daily('thursday');
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$count = $signed['COUNT(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
$page = null;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<option value='Large Service'>Large Service</option>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$i_drive = $factor['drive'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$show = false;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$week = "2/19/2017";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
break;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$week = "3/26/2017";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//go through capacity
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
case 14:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<h3>Friday</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
{
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$entr_id = $factor['entry_id'];
- 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
- 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
<form method="post" action="event_signup_done.php">
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$week = "4/2/2017";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
break;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<option value='Taskforce'>Taskforce</option>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
case 16:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if (isset($a_sign['user_id']))
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$week = "4/30/2017";
- 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
else
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$l_email = $vesult['email'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$week = "2/26/2017";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<a href='check_requirements.php'>Check your requirements here.</a>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
case 13:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
break;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<option value='null' selected>-- select event type --</option>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
print_daily('wednesday');
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if ($event_type != "All")
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$already=mysqli_fetch_array($response);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
else if (($already['user_id'] == $user_id) && ($result['repeatable'] == 0))
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//check if closed
- 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
<option value='Chapter'>Chapter / Point</option>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if(isset($factor['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
$ename = $general['event_name'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$i_name = "open";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$week = "1/15/2017";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
break;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
case 6:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
break;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<h2>Week of <?php echo $week ?><h2>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
print_daily('tuesday');
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<h3>Saturday</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
$vesult=mysqli_fetch_array($vesponse);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<tr><td><?= $result['event_time'] ?></td><td><?= $result['event_description'] ?></td><td>Email:</td><td colspan="2"><?= $l_email ?></td></tr>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//sets event info section from selection
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
echo "<h1>Event Signups</h1>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//print info for this event, factor c
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$i_drive = $factor['drive'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$i_name = $i['firstname'] . " " . $i['lastname'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
case 1:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
case 2:
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$week = "2/5/2017";
- Exclude checks
Blank line found at end 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
$yresult=mysqli_fetch_array($yresponse);
- 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
$l_email = $yresult['email'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
<input type="hidden" name="event_id" value="<?php echo htmlspecialchars($result['event_id']); ?>">
- 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
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$event_type = $_POST['type_set'];
- 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
<option value='Other'>Other</option> !-->
- 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
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$i=mysqli_fetch_array($info);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$i_drive = "<input type='text' name='drive' value='no'></form>";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$show = false;
- 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
$i_num = "";
- 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
case 15:
- 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
?>
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$S_val = $general['S_val'];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$fsearch=$db->query("SELECT user_id,drive,entry_id FROM events_signup WHERE event_id=$id AND Factor=$c AND week=$week_cd AND day='$day'");
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$i_num = "";
- 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
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
}
- 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
$wres=mysqli_fetch_array($wresponse);
- 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
break;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$week = "3/12/2017";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
break;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$week = "5/7/2017";
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$week = "5/14/2017";
- 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
<div id='day'>
- Exclude checks
Blank line found at start of control structure Open
{
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
//check if full
- 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['event_type'] == 'Chapter')
- 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
<input type="hidden" name="event_name" value="<?php echo htmlspecialchars($result['event_name']); ?>">
- 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 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
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$wres=mysqli_fetch_array($wresponse);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$show = true;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$cancel = $daily['cancel'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
while($general=mysqli_fetch_array($gen))
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$wresponse=$db->query("SELECT week_cd FROM week LIMIT 1");
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$close = $daily['closed'];
- Exclude checks
Line exceeds 120 characters; contains 153 characters Open
<tr><td><?= $result['event_time'] ?></td><td><?= $result['event_description'] ?></td><td>Email:</td><td colspan="2"><?= $l_email ?></td></tr>
- Exclude checks
Line exceeds 120 characters; contains 148 characters Open
$vesponse=$db->query("SELECT firstname,lastname,email FROM contact_information WHERE position = 'Recording Secretary' LIMIT 1");
- 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
$week_cd = $wres['week_cd'];
- 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
$id = $general['event_id'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$leader_d=mysqli_fetch_array($lsearch);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$d_lead = $general['event_leader_id'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$daily=mysqli_fetch_array($dsearch);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$uid = $_SESSION['sessionID'];
- Exclude checks
Line exceeds 120 characters; contains 158 characters Open
$fsearch=$db->query("SELECT user_id,drive,entry_id FROM events_signup WHERE event_id=$id AND Factor=$c AND week=$week_cd AND day='$day'");
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$dsearch=$db->query("SELECT * FROM regular_service_details WHERE event_id=$id");
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
{
- Exclude checks
Line exceeds 120 characters; contains 150 characters Open
$already=$db->query("SELECT user_id FROM events_signup WHERE event_id=$id AND week=$week_cd AND day='$day' AND user_id=$uid");
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
$lsearch=$db->query("SELECT firstname,lastname,phone FROM contact_information WHERE id=$d_lead");
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
if (($daily[$day] == 1) && (!$cancel) && (!$close))
- Exclude checks
Line exceeds 120 characters; contains 201 characters Open
<tr><td><input type="submit" name="submit" value="signup"/></td><th><?= $result['event_type'] ?> Event : <?= $result['event_name'] ?></th> <td colspan="3">Leader : <?= $l_name ?> </td></tr>
- Exclude checks
Space before opening parenthesis of function call prohibited Open
require_once ('session.php');
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
for ( $c=1; $c<=$cap; $c++ )
- Exclude checks
Expected 1 space after WHILE keyword; 0 found Open
while($general=mysqli_fetch_array($gen))
- Exclude checks
Space before opening parenthesis of function call prohibited Open
include ('mysql_access.php');
- Exclude checks
Whitespace found at end of line Open
while($general=mysqli_fetch_array($gen))
- 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
Opening brace should be on a new line Open
function delete_event($entry) {
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 0 Open
echo <<<END
- Exclude checks
Expected 1 space after IF keyword; 0 found Open
if(isset($factor['user_id']))
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 24 Open
else
- Exclude checks
Expected 1 space after ELSE keyword; newline found Open
else
- Exclude checks
Expected 1 space after closing parenthesis; found 11 Open
if (($daily[$day] == 1) && (!$cancel) && (!$close))
- Exclude checks
Whitespace found at end of line Open
{
- Exclude checks
Whitespace found at end of line Open
$i_drive = $factor['drive'];
- Exclude checks
Whitespace found at end of line Open
{
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
else
- Exclude checks
Usage of ELSE IF is discouraged; use ELSEIF instead Open
else if (($already['user_id'] == $user_id) && ($result['repeatable'] == 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
while($general=mysqli_fetch_array($gen))
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 24 Open
if ($uid == $fid)
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 20 Open
else
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
case 6:
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
case 18:
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 20 Open
}
- Exclude checks
Expected 1 space after ELSE keyword; newline found Open
else
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
}
- Exclude checks
Expected 1 space after ELSE keyword; newline found Open
else
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
}
- Exclude checks
Whitespace found at end of line Open
else
- Exclude checks
Expected 1 space after closing parenthesis; found 26 Open
if ($show)
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
case 8:
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
case 14:
- Exclude checks
Expected 1 space after closing parenthesis; found 6 Open
if(isset($_POST['type_set']))
- Exclude checks
Opening brace should be on a new line Open
function print_daily($day) {
- Exclude checks
Expected 1 space after closing parenthesis; found 14 Open
for ( $c=1; $c<=$cap; $c++ )
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
case 15:
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
case 16:
- 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
Expected 1 space after closing parenthesis; found 22 Open
if(isset($factor['user_id']))
- Exclude checks
Expected 1 space after closing parenthesis; found 27 Open
if (isset($a_sign['user_id']))
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
case 2:
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 12 Open
switch($week_cd) {
- Exclude checks
Expected 1 space after closing parenthesis; found 10 Open
if ($event_type != "All")
- Exclude checks
Expected 1 space after closing parenthesis; found 11 Open
while($result=mysqli_fetch_array($xresponse))
- Exclude checks
Expected 1 space after ELSE keyword; newline found Open
else
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 24 Open
if (isset($a_sign['user_id']))
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
case 10:
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
}
- Exclude checks
Whitespace found at end of line Open
{
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 24 Open
}
- Exclude checks
Whitespace found at end of line Open
if (isset($a_sign['user_id']))
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 24 Open
else
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 0 Open
echo <<<END
- Exclude checks
Whitespace found at end of line Open
$name = $general['event_name'];
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
case 4:
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 20 Open
if(isset($factor['user_id']))
- Exclude checks
Expected 1 space after closing parenthesis; found 14 Open
else if ($result['closed'] == 1)
- Exclude checks
Expected 1 space after ELSE keyword; newline found Open
else
- Exclude checks
Whitespace found at end of line Open
$show = false;
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 24 Open
}
- Exclude checks
Line indented incorrectly; expected 16 spaces, found 20 Open
}
- Exclude checks
Expected 1 space after closing parenthesis; found 14 Open
else if (($already['user_id'] == $user_id) && ($result['repeatable'] == 0))
- Exclude checks
Opening brace should be on a new line Open
function display($event_type) {
- Exclude checks
Usage of ELSE IF is discouraged; use ELSEIF instead Open
else if ($result['closed'] == 1)
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
if ($event_type == "Regular")
- Exclude checks
Expected 1 space after closing parenthesis; found 18 Open
if ($result['event_type'] == 'Chapter')
- Exclude checks
Expected 1 space after WHILE keyword; 0 found Open
while($result=mysqli_fetch_array($xresponse))
- Exclude checks
Expected 1 space after closing parenthesis; found 14 Open
if (($result['event_cap'] <= $count) && ($count != 0))
- 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
Whitespace found at end of line Open
if (($daily[$day] == 1) && (!$cancel) && (!$close))
- Exclude checks
Expected 1 space after closing parenthesis; found 26 Open
if ($uid == $fid)
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 24 Open
}
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
case 1:
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
case 5:
- Exclude checks
Opening brace should be on a new line Open
function show_active() {
- Exclude checks
Expected 1 space after IF keyword; 0 found Open
if(isset($_POST['type_set']))
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
case 13:
- 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
Line indented incorrectly; expected 20 spaces, found 24 Open
}
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 24 Open
if ($show)
- Exclude checks
Expected 1 space after SWITCH keyword; 0 found Open
switch($week_cd) {
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
case 3:
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
case 7:
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
case 11:
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
case 17:
- Exclude checks
Whitespace found at end of line Open
while($result=mysqli_fetch_array($xresponse))
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
Line indented incorrectly; expected 20 spaces, found 24 Open
}
- Exclude checks
Expected 1 space after closing parenthesis; found 10 Open
if ($event_type == "Regular")
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
case 9:
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
case 12:
- Exclude checks
Expected 1 space after closing brace; newline found Open
}
- Exclude checks
The variable $i_name is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $l_num is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $l_num is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $l_id is not named in camelCase. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
- 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 $i_name is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $i_drive is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
- 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 $entr_id is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $i_num is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $d_time is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $i_drive is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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_d is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $i_num is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $i_name is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $i_name is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $l_name is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $entr_id is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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_d is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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_type is not named in camelCase. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
- 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 $d_time is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $a_sign is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $i_drive is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $l_name is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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_d is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $i_num is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $i_num is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $d_lead is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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_d is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $S_val is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $d_desc is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $S_val is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $d_desc is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $i_drive is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $i_name is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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_type is not named in camelCase. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
- 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 print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $i_drive is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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_type is not named in camelCase. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
- 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 display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
- 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_type is not named in camelCase. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
- 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 $d_lead is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $a_sign is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 $i_num is not named in camelCase. Open
function print_daily($day) {
include('mysql_access.php');
$gen=$db->query("SELECT * FROM events_listing WHERE event_type='Regular' ORDER BY event_name");
- 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 display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
- 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 $entr_id is not named in camelCase. Open
function show_active() {
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
if (isset($_GET['delete'])) {
- 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_type is not named in camelCase. Open
function show_active() {
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
if (isset($_GET['delete'])) {
- 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_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
- 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 $l_id is not named in camelCase. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
- 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 $l_email is not named in camelCase. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
- 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_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
- 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() {
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
if (isset($_GET['delete'])) {
- 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_type is not named in camelCase. Open
function show_active() {
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
if (isset($_GET['delete'])) {
- 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 $l_name is not named in camelCase. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
- 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 $l_name is not named in camelCase. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
- 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 $l_email is not named in camelCase. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
- 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 $l_email is not named in camelCase. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
- 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 $entr_id is not named in camelCase. Open
function show_active() {
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
if (isset($_GET['delete'])) {
- 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 $l_name is not named in camelCase. Open
function display($event_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
- 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_type) {
include('mysql_access.php');
$user_id = $_SESSION['sessionID'];
echo "Displaying " . $event_type . " Events";
- 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_type is not named in camelCase. Open
function show_active() {
$user_id = $_SESSION['sessionID'];
include('mysql_access.php');
if (isset($_GET['delete'])) {
- 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();
}
}