Minor PHPCS fixes

This commit is contained in:
Laurent Destailleur 2016-04-21 03:18:42 +02:00
parent d9e846e586
commit c2de7adb32
4 changed files with 7 additions and 7 deletions

View File

@ -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';

View File

@ -71,7 +71,6 @@ class Skeleton_Class extends CommonObject
public function __construct(DoliDB $db)
{
$this->db = $db;
return 1;
}
/**

View File

@ -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)
{

View File

@ -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;