ModelePDFStatic::defineColumnField()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
nc 1
nop 5
dl 0
loc 12
rs 10
c 1
b 0
f 0
1
<?php
2
3
/**
4
 * Class ModelePDFPropales
5
 *
6
 * This class is used by subtotal to access CommonDocGenerator method without real model
7
 *
8
 */
9
class ModelePDFStatic extends CommonDocGenerator{
10
11
12
	/**
13
	 *  Define Array Column Field
14
	 *
15
	 *  @param	object			$object    		common object
16
	 *  @param	Translate		$outputlangs    langs
17
	 *  @param	int			   $hidedetails		Do not show line details
18
	 *  @param	int			   $hidedesc		Do not show desc
19
	 *  @param	int			   $hideref			Do not show ref
20
	 *  @return	null
21
	 */
22
	public function defineColumnField($object, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
0 ignored issues
show
Unused Code introduced by
The parameter $hideref is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

22
	public function defineColumnField($object, $outputlangs, $hidedetails = 0, $hidedesc = 0, /** @scrutinizer ignore-unused */ $hideref = 0)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $outputlangs is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

22
	public function defineColumnField($object, /** @scrutinizer ignore-unused */ $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $object is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

22
	public function defineColumnField(/** @scrutinizer ignore-unused */ $object, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $hidedesc is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

22
	public function defineColumnField($object, $outputlangs, $hidedetails = 0, /** @scrutinizer ignore-unused */ $hidedesc = 0, $hideref = 0)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $hidedetails is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

22
	public function defineColumnField($object, $outputlangs, /** @scrutinizer ignore-unused */ $hidedetails = 0, $hidedesc = 0, $hideref = 0)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
23
	{
24
		// Default field style for content
25
		$this->defaultContentsFieldsStyle = array(
0 ignored issues
show
Bug Best Practice introduced by
The property defaultContentsFieldsStyle does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
26
			'align' => 'R', // R,C,L
27
			'padding' => array(1, 0.5, 1, 0.5), // Like css 0 => top , 1 => right, 2 => bottom, 3 => left
28
		);
29
30
		// Default field style for content
31
		$this->defaultTitlesFieldsStyle = array(
0 ignored issues
show
Bug Best Practice introduced by
The property defaultTitlesFieldsStyle does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
32
			'align' => 'C', // R,C,L
33
			'padding' => array(0.5, 0, 0.5, 0), // Like css 0 => top , 1 => right, 2 => bottom, 3 => left
34
		);
35
	}
36
}
37