2
0
forked from Wavyzz/dolibarr

Standardize and update code

This commit is contained in:
Philippe GRAND
2018-09-13 15:06:06 +02:00
parent be3468241f
commit 3da762a59d
9 changed files with 20 additions and 26 deletions

View File

@@ -88,7 +88,6 @@ class FormSms
return 1;
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
/**
* Show the form to input an sms.
*
@@ -96,16 +95,15 @@ class FormSms
* @param int $showform Show form tags and submit button (recommanded is to use with value 0)
* @return void
*/
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
function show_form($morecss='titlefield', $showform=1)
{
// phpcs:enable
global $conf, $langs, $user, $form;
if (! is_object($form)) $form=new Form($this->db);
$langs->load("other");
$langs->load("mails");
$langs->load("sms");
// Load translation files required by the page
$langs->loadLangs(array('other', 'mails', 'sms'));
$soc=new Societe($this->db);
if (!empty($this->withtosocid) && $this->withtosocid > 0)