Skip to content
Snippets Groups Projects
Commit c2de7adb authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Minor PHPCS fixes

parent d9e846e5
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment