Method recorded_hours
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
function recorded_hours(){
include('mysql_access.php');
global $current_semester;
//this is shit code. could be written in OOP.
// not shit code INVENTIVE code.
Function recorded_hours
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
function recorded_hours(){
include('mysql_access.php');
global $current_semester;
//this is shit code. could be written in OOP.
// not shit code INVENTIVE code.
- 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
Avoid using undefined variables such as '$toProcessLen' which will lead to PHP notices. Open
$toProcessLen[] = $length;
- 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 '$toProcessUID' which will lead to PHP notices. Open
$toProcessUID[] = $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 '$toProcessOID' which will lead to PHP notices. Open
$size = count($toProcessOID);
- 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 '$toProcessOID' which will lead to PHP notices. Open
$size = count($toProcessOID);
- 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 '$toProcessDID' which will lead to PHP notices. Open
WHERE d.detail_id = ".$toProcessDID[$i];
- 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 '$toProcessOID' which will lead to PHP notices. Open
$size = count($toProcessOID);
- 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 '$toProcessUID' which will lead to PHP notices. Open
$sql = "UPDATE service_attendance SET processed = 2 WHERE user_id = ".$toProcessUID[$i]." AND occurrence_id = ".$toProcessOID[$i];
- 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 '$month' which will lead to PHP notices. Open
VALUES (".$toProcessUID[$i].",".$month[$i].",".$day[$i].",".$year[$i].",'".$theDate[$i]."','".$current_semester."','auto-logged item #".$toProcessOID[$i]."',".$toProcessLen[$i].",
- 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 '$theDate' which will lead to PHP notices. Open
VALUES (".$toProcessUID[$i].",".$month[$i].",".$day[$i].",".$year[$i].",'".$theDate[$i]."','".$current_semester."','auto-logged item #".$toProcessOID[$i]."',".$toProcessLen[$i].",
- 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 '$name' which will lead to PHP notices. Open
$name[] = $r['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 '$day' which will lead to PHP notices. Open
VALUES (".$toProcessUID[$i].",".$month[$i].",".$day[$i].",".$year[$i].",'".$theDate[$i]."','".$current_semester."','auto-logged item #".$toProcessOID[$i]."',".$toProcessLen[$i].",
- 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
$result = $db->query($sql);
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$db' which will lead to PHP notices. Open
$result = $db->query($sql1);
- 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 '$theDate' which will lead to PHP notices. Open
$theDate[] = $r['theDate'];
- 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 '$servicetype' which will lead to PHP notices. Open
'".$servicetype[$i]."','".$name[$i]."')";
- 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 '$toProcessOID' which will lead to PHP notices. Open
$toProcessOID[] = $occurrence_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 '$toProcessOID' which will lead to PHP notices. Open
$sql = "SELECT theDate FROM service_occurrence WHERE occurrence_id = ".$toProcessOID[$i];
- 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 '$year' which will lead to PHP notices. Open
VALUES (".$toProcessUID[$i].",".$month[$i].",".$day[$i].",".$year[$i].",'".$theDate[$i]."','".$current_semester."','auto-logged item #".$toProcessOID[$i]."',".$toProcessLen[$i].",
- 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 '$toProcessOID' which will lead to PHP notices. Open
VALUES (".$toProcessUID[$i].",".$month[$i].",".$day[$i].",".$year[$i].",'".$theDate[$i]."','".$current_semester."','auto-logged item #".$toProcessOID[$i]."',".$toProcessLen[$i].",
- 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 '$toProcessUID' which will lead to PHP notices. Open
VALUES (".$toProcessUID[$i].",".$month[$i].",".$day[$i].",".$year[$i].",'".$theDate[$i]."','".$current_semester."','auto-logged item #".$toProcessOID[$i]."',".$toProcessLen[$i].",
- 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
$result = $db->query($sql);
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$toProcessLen' which will lead to PHP notices. Open
VALUES (".$toProcessUID[$i].",".$month[$i].",".$day[$i].",".$year[$i].",'".$theDate[$i]."','".$current_semester."','auto-logged item #".$toProcessOID[$i]."',".$toProcessLen[$i].",
- 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 '$day' which will lead to PHP notices. Open
$day[] = substr($r['theDate'],-2);
- 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 '$servicetype' which will lead to PHP notices. Open
$servicetype[] = $r['servicetype'];
- 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 '$name' which will lead to PHP notices. Open
'".$servicetype[$i]."','".$name[$i]."')";
- 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
$result = $db->query($sql);
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$toProcessOID' which will lead to PHP notices. Open
$sql = "UPDATE service_attendance SET processed = 2 WHERE user_id = ".$toProcessUID[$i]." AND occurrence_id = ".$toProcessOID[$i];
- 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
$result = $db->query($sql);
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$month' which will lead to PHP notices. Open
$month[] = substr($r['theDate'],-5,2);
- 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 '$toProcessDID' which will lead to PHP notices. Open
$toProcessDID[] = $detail_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 '$year' which will lead to PHP notices. Open
$year[] = substr($r['theDate'],0,4);
- 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
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 5 and the first side effect is on line 2. Open
<?php
- Exclude checks
Avoid variables with short names like $r. Configured minimum length is 3. Open
while($r = mysqli_fetch_array($result)){
- 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
Line exceeds 120 characters; contains 134 characters Open
$sql = "UPDATE service_attendance SET processed = 2 WHERE user_id = ".$toProcessUID[$i]." AND occurrence_id = ".$toProcessOID[$i];
- Exclude checks
Line exceeds 120 characters; contains 123 characters Open
$sql1 = "INSERT INTO recorded_hours (user_id, month, day, year, date, semester, description, hours, servicetype, event)
- Exclude checks
Line exceeds 120 characters; contains 187 characters Open
VALUES (".$toProcessUID[$i].",".$month[$i].",".$day[$i].",".$year[$i].",'".$theDate[$i]."','".$current_semester."','auto-logged item #".$toProcessOID[$i]."',".$toProcessLen[$i].",
- Exclude checks
Space before opening parenthesis of function call prohibited Open
require_once ('session.php');
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$length = $r['length'];
- Exclude checks
Opening brace should be on a new line Open
function recorded_hours(){
- Exclude checks
Expected 1 space after WHILE keyword; 0 found Open
while($r = mysqli_fetch_array($result)){
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$occurrence_id = $r['occurrence_id'];
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
include('mysql_access.php');
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$sql = "SELECT user_id, detail_id, occurrence_id, length FROM service_attendance WHERE processed = 1";
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
global $current_semester;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$toProcessOID[] = $occurrence_id;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$toProcessLen[] = $length;
- Exclude checks
Expected 1 space after closing parenthesis; found 0 Open
while($r = mysqli_fetch_array($result)){
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$size = count($toProcessOID);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$toProcessDID[] = $detail_id;
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$detail_id = $r['detail_id'];
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$result = $db->query($sql);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$toProcessUID[] = $user_id;
- Exclude checks
Space before opening parenthesis of function call prohibited Open
require_once ('mysql_access.php');
- Exclude checks
Expected 1 space after FOR keyword; 0 found Open
for($i = 0; $i < $size; $i++){
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
while($r = mysqli_fetch_array($result)){
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$user_id = $r['user_id'];
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
for($i = 0; $i < $size; $i++){
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$sql = "SELECT theDate FROM service_occurrence WHERE occurrence_id = ".$toProcessOID[$i];
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Expected 1 space after closing parenthesis; found 0 Open
for($i = 0; $i < $size; $i++){
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 6 Open
$theDate[] = $r['theDate'];
- Exclude checks
Expected 1 space after FOR keyword; 0 found Open
for($i = 0; $i < $size; $i++){
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 6 Open
$day[] = substr($r['theDate'],-2);
- Exclude checks
No space found after comma in function call Open
$day[] = substr($r['theDate'],-2);
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
for($i = 0; $i < $size; $i++){
- Exclude checks
No space found after comma in function call Open
$month[] = substr($r['theDate'],-5,2);
- Exclude checks
No space found after comma in function call Open
$year[] = substr($r['theDate'],0,4);
- Exclude checks
Expected 1 space after closing parenthesis; found 0 Open
for($i = 0; $i < $size; $i++){
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$sql = "SELECT d.length, e.name, e.servicetype
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
if(!$result){
- Exclude checks
Expected 1 space after WHILE keyword; 0 found Open
while($r = mysqli_fetch_array($result)){
- Exclude checks
Expected 1 space after closing parenthesis; found 0 Open
while($r = mysqli_fetch_array($result)){
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 6 Open
echo("something went wrong, contact the webmaster");
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
while($r = mysqli_fetch_array($result)){
- Exclude checks
No space found after comma in function call Open
$year[] = substr($r['theDate'],0,4);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 6 Open
$name[] = $r['name'];
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$result = $db->query($sql);
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
}
- Exclude checks
Expected 1 space after IF keyword; 0 found Open
if(!$result){
- Exclude checks
A closing tag is not permitted at the end of a PHP file Open
?>
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 6 Open
$month[] = substr($r['theDate'],-5,2);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 6 Open
$year[] = substr($r['theDate'],0,4);
- Exclude checks
Expected 1 space after closing parenthesis; found 0 Open
for($i = 0; $i < $size; $i++){
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 6 Open
$servicetype[] = $r['servicetype'];
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$sql = "UPDATE service_attendance SET processed = 2 WHERE user_id = ".$toProcessUID[$i]." AND occurrence_id = ".$toProcessOID[$i];
- Exclude checks
Expected 1 space after closing parenthesis; found 0 Open
if(!$result){
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$size = count($toProcessOID);
- Exclude checks
Expected 1 space after closing parenthesis; found 0 Open
while($r = mysqli_fetch_array($result)){
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
for($i = 0; $i < $size; $i++){
- Exclude checks
No space found after comma in function call Open
$month[] = substr($r['theDate'],-5,2);
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
$size = count($toProcessOID);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$sql1 = "INSERT INTO recorded_hours (user_id, month, day, year, date, semester, description, hours, servicetype, event)
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$result = $db->query($sql1);
- Exclude checks
Expected 1 space after FOR keyword; 0 found Open
for($i = 0; $i < $size; $i++){
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
while($r = mysqli_fetch_array($result)){
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$result = $db->query($sql);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
$result = $db->query($sql);
- Exclude checks
Expected 1 space after WHILE keyword; 0 found Open
while($r = mysqli_fetch_array($result)){
- Exclude checks
The variable $user_id is not named in camelCase. Open
function recorded_hours(){
include('mysql_access.php');
global $current_semester;
//this is shit code. could be written in OOP.
// not shit code INVENTIVE code.
- 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 $occurrence_id is not named in camelCase. Open
function recorded_hours(){
include('mysql_access.php');
global $current_semester;
//this is shit code. could be written in OOP.
// not shit code INVENTIVE code.
- 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 recorded_hours(){
include('mysql_access.php');
global $current_semester;
//this is shit code. could be written in OOP.
// not shit code INVENTIVE code.
- 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 $occurrence_id is not named in camelCase. Open
function recorded_hours(){
include('mysql_access.php');
global $current_semester;
//this is shit code. could be written in OOP.
// not shit code INVENTIVE code.
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $current_semester is not named in camelCase. Open
function recorded_hours(){
include('mysql_access.php');
global $current_semester;
//this is shit code. could be written in OOP.
// not shit code INVENTIVE code.
- 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 $detail_id is not named in camelCase. Open
function recorded_hours(){
include('mysql_access.php');
global $current_semester;
//this is shit code. could be written in OOP.
// not shit code INVENTIVE code.
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $current_semester is not named in camelCase. Open
function recorded_hours(){
include('mysql_access.php');
global $current_semester;
//this is shit code. could be written in OOP.
// not shit code INVENTIVE code.
- 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 $detail_id is not named in camelCase. Open
function recorded_hours(){
include('mysql_access.php');
global $current_semester;
//this is shit code. could be written in OOP.
// not shit code INVENTIVE code.
- 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();
}
}