Minor PHPCS fixes
This commit is contained in:
parent
d9e846e586
commit
c2de7adb32
@ -26,6 +26,7 @@ Following changes may create regression for some external modules, but were nece
|
|||||||
Dolibarr better:
|
Dolibarr better:
|
||||||
- Function log() of class CommandeFournisseur has been removed. Using it is no more required.
|
- Function log() of class CommandeFournisseur has been removed. Using it is no more required.
|
||||||
- Method select_type_comptes_financiers() has been renamed into selectTypeOfBankAccount()
|
- Method select_type_comptes_financiers() has been renamed into selectTypeOfBankAccount()
|
||||||
|
- Property ->client that was deprecated 6 years ago, is replaced in all core code with ->thirdparty.
|
||||||
- File '/core/tpl/document_actions_pre_headers.tpl.php' were renamed into '/core/actions_linkedfiles.inc.php'.
|
- File '/core/tpl/document_actions_pre_headers.tpl.php' were renamed into '/core/actions_linkedfiles.inc.php'.
|
||||||
So if you included it into your module, change your code like this to be compatible with all version:
|
So if you included it into your module, change your code like this to be compatible with all version:
|
||||||
$res=@include_once DOL_DOCUMENT_ROOT . '/core/actions_linkedfiles.inc.php';
|
$res=@include_once DOL_DOCUMENT_ROOT . '/core/actions_linkedfiles.inc.php';
|
||||||
|
|||||||
@ -71,7 +71,6 @@ class Skeleton_Class extends CommonObject
|
|||||||
public function __construct(DoliDB $db)
|
public function __construct(DoliDB $db)
|
||||||
{
|
{
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -144,6 +144,7 @@ class CategoryApi extends DolibarrApi
|
|||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
|
$i=0;
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < $num)
|
while ($i < $num)
|
||||||
{
|
{
|
||||||
@ -224,6 +225,7 @@ class CategoryApi extends DolibarrApi
|
|||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
|
$i=0;
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
while ($i < $num)
|
while ($i < $num)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -55,9 +55,9 @@ class WebsitePage extends CommonObject
|
|||||||
public $keywords;
|
public $keywords;
|
||||||
public $content;
|
public $content;
|
||||||
public $status;
|
public $status;
|
||||||
public $date_creation = '';
|
public $date_creation;
|
||||||
public $date_modification = '';
|
public $date_modification;
|
||||||
public $tms = '';
|
public $tms;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
@ -71,7 +71,6 @@ class WebsitePage extends CommonObject
|
|||||||
public function __construct(DoliDB $db)
|
public function __construct(DoliDB $db)
|
||||||
{
|
{
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -546,11 +545,10 @@ class WebsitePage extends CommonObject
|
|||||||
global $dolibarr_main_authentication, $dolibarr_main_demo;
|
global $dolibarr_main_authentication, $dolibarr_main_demo;
|
||||||
global $menumanager;
|
global $menumanager;
|
||||||
|
|
||||||
|
|
||||||
$result = '';
|
$result = '';
|
||||||
$companylink = '';
|
$companylink = '';
|
||||||
|
|
||||||
$label = '<u>' . $langs->trans("MyModule") . '</u>';
|
$label = '<u>' . $langs->trans("Page") . '</u>';
|
||||||
$label.= '<div width="100%">';
|
$label.= '<div width="100%">';
|
||||||
$label.= '<b>' . $langs->trans('Ref') . ':</b> ' . $this->ref;
|
$label.= '<b>' . $langs->trans('Ref') . ':</b> ' . $this->ref;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user