chamilo/chamilo-lms

View on GitHub
public/main/gradebook/lib/fe/exportgradebook.php

Summary

Maintainability
A
0 mins
Test Coverage

The function export_pdf_with_html() has an NPath complexity of 2865. The configured NPath complexity threshold is 200.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

NPathComplexity

Since: 0.1

The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

Example

class Foo {
    function bar() {
        // lots of complicated code
    }
}

Source https://phpmd.org/rules/codesize.html#npathcomplexity

Missing class import via use statement (line '180', column '16').
Open

    $pdf = new PDF();

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

The method export_pdf uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

    } else {
        $pdf->line(40, 540, 790, 540);
        $pdf->line(40, 40, 790, 40);
    }

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 export_pdf_with_html uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Open

        } else {
            $content_table .= '<tr colspan="'.$i.'"><td>'.get_lang('You left some fields empty.<br>Use the <b>Back</b> button on your browser and try again.<br>If you ignore your training code, see the Training Program').'</td></tr>';
        }

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 parameter $header_names is not named in camelCase.
Open

function print_table($data_array, $header_names, $view, $coursename)
{
    $printdata = '<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

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

The parameter $data_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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

The parameter $headers_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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

The parameter $header_names is not named in camelCase.
Open

function export_pdf($pdf, $newarray, $header_names, $format)
{
    $pdf->selectFont(api_get_path(LIBRARY_PATH).'ezpdf/fonts/Courier.afm');
    $pdf->ezSetCmMargins(0, 0, 0, 0);
    $pdf->ezSetY(('portrait' == $format) ? '820' : '570');

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

The parameter $footers_pdf is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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

The parameter $title_pdf is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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

The parameter $headers_pdf is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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

The parameter $data_array is not named in camelCase.
Open

function print_table($data_array, $header_names, $view, $coursename)
{
    $printdata = '<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

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

Variable "header_pdf" is not in valid camel caps format
Open

                $header .= '<tr><td><strong>'.$header_pdf[0].'</strong> </td><td>'.$header_pdf[1].'</td></tr>';

Variable "footers_pdf" is not in valid camel caps format
Open

    array $footers_pdf,

Variable "footers_pdf" is not in valid camel caps format
Open

        foreach ($footers_pdf as $foot_pdf) {

Variable "data_table" is not in valid camel caps format
Open

            $data_table = array_slice($data_table, $offset, count($data_table));

Variable "title_pdf" is not in valid camel caps format
Open

    $pdf->content_to_pdf($header.$content_table, $css, $title_pdf);

Variable "header_pdf" is not in valid camel caps format
Open

                $header .= '<tr><td><strong>'.$header_pdf[0].'</strong> </td><td>'.$header_pdf[1].'</td></tr>';

Variable "content_table" is not in valid camel caps format
Open

                $content_table .= '</tr>';

Variable "content_table" is not in valid camel caps format
Open

            $content_table .= '<tr colspan="'.$i.'"><td>'.get_lang('You left some fields empty.<br>Use the <b>Back</b> button on your browser and try again.<br>If you ignore your training code, see the Training Program').'</td></tr>';

Variable "count_pages" is not in valid camel caps format
Open

        if ($x < ($count_pages - 1)) {

Missing parameter name
Open

 * @param    resource    The PDF object (ezpdf class) used to generate the file

Variable "header_pdf" is not in valid camel caps format
Open

        foreach ($headers_pdf as $header_pdf) {

Variable "data_table" is not in valid camel caps format
Open

    $count_pages = ceil(count($data_table) / $items_per_page);

Variable "content_table" is not in valid camel caps format
Open

                $content_table .= '<tr>';

Variable "content_table" is not in valid camel caps format
Open

                        $content_table .= '<td '.$align.' style="padding:4px;" >'.$content.'</td>';

Missing parameter name
Open

 * @param    array    Array containing the data to be printed in the table

Missing parameter name
Open

 * @param    string    Course name to print as title for the table

Variable "data_array" is not in valid camel caps format
Open

    foreach ($data_array as $data) {

Variable "foot_pdf" is not in valid camel caps format
Open

            $footer .= '<td width="33%" style="text-align: center;">'.$foot_pdf.'</td>';

Variable "headers_table" is not in valid camel caps format
Open

        if (is_array($headers_table)) {

Consider putting global function "export_pdf" in a static class
Open

function export_pdf($pdf, $newarray, $header_names, $format)

Variable "header_names" is not in valid camel caps format
Open

function print_table($data_array, $header_names, $view, $coursename)

Variable "headers_table" is not in valid camel caps format
Open

    array $headers_table,

Variable "data_table" is not in valid camel caps format
Open

    array $data_table,

Variable "header_pdf" is not in valid camel caps format
Open

            if (!empty($header_pdf[0]) && !empty($header_pdf[1])) {

Variable "items_per_page" is not in valid camel caps format
Open

                if ($i > $items_per_page) {

Variable "header_names" is not in valid camel caps format
Open

function export_pdf($pdf, $newarray, $header_names, $format)

Variable "count_pages" is not in valid camel caps format
Open

    $count_pages = ceil(count($data_table) / $items_per_page);

Variable "head_table" is not in valid camel caps format
Open

                    $width = (!empty($head_table[1]) ? $head_table[1].'%' : '');

Missing parameter name
Open

 * @param    array    Table headers

Variable "items_per_page" is not in valid camel caps format
Open

    $items_per_page = 30;

Variable "content_table" is not in valid camel caps format
Open

        $content_table .= '</tr>';

Variable "data_table" is not in valid camel caps format
Open

            $data_table = array_slice($data_table, $offset, count($data_table));

Variable "header_names" is not in valid camel caps format
Open

    $pdf->ezTable($newarray, $header_names, '', [

Variable "content_table" is not in valid camel caps format
Open

    $content_table = '';

Variable "headers_table" is not in valid camel caps format
Open

            foreach ($headers_table as $head_table) {

Variable "head_table" is not in valid camel caps format
Open

                if (!empty($head_table[0])) {

Variable "content_table" is not in valid camel caps format
Open

                    $content_table .= '<th width="'.$width.'">'.$head_table[0].'</th>';

Variable "head_table" is not in valid camel caps format
Open

                    $content_table .= '<th width="'.$width.'">'.$head_table[0].'</th>';

Variable "data_table" is not in valid camel caps format
Open

            foreach ($data_table as $data) {

Consider putting global function "print_table" in a static class
Open

function print_table($data_array, $header_names, $view, $coursename)

Variable "header_pdf" is not in valid camel caps format
Open

            if (!empty($header_pdf[0]) && !empty($header_pdf[1])) {

Variable "content_table" is not in valid camel caps format
Open

        $content_table .= '<table width="100%" border="1" style="border-collapse:collapse">';

Missing parameter name
Open

 * @param    string        Format (portrait or landscape)

Variable "headers_pdf" is not in valid camel caps format
Open

    array $headers_pdf,

Variable "headers_pdf" is not in valid camel caps format
Open

        foreach ($headers_pdf as $header_pdf) {

Variable "head_table" is not in valid camel caps format
Open

                    $width = (!empty($head_table[1]) ? $head_table[1].'%' : '');

Variable "items_per_page" is not in valid camel caps format
Open

    $count_pages = ceil(count($data_table) / $items_per_page);

Variable "content_table" is not in valid camel caps format
Open

                $content_table .= '<td>'.($item < 10 ? '0'.$item : $item).'</td>';

Missing parameter name
Open

 * @param    array        Table headers

Variable "footers_pdf" is not in valid camel caps format
Open

    if (is_array($footers_pdf)) {

Variable "count_pages" is not in valid camel caps format
Open

    for ($x = 0; $x < $count_pages; $x++) {

Variable "items_per_page" is not in valid camel caps format
Open

            $offset = $x * $items_per_page;

Variable "content_table" is not in valid camel caps format
Open

            $content_table .= '<pagebreak />';

Variable "content_table" is not in valid camel caps format
Open

    $pdf->content_to_pdf($header.$content_table, $css, $title_pdf);

Missing parameter name
Open

 * @param    array        The data array

Missing parameter name
Open

 * @param    string    View to print as a title for the table

Variable "title_pdf" is not in valid camel caps format
Open

                            <h1>'.$title_pdf.'</h1></td></tr>';

Variable "content_table" is not in valid camel caps format
Open

        $content_table .= '</table>';

Variable "header_names" is not in valid camel caps format
Open

    foreach ($header_names as $header) {

Variable "headers_pdf" is not in valid camel caps format
Open

    if ($headers_pdf) {

Variable "foot_pdf" is not in valid camel caps format
Open

        foreach ($footers_pdf as $foot_pdf) {

Variable "data_table" is not in valid camel caps format
Open

            $data_table = array_slice($data_table, $offset, count($data_table));

Variable "data_array" is not in valid camel caps format
Open

function print_table($data_array, $header_names, $view, $coursename)

Consider putting global function "export_pdf_with_html" in a static class
Open

function export_pdf_with_html(

Variable "title_pdf" is not in valid camel caps format
Open

    string $title_pdf

Variable "content_table" is not in valid camel caps format
Open

        $content_table .= '<tr>';

Variable "head_table" is not in valid camel caps format
Open

            foreach ($headers_table as $head_table) {

Variable "data_table" is not in valid camel caps format
Open

        if (is_array($data_table) && count($data_table) > 0) {

Variable "data_table" is not in valid camel caps format
Open

        if (is_array($data_table) && count($data_table) > 0) {

The variable $headers_pdf is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $header_pdf is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $header_pdf is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $data_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $headers_pdf is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $data_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $content_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $head_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $data_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $title_pdf is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $content_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $content_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $items_per_page is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $foot_pdf is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $count_pages is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $content_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $content_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $data_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $items_per_page is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $data_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $content_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $header_pdf is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $items_per_page is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $data_array is not named in camelCase.
Open

function print_table($data_array, $header_names, $view, $coursename)
{
    $printdata = '<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

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 $items_per_page is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $head_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $content_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $header_names is not named in camelCase.
Open

function export_pdf($pdf, $newarray, $header_names, $format)
{
    $pdf->selectFont(api_get_path(LIBRARY_PATH).'ezpdf/fonts/Courier.afm');
    $pdf->ezSetCmMargins(0, 0, 0, 0);
    $pdf->ezSetY(('portrait' == $format) ? '820' : '570');

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 $header_pdf is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $footers_pdf is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $headers_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $content_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $head_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $data_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $content_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $content_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $count_pages is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $content_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $header_pdf is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $content_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $headers_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $head_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $data_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $header_names is not named in camelCase.
Open

function print_table($data_array, $header_names, $view, $coursename)
{
    $printdata = '<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

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 $title_pdf is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $footers_pdf is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $foot_pdf is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $head_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $content_table is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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 $count_pages is not named in camelCase.
Open

function export_pdf_with_html(
    array $headers_table,
    array $data_table,
    array $headers_pdf,
    array $footers_pdf,

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

There are no issues that match your filters.

Category
Status