Browse Source

Qual: Checkstyle

Laurent Destailleur 13 years ago
parent
commit
195142862c

+ 1 - 1
dev/initdata/generate-commande.php

@@ -46,7 +46,7 @@ include_once(DOL_DOCUMENT_ROOT."/contrat/class/contrat.class.php");
  * Parametre
  */
 
-define (GEN_NUMBER_COMMANDE, 10);
+define(GEN_NUMBER_COMMANDE, 10);
 
 
 $ret=$user->fetch('','admin');

+ 1 - 1
dev/initdata/generate-facture.php

@@ -41,7 +41,7 @@ require_once(DOL_DOCUMENT_ROOT."/societe/class/societe.class.php");
  * Parameters
  */
 
-define (GEN_NUMBER_FACTURE, 5);
+define(GEN_NUMBER_FACTURE, 5);
 
 
 $ret=$user->fetch('','admin');

+ 1 - 1
dev/initdata/generate-produit.php

@@ -46,7 +46,7 @@ include_once(DOL_DOCUMENT_ROOT."/contrat/class/contrat.class.php");
  * Parameters
  */
 
-define (GEN_NUMBER_PRODUIT, 100000);
+define(GEN_NUMBER_PRODUIT, 100000);
 
 
 $ret=$user->fetch('','admin');

+ 1 - 1
dev/initdata/generate-propale.php

@@ -43,7 +43,7 @@ require_once(DOL_DOCUMENT_ROOT."/societe/class/societe.class.php");
  * Parameters
  */
 
-define (GEN_NUMBER_PROPAL, 5);
+define(GEN_NUMBER_PROPAL, 5);
 
 
 $ret=$user->fetch('','admin');

+ 1 - 1
dev/initdata/generate-societe.php

@@ -49,7 +49,7 @@ $prenoms = array("Joe","Marc","Steve","Laurent","Nico","Isabelle","Dorothee","Sa
  * Parametre
  */
 
-define (GEN_NUMBER_SOCIETE, 10);
+define(GEN_NUMBER_SOCIETE, 10);
 
 
 $ret=$user->fetch('','admin');

+ 6 - 2
dev/test/testtcpdf.php

@@ -64,8 +64,12 @@ $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8',
  - To convert pfx certificate to pem: openssl pkcs12 -in tcpdf.pfx -out tcpdf.crt -nodes
 
 */
-
-$pdf->SetProtection($permissions=array('copy'), $user_pass='aaa', $owner_pass=null, $mode=0, $pubkeys=null);
+$permissions=array('copy');
+$user_pass='aaa';
+$owner_pass=null;
+$mode=0;
+$pubkeys=null;
+$pdf->SetProtection($permissions, $user_pass, $owner_pass, $mode, $pubkeys);
 
 // Example with public-key
 // To open the document you need to install the private key (tcpdf.p12) on the Acrobat Reader. The password is: 1234

+ 3 - 0
dev/translation/autotranslator.class.php

@@ -230,6 +230,7 @@ class autoTranslator
 	}
 
 	/**
+	 * getLineKey
 	 *
 	 * @param 	string 	$line	Line found into file
 	 * @return	string	Key
@@ -241,6 +242,7 @@ class autoTranslator
 	}
 
 	/**
+	 * getLineValue
 	 *
 	 * @param 	string 	$line	Line found into file
 	 * @return	string	Value
@@ -252,6 +254,7 @@ class autoTranslator
 	}
 
 	/**
+	 * getTranslationFilesArray
 	 *
 	 * @param 	string 	$lang	Language code
 	 * @return	array	Array