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,
- Read upRead up
- Exclude checks
NPathComplexity
Since: 0.1
The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.
Example
class Foo {
function bar() {
// lots of complicated code
}
}
Source https://phpmd.org/rules/codesize.html#npathcomplexity
Missing class import via use statement (line '180', column '16'). Open
$pdf = new PDF();
- Read upRead up
- Exclude checks
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);
}
- 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 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>';
}
- 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 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">
- 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
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,
- 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
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,
- 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
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');
- 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
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,
- 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
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,
- 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
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,
- 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
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">
- 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
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>';
- Exclude checks
Variable "footers_pdf" is not in valid camel caps format Open
array $footers_pdf,
- Exclude checks
Variable "footers_pdf" is not in valid camel caps format Open
foreach ($footers_pdf as $foot_pdf) {
- Exclude checks
Variable "data_table" is not in valid camel caps format Open
$data_table = array_slice($data_table, $offset, count($data_table));
- Exclude checks
Variable "title_pdf" is not in valid camel caps format Open
$pdf->content_to_pdf($header.$content_table, $css, $title_pdf);
- Exclude checks
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>';
- Exclude checks
Variable "content_table" is not in valid camel caps format Open
$content_table .= '</tr>';
- Exclude checks
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>';
- Exclude checks
Variable "count_pages" is not in valid camel caps format Open
if ($x < ($count_pages - 1)) {
- Exclude checks
Missing parameter name Open
* @param resource The PDF object (ezpdf class) used to generate the file
- Exclude checks
Variable "header_pdf" is not in valid camel caps format Open
foreach ($headers_pdf as $header_pdf) {
- Exclude checks
Variable "data_table" is not in valid camel caps format Open
$count_pages = ceil(count($data_table) / $items_per_page);
- Exclude checks
Variable "content_table" is not in valid camel caps format Open
$content_table .= '<tr>';
- Exclude checks
Variable "content_table" is not in valid camel caps format Open
$content_table .= '<td '.$align.' style="padding:4px;" >'.$content.'</td>';
- Exclude checks
Missing parameter name Open
* @param array Array containing the data to be printed in the table
- Exclude checks
Missing parameter name Open
* @param string Course name to print as title for the table
- Exclude checks
Variable "data_array" is not in valid camel caps format Open
foreach ($data_array as $data) {
- Exclude checks
Variable "foot_pdf" is not in valid camel caps format Open
$footer .= '<td width="33%" style="text-align: center;">'.$foot_pdf.'</td>';
- Exclude checks
Variable "headers_table" is not in valid camel caps format Open
if (is_array($headers_table)) {
- Exclude checks
Consider putting global function "export_pdf" in a static class Open
function export_pdf($pdf, $newarray, $header_names, $format)
- Exclude checks
Variable "header_names" is not in valid camel caps format Open
function print_table($data_array, $header_names, $view, $coursename)
- Exclude checks
Variable "headers_table" is not in valid camel caps format Open
array $headers_table,
- Exclude checks
Variable "data_table" is not in valid camel caps format Open
array $data_table,
- Exclude checks
Variable "header_pdf" is not in valid camel caps format Open
if (!empty($header_pdf[0]) && !empty($header_pdf[1])) {
- Exclude checks
Variable "items_per_page" is not in valid camel caps format Open
if ($i > $items_per_page) {
- Exclude checks
Variable "header_names" is not in valid camel caps format Open
function export_pdf($pdf, $newarray, $header_names, $format)
- Exclude checks
Variable "count_pages" is not in valid camel caps format Open
$count_pages = ceil(count($data_table) / $items_per_page);
- Exclude checks
Variable "head_table" is not in valid camel caps format Open
$width = (!empty($head_table[1]) ? $head_table[1].'%' : '');
- Exclude checks
Missing parameter name Open
* @param array Table headers
- Exclude checks
Variable "items_per_page" is not in valid camel caps format Open
$items_per_page = 30;
- Exclude checks
Variable "content_table" is not in valid camel caps format Open
$content_table .= '</tr>';
- Exclude checks
Variable "data_table" is not in valid camel caps format Open
$data_table = array_slice($data_table, $offset, count($data_table));
- Exclude checks
Variable "header_names" is not in valid camel caps format Open
$pdf->ezTable($newarray, $header_names, '', [
- Exclude checks
Variable "content_table" is not in valid camel caps format Open
$content_table = '';
- Exclude checks
Variable "headers_table" is not in valid camel caps format Open
foreach ($headers_table as $head_table) {
- Exclude checks
Variable "head_table" is not in valid camel caps format Open
if (!empty($head_table[0])) {
- Exclude checks
Variable "content_table" is not in valid camel caps format Open
$content_table .= '<th width="'.$width.'">'.$head_table[0].'</th>';
- Exclude checks
Variable "head_table" is not in valid camel caps format Open
$content_table .= '<th width="'.$width.'">'.$head_table[0].'</th>';
- Exclude checks
Variable "data_table" is not in valid camel caps format Open
foreach ($data_table as $data) {
- Exclude checks
Consider putting global function "print_table" in a static class Open
function print_table($data_array, $header_names, $view, $coursename)
- Exclude checks
Variable "header_pdf" is not in valid camel caps format Open
if (!empty($header_pdf[0]) && !empty($header_pdf[1])) {
- Exclude checks
Variable "content_table" is not in valid camel caps format Open
$content_table .= '<table width="100%" border="1" style="border-collapse:collapse">';
- Exclude checks
Missing parameter name Open
* @param string Format (portrait or landscape)
- Exclude checks
Variable "headers_pdf" is not in valid camel caps format Open
array $headers_pdf,
- Exclude checks
Variable "headers_pdf" is not in valid camel caps format Open
foreach ($headers_pdf as $header_pdf) {
- Exclude checks
Variable "head_table" is not in valid camel caps format Open
$width = (!empty($head_table[1]) ? $head_table[1].'%' : '');
- Exclude checks
Variable "items_per_page" is not in valid camel caps format Open
$count_pages = ceil(count($data_table) / $items_per_page);
- Exclude checks
Variable "content_table" is not in valid camel caps format Open
$content_table .= '<td>'.($item < 10 ? '0'.$item : $item).'</td>';
- Exclude checks
Missing parameter name Open
* @param array Table headers
- Exclude checks
Variable "footers_pdf" is not in valid camel caps format Open
if (is_array($footers_pdf)) {
- Exclude checks
Variable "count_pages" is not in valid camel caps format Open
for ($x = 0; $x < $count_pages; $x++) {
- Exclude checks
Variable "items_per_page" is not in valid camel caps format Open
$offset = $x * $items_per_page;
- Exclude checks
Variable "content_table" is not in valid camel caps format Open
$content_table .= '<pagebreak />';
- Exclude checks
Variable "content_table" is not in valid camel caps format Open
$pdf->content_to_pdf($header.$content_table, $css, $title_pdf);
- Exclude checks
Missing parameter name Open
* @param array The data array
- Exclude checks
Missing parameter name Open
* @param string View to print as a title for the table
- Exclude checks
Variable "title_pdf" is not in valid camel caps format Open
<h1>'.$title_pdf.'</h1></td></tr>';
- Exclude checks
Variable "content_table" is not in valid camel caps format Open
$content_table .= '</table>';
- Exclude checks
Variable "header_names" is not in valid camel caps format Open
foreach ($header_names as $header) {
- Exclude checks
Variable "headers_pdf" is not in valid camel caps format Open
if ($headers_pdf) {
- Exclude checks
Variable "foot_pdf" is not in valid camel caps format Open
foreach ($footers_pdf as $foot_pdf) {
- Exclude checks
Variable "data_table" is not in valid camel caps format Open
$data_table = array_slice($data_table, $offset, count($data_table));
- Exclude checks
Variable "data_array" is not in valid camel caps format Open
function print_table($data_array, $header_names, $view, $coursename)
- Exclude checks
Consider putting global function "export_pdf_with_html" in a static class Open
function export_pdf_with_html(
- Exclude checks
Variable "title_pdf" is not in valid camel caps format Open
string $title_pdf
- Exclude checks
Variable "content_table" is not in valid camel caps format Open
$content_table .= '<tr>';
- Exclude checks
Variable "head_table" is not in valid camel caps format Open
foreach ($headers_table as $head_table) {
- Exclude checks
Variable "data_table" is not in valid camel caps format Open
if (is_array($data_table) && count($data_table) > 0) {
- Exclude checks
Variable "data_table" is not in valid camel caps format Open
if (is_array($data_table) && count($data_table) > 0) {
- Exclude checks
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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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">
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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');
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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">
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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 $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,
- 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();
}
}