mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
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:
|
||||
- Function log() of class CommandeFournisseur has been removed. Using it is no more required.
|
||||
- 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'.
|
||||
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';
|
||||
|
|
|
|||
|
|
@ -71,7 +71,6 @@ class Skeleton_Class extends CommonObject
|
|||
public function __construct(DoliDB $db)
|
||||
{
|
||||
$this->db = $db;
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -144,6 +144,7 @@ class CategoryApi extends DolibarrApi
|
|||
$result = $db->query($sql);
|
||||
if ($result)
|
||||
{
|
||||
$i=0;
|
||||
$num = $db->num_rows($result);
|
||||
while ($i < $num)
|
||||
{
|
||||
|
|
@ -224,6 +225,7 @@ class CategoryApi extends DolibarrApi
|
|||
$result = $db->query($sql);
|
||||
if ($result)
|
||||
{
|
||||
$i=0;
|
||||
$num = $db->num_rows($result);
|
||||
while ($i < $num)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -55,9 +55,9 @@ class WebsitePage extends CommonObject
|
|||
public $keywords;
|
||||
public $content;
|
||||
public $status;
|
||||
public $date_creation = '';
|
||||
public $date_modification = '';
|
||||
public $tms = '';
|
||||
public $date_creation;
|
||||
public $date_modification;
|
||||
public $tms;
|
||||
|
||||
/**
|
||||
*/
|
||||
|
|
@ -71,7 +71,6 @@ class WebsitePage extends CommonObject
|
|||
public function __construct(DoliDB $db)
|
||||
{
|
||||
$this->db = $db;
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -546,11 +545,10 @@ class WebsitePage extends CommonObject
|
|||
global $dolibarr_main_authentication, $dolibarr_main_demo;
|
||||
global $menumanager;
|
||||
|
||||
|
||||
$result = '';
|
||||
$companylink = '';
|
||||
|
||||
$label = '<u>' . $langs->trans("MyModule") . '</u>';
|
||||
$label = '<u>' . $langs->trans("Page") . '</u>';
|
||||
$label.= '<div width="100%">';
|
||||
$label.= '<b>' . $langs->trans('Ref') . ':</b> ' . $this->ref;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user