AppStateESS/InternshipInventory

View on GitHub

Showing 6,675 of 6,675 total issues

The variable $middle_name is not named in camelCase.
Open

function get_row()
{
    $first_name = first_name();
    $middle_name = middle_name($first_name);
    $last_name = last_name();
Severity: Minor
Found in contrib/createFakeStudents.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $last_name is not named in camelCase.
Open

function get_row()
{
    $first_name = first_name();
    $middle_name = middle_name($first_name);
    $last_name = last_name();
Severity: Minor
Found in contrib/createFakeStudents.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $low_range is not named in camelCase.
Open

function dob()
{
    $low_range = floor(17 * 86400 * 365.25);
    $high_range = floor(22 * 86400 * 365.25);
    $unix_dob = time() - mt_rand($low_range, $high_range);
Severity: Minor
Found in contrib/createFakeStudents.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $first_names is not named in camelCase.
Open

function first_name()
{
    static $first_names = array(
        'Abigail',
        'Abigail',
Severity: Minor
Found in contrib/createFakeStudents.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $id_result is not named in camelCase.
Open

function createSupervisor(){
  $query = "SELECT NEXTVAL('intern_supervisor_seq')";
  $id_result = pg_query($query);

  // create new supervisor
Severity: Minor
Found in contrib/importInternships.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $dsn_string is not named in camelCase.
Open

function get_dsn()
{
    static $dsn_string;

    if (empty($dsn_string)) {
Severity: Minor
Found in contrib/createFakeStudents.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $dsn_array is not named in camelCase.
Open

function get_username()
{
    $dsn_array = dsn_array();
    return $dsn_array['dbuser'];
}
Severity: Minor
Found in contrib/createFakeStudents.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $first_colon is not named in camelCase.
Open

function dsn_array()
{
    static $dsn_array = null;

    if (!empty($dsn_array)) {
Severity: Minor
Found in contrib/createFakeStudents.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $at_sign is not named in camelCase.
Open

function dsn_array()
{
    static $dsn_array = null;

    if (!empty($dsn_array)) {
Severity: Minor
Found in contrib/createFakeStudents.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $third_colon is not named in camelCase.
Open

function dsn_array()
{
    static $dsn_array = null;

    if (!empty($dsn_array)) {
Severity: Minor
Found in contrib/createFakeStudents.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $first_name is not named in camelCase.
Open

function insert_rows($number_of_students)
{
    $db = get_connection();

    for ($i = 0; $i < $number_of_students; $i++) {
Severity: Minor
Found in contrib/createFakeStudents.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $middle_name is not named in camelCase.
Open

function create_autocomplete_query($row)
{
    extract($row);

    $lfirst = strtolower($first_name);
Severity: Minor
Found in contrib/createFakeStudents.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $high_range is not named in camelCase.
Open

function dob()
{
    $low_range = floor(17 * 86400 * 365.25);
    $high_range = floor(22 * 86400 * 365.25);
    $unix_dob = time() - mt_rand($low_range, $high_range);
Severity: Minor
Found in contrib/createFakeStudents.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $last_names is not named in camelCase.
Open

function last_name()
{
    static $last_names = array(
        'Acula',
        'Achenbach',
Severity: Minor
Found in contrib/createFakeStudents.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $first_name is not named in camelCase.
Open

function nickname($first_name)
{
    $shortened = array(
        'Abigail' => 'Abby',
        'Alexander' => 'Alex',
Severity: Minor
Found in contrib/createFakeStudents.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $id_result is not named in camelCase.
Open

function createInternship($db, $values) {
  $query = "SELECT NEXTVAL('intern_internship_seq')";
  $id_result = pg_query($query);

  // create new organization
Severity: Minor
Found in contrib/importInternships.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $id_result is not named in camelCase.
Open

function createInternship($db, $values) {
  $query = "SELECT NEXTVAL('intern_internship_seq')";
  $id_result = pg_query($query);

  // create new organization
Severity: Minor
Found in contrib/importInternships.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $number_of_students is not named in camelCase.
Open

function process($arguments)
{
    $dump_data = false;

    array_shift($arguments);
Severity: Minor
Found in contrib/createFakeStudents.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $dsn_array is not named in camelCase.
Open

function get_username()
{
    $dsn_array = dsn_array();
    return $dsn_array['dbuser'];
}
Severity: Minor
Found in contrib/createFakeStudents.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $at_sign is not named in camelCase.
Open

function dsn_array()
{
    static $dsn_array = null;

    if (!empty($dsn_array)) {
Severity: Minor
Found in contrib/createFakeStudents.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

Severity
Category
Status
Source
Language