Fix phpcs
This commit is contained in:
parent
b2926952a8
commit
cb2ebb1d56
19 changed files with 21 additions and 21 deletions
|
|
@ -513,7 +513,7 @@ class ConferenceOrBoothAttendee extends CommonObject
|
|||
* @param int $notrigger 0=launch triggers after, 1=disable triggers
|
||||
* @return int >0 if OK, <0 if KO
|
||||
*/
|
||||
public function deleteLine(User $user, $idline, $notrigger = false)
|
||||
public function deleteLine(User $user, $idline, $notrigger = 0)
|
||||
{
|
||||
if ($this->status < 0) {
|
||||
$this->error = 'ErrorDeleteLineNotAllowedByObjectStatus';
|
||||
|
|
|
|||
|
|
@ -1138,7 +1138,7 @@ class ExpenseReport extends CommonObject
|
|||
* @param int $notrigger 0=launch triggers after, 1=disable triggers
|
||||
* @return int Return integer <0 if KO, >0 if OK
|
||||
*/
|
||||
public function delete(User $user = null, $notrigger = false)
|
||||
public function delete(User $user = null, $notrigger = 0)
|
||||
{
|
||||
global $conf;
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||
|
|
|
|||
|
|
@ -1833,7 +1833,7 @@ class CommandeFournisseur extends CommonOrder
|
|||
* @param int $special_code Special code
|
||||
* @return int Return integer <=0 if KO, >0 if OK
|
||||
*/
|
||||
public function addline($desc, $pu_ht, $qty, $txtva, $txlocaltax1 = 0.0, $txlocaltax2 = 0.0, $fk_product = 0, $fk_prod_fourn_price = 0, $ref_supplier = '', $remise_percent = 0.0, $price_base_type = 'HT', $pu_ttc = 0.0, $type = 0, $info_bits = 0, $notrigger = false, $date_start = null, $date_end = null, $array_options = 0, $fk_unit = null, $pu_ht_devise = 0, $origin = '', $origin_id = 0, $rang = -1, $special_code = 0)
|
||||
public function addline($desc, $pu_ht, $qty, $txtva, $txlocaltax1 = 0.0, $txlocaltax2 = 0.0, $fk_product = 0, $fk_prod_fourn_price = 0, $ref_supplier = '', $remise_percent = 0.0, $price_base_type = 'HT', $pu_ttc = 0.0, $type = 0, $info_bits = 0, $notrigger = 0, $date_start = null, $date_end = null, $array_options = 0, $fk_unit = null, $pu_ht_devise = 0, $origin = '', $origin_id = 0, $rang = -1, $special_code = 0)
|
||||
{
|
||||
global $langs, $mysoc, $conf;
|
||||
|
||||
|
|
|
|||
|
|
@ -2069,7 +2069,7 @@ class FactureFournisseur extends CommonInvoice
|
|||
* @param int $fk_remise_except Id discount used
|
||||
* @return int >0 if OK, <0 if KO
|
||||
*/
|
||||
public function addline($desc, $pu, $txtva, $txlocaltax1, $txlocaltax2, $qty, $fk_product = 0, $remise_percent = 0, $date_start = '', $date_end = '', $ventil = 0, $info_bits = '', $price_base_type = 'HT', $type = 0, $rang = -1, $notrigger = false, $array_options = 0, $fk_unit = null, $origin_id = 0, $pu_devise = 0, $ref_supplier = '', $special_code = '', $fk_parent_line = 0, $fk_remise_except = 0)
|
||||
public function addline($desc, $pu, $txtva, $txlocaltax1, $txlocaltax2, $qty, $fk_product = 0, $remise_percent = 0, $date_start = '', $date_end = '', $ventil = 0, $info_bits = '', $price_base_type = 'HT', $type = 0, $rang = -1, $notrigger = 0, $array_options = 0, $fk_unit = null, $origin_id = 0, $pu_devise = 0, $ref_supplier = '', $special_code = '', $fk_parent_line = 0, $fk_remise_except = 0)
|
||||
{
|
||||
global $langs, $mysoc, $conf;
|
||||
|
||||
|
|
@ -2332,7 +2332,7 @@ class FactureFournisseur extends CommonInvoice
|
|||
* @param integer $rang line rank
|
||||
* @return int Return integer <0 if KO, >0 if OK
|
||||
*/
|
||||
public function updateline($id, $desc, $pu, $vatrate, $txlocaltax1 = 0, $txlocaltax2 = 0, $qty = 1, $idproduct = 0, $price_base_type = 'HT', $info_bits = 0, $type = 0, $remise_percent = 0, $notrigger = false, $date_start = '', $date_end = '', $array_options = 0, $fk_unit = null, $pu_devise = 0, $ref_supplier = '', $rang = 0)
|
||||
public function updateline($id, $desc, $pu, $vatrate, $txlocaltax1 = 0, $txlocaltax2 = 0, $qty = 1, $idproduct = 0, $price_base_type = 'HT', $info_bits = 0, $type = 0, $remise_percent = 0, $notrigger = 0, $date_start = '', $date_end = '', $array_options = 0, $fk_unit = null, $pu_devise = 0, $ref_supplier = '', $rang = 0)
|
||||
{
|
||||
global $mysoc, $langs;
|
||||
|
||||
|
|
|
|||
|
|
@ -467,7 +467,7 @@ class EvaluationLine extends CommonObjectLine
|
|||
* @param int $notrigger 0=launch triggers after, 1=disable triggers
|
||||
* @return int >0 if OK, <0 if KO
|
||||
*/
|
||||
public function deleteLine(User $user, $idline, $notrigger = false)
|
||||
public function deleteLine(User $user, $idline, $notrigger = 0)
|
||||
{
|
||||
if ($this->status < 0) {
|
||||
$this->error = 'ErrorDeleteLineNotAllowedByObjectStatus';
|
||||
|
|
|
|||
|
|
@ -465,7 +465,7 @@ class Job extends CommonObject
|
|||
* @param int $notrigger 0=launch triggers after, 1=disable triggers
|
||||
* @return int >0 if OK, <0 if KO
|
||||
*/
|
||||
public function deleteLine(User $user, $idline, $notrigger = false)
|
||||
public function deleteLine(User $user, $idline, $notrigger = 0)
|
||||
{
|
||||
if ($this->status < 0) {
|
||||
$this->error = 'ErrorDeleteLineNotAllowedByObjectStatus';
|
||||
|
|
|
|||
|
|
@ -475,7 +475,7 @@ class Position extends CommonObject
|
|||
* @param int $notrigger 0=launch triggers after, 1=disable triggers
|
||||
* @return int Return >0 if OK, <0 if KO
|
||||
*/
|
||||
public function deleteLine(User $user, $idline, $notrigger = false)
|
||||
public function deleteLine(User $user, $idline, $notrigger = 0)
|
||||
{
|
||||
if ($this->status < 0) {
|
||||
$this->error = 'ErrorDeleteLineNotAllowedByObjectStatus';
|
||||
|
|
|
|||
|
|
@ -533,7 +533,7 @@ class Skill extends CommonObject
|
|||
* @param int $notrigger 0=launch triggers after, 1=disable triggers
|
||||
* @return int Return >0 if OK, <0 if KO
|
||||
*/
|
||||
public function deleteLine(User $user, $idline, $notrigger = false)
|
||||
public function deleteLine(User $user, $idline, $notrigger = 0)
|
||||
{
|
||||
if ($this->status < 0) {
|
||||
$this->error = 'ErrorDeleteLineNotAllowedByObjectStatus';
|
||||
|
|
|
|||
|
|
@ -456,7 +456,7 @@ class Skilldet extends CommonObjectLine
|
|||
* @param int $notrigger 0=launch triggers after, 1=disable triggers
|
||||
* @return int Return >0 if OK, <0 if KO
|
||||
*/
|
||||
public function deleteLine(User $user, $idline, $notrigger = false)
|
||||
public function deleteLine(User $user, $idline, $notrigger = 0)
|
||||
{
|
||||
if ($this->status < 0) {
|
||||
$this->error = 'ErrorDeleteLineNotAllowedByObjectStatus';
|
||||
|
|
|
|||
|
|
@ -503,9 +503,9 @@ class SkillRank extends CommonObject
|
|||
* @param User $user User that delete
|
||||
* @param int $idline Id of line to delete
|
||||
* @param int $notrigger 0=launch triggers after, 1=disable triggers
|
||||
* @return int >0 if OK, <0 if KO
|
||||
* @return int Return >0 if OK, <0 if KO
|
||||
*/
|
||||
public function deleteLine(User $user, $idline, $notrigger = false)
|
||||
public function deleteLine(User $user, $idline, $notrigger = 0)
|
||||
{
|
||||
if ($this->status < 0) {
|
||||
$this->error = 'ErrorDeleteLineNotAllowedByObjectStatus';
|
||||
|
|
|
|||
|
|
@ -506,7 +506,7 @@ class KnowledgeRecord extends CommonObject
|
|||
* @param int $notrigger 0=launch triggers after, 1=disable triggers
|
||||
* @return int Return >0 if OK, <0 if KO
|
||||
*/
|
||||
public function deleteLine(User $user, $idline, $notrigger = false)
|
||||
public function deleteLine(User $user, $idline, $notrigger = 0)
|
||||
{
|
||||
if ($this->status < 0) {
|
||||
$this->error = 'ErrorDeleteLineNotAllowedByObjectStatus';
|
||||
|
|
|
|||
|
|
@ -571,7 +571,7 @@ class MyObject extends CommonObject
|
|||
* @param int $notrigger 0=launch triggers after, 1=disable triggers
|
||||
* @return int >0 if OK, <0 if KO
|
||||
*/
|
||||
public function deleteLine(User $user, $idline, $notrigger = false)
|
||||
public function deleteLine(User $user, $idline, $notrigger = 0)
|
||||
{
|
||||
if ($this->status < 0) {
|
||||
$this->error = 'ErrorDeleteLineNotAllowedByObjectStatus';
|
||||
|
|
|
|||
|
|
@ -882,7 +882,7 @@ class Mo extends CommonObject
|
|||
* @param int $notrigger 0=launch triggers after, 1=disable triggers
|
||||
* @return int >0 if OK, <0 if KO
|
||||
*/
|
||||
public function deleteLine(User $user, $idline, $notrigger = false)
|
||||
public function deleteLine(User $user, $idline, $notrigger = 0)
|
||||
{
|
||||
global $langs;
|
||||
$langs->loadLangs(array('stocks', 'mrp'));
|
||||
|
|
|
|||
|
|
@ -540,7 +540,7 @@ class Partnership extends CommonObject
|
|||
* @param int $notrigger 0=launch triggers after, 1=disable triggers
|
||||
* @return int >0 if OK, <0 if KO
|
||||
*/
|
||||
public function deleteLine(User $user, $idline, $notrigger = false)
|
||||
public function deleteLine(User $user, $idline, $notrigger = 0)
|
||||
{
|
||||
if ($this->status < 0) {
|
||||
$this->error = 'ErrorDeleteLineNotAllowedByObjectStatus';
|
||||
|
|
|
|||
|
|
@ -552,7 +552,7 @@ class Inventory extends CommonObject
|
|||
* @param int $notrigger 0=launch triggers after, 1=disable triggers
|
||||
* @return int >0 if OK, <0 if KO
|
||||
*/
|
||||
public function deleteLine(User $user, $idline, $notrigger = false)
|
||||
public function deleteLine(User $user, $idline, $notrigger = 0)
|
||||
{
|
||||
if ($this->status < 0) {
|
||||
$this->error = 'ErrorDeleteLineNotAllowedByObjectStatus';
|
||||
|
|
|
|||
|
|
@ -479,7 +479,7 @@ class RecruitmentJobPosition extends CommonObject
|
|||
* @param int $notrigger 0=launch triggers after, 1=disable triggers
|
||||
* @return int Return >0 if OK, <0 if KO
|
||||
*/
|
||||
public function deleteLine(User $user, $idline, $notrigger = false)
|
||||
public function deleteLine(User $user, $idline, $notrigger = 0)
|
||||
{
|
||||
if ($this->status < 0) {
|
||||
$this->error = 'ErrorDeleteLineNotAllowedByObjectStatus';
|
||||
|
|
|
|||
|
|
@ -472,7 +472,7 @@ class CTicketCategory extends CommonObject
|
|||
* @param int $notrigger false=launch triggers after, true=disable triggers
|
||||
* @return int >0 if OK, <0 if KO
|
||||
*/
|
||||
public function deleteLine(User $user, $idline, $notrigger = false)
|
||||
public function deleteLine(User $user, $idline, $notrigger = 0)
|
||||
{
|
||||
if ($this->status < 0) {
|
||||
$this->error = 'ErrorDeleteLineNotAllowedByObjectStatus';
|
||||
|
|
|
|||
|
|
@ -474,7 +474,7 @@ class Target extends CommonObject
|
|||
* @param int $notrigger 0=launch triggers after, 1=disable triggers
|
||||
* @return int >0 if OK, <0 if KO
|
||||
*/
|
||||
public function deleteLine(User $user, $idline, $notrigger = false)
|
||||
public function deleteLine(User $user, $idline, $notrigger = 0)
|
||||
{
|
||||
if ($this->status < 0) {
|
||||
$this->error = 'ErrorDeleteLineNotAllowedByObjectStatus';
|
||||
|
|
|
|||
|
|
@ -549,7 +549,7 @@ class Workstation extends CommonObject
|
|||
* @param int $notrigger 0=launch triggers after, 1=disable triggers
|
||||
* @return int Return >0 if OK, <0 if KO
|
||||
*/
|
||||
public function deleteLine(User $user, $idline, $notrigger = false)
|
||||
public function deleteLine(User $user, $idline, $notrigger = 0)
|
||||
{
|
||||
if ($this->status < 0) {
|
||||
$this->error = 'ErrorDeleteLineNotAllowedByObjectStatus';
|
||||
|
|
|
|||
Loading…
Reference in a new issue