Fix phpcs
This commit is contained in:
parent
01adaf253c
commit
047d130081
@ -832,29 +832,28 @@ abstract class CommonDocGenerator
|
|||||||
* @param array $b PDF lines array fields configs
|
* @param array $b PDF lines array fields configs
|
||||||
* @return int Return compare result
|
* @return int Return compare result
|
||||||
*/
|
*/
|
||||||
function columnSort($a, $b) {
|
function columnSort($a, $b)
|
||||||
|
{
|
||||||
if(empty($a['rank'])){ $a['rank'] = 0; }
|
if(empty($a['rank'])){ $a['rank'] = 0; }
|
||||||
if(empty($b['rank'])){ $b['rank'] = 0; }
|
if(empty($b['rank'])){ $b['rank'] = 0; }
|
||||||
if ($a['rank'] == $b['rank']) {
|
if ($a['rank'] == $b['rank']) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return ($a['rank'] > $b['rank']) ? -1 : 1;
|
return ($a['rank'] > $b['rank']) ? -1 : 1;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prepare Array Column Field
|
* Prepare Array Column Field
|
||||||
*
|
*
|
||||||
* @param object $object common object
|
* @param object $object common object
|
||||||
* @param outputlangs $outputlangs langs
|
* @param Translate $outputlangs langs
|
||||||
* @param int $hidedetails Do not show line details
|
* @param int $hidedetails Do not show line details
|
||||||
* @param int $hidedesc Do not show desc
|
* @param int $hidedesc Do not show desc
|
||||||
* @param int $hideref Do not show ref
|
* @param int $hideref Do not show ref
|
||||||
* @return null
|
* @return null
|
||||||
*/
|
*/
|
||||||
function prepareArrayColumnField($object,$outputlangs,$hidedetails=0,$hidedesc=0,$hideref=0){
|
function prepareArrayColumnField($object,$outputlangs,$hidedetails=0,$hidedesc=0,$hideref=0)
|
||||||
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
$this->defineColumnField($object,$outputlangs,$hidedetails,$hidedesc,$hideref);
|
$this->defineColumnField($object,$outputlangs,$hidedetails,$hidedesc,$hideref);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user