move phpcs:ignore
This commit is contained in:
parent
3ecf788438
commit
cbf4a20a13
@ -83,6 +83,7 @@ class pdf_sepamandate extends ModeleBankAccountDoc
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||||
/**
|
/**
|
||||||
* Fonction generant le projet sur le disque
|
* Fonction generant le projet sur le disque
|
||||||
*
|
*
|
||||||
@ -95,7 +96,6 @@ class pdf_sepamandate extends ModeleBankAccountDoc
|
|||||||
* @param null|array $moreparams More parameters
|
* @param null|array $moreparams More parameters
|
||||||
* @return int 1 if OK, <=0 if KO
|
* @return int 1 if OK, <=0 if KO
|
||||||
*/
|
*/
|
||||||
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
|
||||||
function write_file($object, $outputlangs, $srctemplatepath='', $hidedetails=0, $hidedesc=0, $hideref=0, $moreparams=null)
|
function write_file($object, $outputlangs, $srctemplatepath='', $hidedetails=0, $hidedesc=0, $hideref=0, $moreparams=null)
|
||||||
{
|
{
|
||||||
global $conf, $hookmanager, $langs, $user, $mysoc;
|
global $conf, $hookmanager, $langs, $user, $mysoc;
|
||||||
@ -427,6 +427,7 @@ class pdf_sepamandate extends ModeleBankAccountDoc
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||||
/**
|
/**
|
||||||
* Show miscellaneous information (payment mode, payment term, ...)
|
* Show miscellaneous information (payment mode, payment term, ...)
|
||||||
*
|
*
|
||||||
@ -436,9 +437,9 @@ class pdf_sepamandate extends ModeleBankAccountDoc
|
|||||||
* @param Translate $outputlangs Langs object
|
* @param Translate $outputlangs Langs object
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
|
||||||
function _tableau_info(&$pdf, $object, $posy, $outputlangs)
|
function _tableau_info(&$pdf, $object, $posy, $outputlangs)
|
||||||
{
|
{
|
||||||
|
// phpcs:enable
|
||||||
global $conf, $mysoc;
|
global $conf, $mysoc;
|
||||||
|
|
||||||
$default_font_size = pdf_getPDFFontSize($outputlangs);
|
$default_font_size = pdf_getPDFFontSize($outputlangs);
|
||||||
@ -472,7 +473,7 @@ class pdf_sepamandate extends ModeleBankAccountDoc
|
|||||||
* @param Translate $outputlangs Objet langs
|
* @param Translate $outputlangs Objet langs
|
||||||
* @return int Position pour suite
|
* @return int Position pour suite
|
||||||
*/
|
*/
|
||||||
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||||
function _signature_area(&$pdf, $object, $posy, $outputlangs)
|
function _signature_area(&$pdf, $object, $posy, $outputlangs)
|
||||||
{
|
{
|
||||||
$default_font_size = pdf_getPDFFontSize($outputlangs);
|
$default_font_size = pdf_getPDFFontSize($outputlangs);
|
||||||
|
|||||||
@ -44,6 +44,7 @@ abstract class ModelePDFCommandes extends CommonDocGenerator
|
|||||||
*/
|
*/
|
||||||
public $error='';
|
public $error='';
|
||||||
|
|
||||||
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||||
/**
|
/**
|
||||||
* Return list of active generation modules
|
* Return list of active generation modules
|
||||||
*
|
*
|
||||||
@ -51,9 +52,9 @@ abstract class ModelePDFCommandes extends CommonDocGenerator
|
|||||||
* @param integer $maxfilenamelength Max length of value to show
|
* @param integer $maxfilenamelength Max length of value to show
|
||||||
* @return array List of templates
|
* @return array List of templates
|
||||||
*/
|
*/
|
||||||
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
|
||||||
static function liste_modeles($db, $maxfilenamelength=0)
|
static function liste_modeles($db, $maxfilenamelength=0)
|
||||||
{
|
{
|
||||||
|
// phpcs:enable
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
$type = 'order';
|
$type = 'order';
|
||||||
|
|||||||
@ -174,6 +174,7 @@ class pdf_typhon extends ModelePDFDeliveryOrder
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||||
/**
|
/**
|
||||||
* Function to build pdf onto disk
|
* Function to build pdf onto disk
|
||||||
*
|
*
|
||||||
@ -185,9 +186,9 @@ class pdf_typhon extends ModelePDFDeliveryOrder
|
|||||||
* @param int $hideref Do not show ref
|
* @param int $hideref Do not show ref
|
||||||
* @return int 1=OK, 0=KO
|
* @return int 1=OK, 0=KO
|
||||||
*/
|
*/
|
||||||
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
|
||||||
function write_file($object,$outputlangs,$srctemplatepath='',$hidedetails=0,$hidedesc=0,$hideref=0)
|
function write_file($object,$outputlangs,$srctemplatepath='',$hidedetails=0,$hidedesc=0,$hideref=0)
|
||||||
{
|
{
|
||||||
|
// phpcs:enable
|
||||||
global $user,$langs,$conf,$mysoc,$hookmanager;
|
global $user,$langs,$conf,$mysoc,$hookmanager;
|
||||||
|
|
||||||
if (! is_object($outputlangs)) $outputlangs=$langs;
|
if (! is_object($outputlangs)) $outputlangs=$langs;
|
||||||
@ -630,6 +631,7 @@ class pdf_typhon extends ModelePDFDeliveryOrder
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||||
/**
|
/**
|
||||||
* Show miscellaneous information (payment mode, payment term, ...)
|
* Show miscellaneous information (payment mode, payment term, ...)
|
||||||
*
|
*
|
||||||
@ -639,9 +641,9 @@ class pdf_typhon extends ModelePDFDeliveryOrder
|
|||||||
* @param Translate $outputlangs Langs object
|
* @param Translate $outputlangs Langs object
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
|
||||||
function _tableau_info(&$pdf, $object, $posy, $outputlangs)
|
function _tableau_info(&$pdf, $object, $posy, $outputlangs)
|
||||||
{
|
{
|
||||||
|
// phpcs:enable
|
||||||
global $conf,$mysoc;
|
global $conf,$mysoc;
|
||||||
$default_font_size = pdf_getPDFFontSize($outputlangs);
|
$default_font_size = pdf_getPDFFontSize($outputlangs);
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2014-2015 Frederic France <frederic.france@free.fr>
|
* Copyright (C) 2014-2018 Frederic France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -35,13 +35,13 @@ use OAuth\OAuth2\Service\Google;
|
|||||||
*/
|
*/
|
||||||
class printing_printgcp extends PrintingDriver
|
class printing_printgcp extends PrintingDriver
|
||||||
{
|
{
|
||||||
var $name = 'printgcp';
|
public $name = 'printgcp';
|
||||||
var $desc = 'PrintGCPDesc';
|
public $desc = 'PrintGCPDesc';
|
||||||
var $picto = 'printer';
|
public $picto = 'printer';
|
||||||
var $active = 'PRINTING_PRINTGCP';
|
public $active = 'PRINTING_PRINTGCP';
|
||||||
var $conf = array();
|
public $conf = array();
|
||||||
var $google_id = '';
|
public $google_id = '';
|
||||||
var $google_secret = '';
|
public $google_secret = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Error code (or message)
|
* @var string Error code (or message)
|
||||||
@ -227,14 +227,15 @@ class printing_printgcp extends PrintingDriver
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||||
/**
|
/**
|
||||||
* Return list of available printers
|
* Return list of available printers
|
||||||
*
|
*
|
||||||
* @return array list of printers
|
* @return array list of printers
|
||||||
*/
|
*/
|
||||||
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
|
||||||
function getlist_available_printers()
|
function getlist_available_printers()
|
||||||
{
|
{
|
||||||
|
// phpcs:enable
|
||||||
// Token storage
|
// Token storage
|
||||||
$storage = new DoliStorage($this->db, $this->conf);
|
$storage = new DoliStorage($this->db, $this->conf);
|
||||||
// Setup the credentials for the requests
|
// Setup the credentials for the requests
|
||||||
@ -292,6 +293,7 @@ class printing_printgcp extends PrintingDriver
|
|||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||||
/**
|
/**
|
||||||
* Print selected file
|
* Print selected file
|
||||||
*
|
*
|
||||||
@ -300,9 +302,9 @@ class printing_printgcp extends PrintingDriver
|
|||||||
* @param string $subdir subdir for file
|
* @param string $subdir subdir for file
|
||||||
* @return int 0 if OK, >0 if KO
|
* @return int 0 if OK, >0 if KO
|
||||||
*/
|
*/
|
||||||
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
|
||||||
function print_file($file, $module, $subdir='')
|
function print_file($file, $module, $subdir='')
|
||||||
{
|
{
|
||||||
|
// phpcs:enable
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||||
|
|
||||||
global $conf, $user;
|
global $conf, $user;
|
||||||
@ -412,14 +414,15 @@ class printing_printgcp extends PrintingDriver
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||||
/**
|
/**
|
||||||
* List jobs print
|
* List jobs print
|
||||||
*
|
*
|
||||||
* @return int 0 if OK, >0 if KO
|
* @return int 0 if OK, >0 if KO
|
||||||
*/
|
*/
|
||||||
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
|
||||||
function list_jobs()
|
function list_jobs()
|
||||||
{
|
{
|
||||||
|
// phpcs:enable
|
||||||
global $conf, $db, $langs, $bc;
|
global $conf, $db, $langs, $bc;
|
||||||
|
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
|||||||
@ -210,6 +210,7 @@ class mod_codeclient_monkey extends ModeleThirdPartyCode
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||||
/**
|
/**
|
||||||
* Renvoi si un code est pris ou non (par autre tiers)
|
* Renvoi si un code est pris ou non (par autre tiers)
|
||||||
*
|
*
|
||||||
@ -219,9 +220,9 @@ class mod_codeclient_monkey extends ModeleThirdPartyCode
|
|||||||
* @param int $type 0 = customer/prospect , 1 = supplier
|
* @param int $type 0 = customer/prospect , 1 = supplier
|
||||||
* @return int 0 if available, <0 if KO
|
* @return int 0 if available, <0 if KO
|
||||||
*/
|
*/
|
||||||
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
|
||||||
function verif_dispo($db, $code, $soc, $type=0)
|
function verif_dispo($db, $code, $soc, $type=0)
|
||||||
{
|
{
|
||||||
|
// phpcs:enable
|
||||||
global $conf, $mc;
|
global $conf, $mc;
|
||||||
|
|
||||||
$sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."societe";
|
$sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."societe";
|
||||||
@ -250,15 +251,16 @@ class mod_codeclient_monkey extends ModeleThirdPartyCode
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||||
/**
|
/**
|
||||||
* Renvoi si un code respecte la syntaxe
|
* Renvoi si un code respecte la syntaxe
|
||||||
*
|
*
|
||||||
* @param string $code Code a verifier
|
* @param string $code Code a verifier
|
||||||
* @return int 0 si OK, <0 si KO
|
* @return int 0 si OK, <0 si KO
|
||||||
*/
|
*/
|
||||||
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
|
||||||
function verif_syntax($code)
|
function verif_syntax($code)
|
||||||
{
|
{
|
||||||
|
// phpcs:enable
|
||||||
$res = 0;
|
$res = 0;
|
||||||
|
|
||||||
if (dol_strlen($code) < 11)
|
if (dol_strlen($code) < 11)
|
||||||
|
|||||||
@ -107,6 +107,7 @@ class mod_codecompta_aquarium extends ModeleAccountancyCode
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||||
/**
|
/**
|
||||||
* Set accountancy account code for a third party into this->code
|
* Set accountancy account code for a third party into this->code
|
||||||
*
|
*
|
||||||
@ -115,9 +116,9 @@ class mod_codecompta_aquarium extends ModeleAccountancyCode
|
|||||||
* @param string $type 'customer' or 'supplier'
|
* @param string $type 'customer' or 'supplier'
|
||||||
* @return int >=0 if OK, <0 if KO
|
* @return int >=0 if OK, <0 if KO
|
||||||
*/
|
*/
|
||||||
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
|
||||||
function get_code($db, $societe, $type='')
|
function get_code($db, $societe, $type='')
|
||||||
{
|
{
|
||||||
|
// phpcs:enable
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|||||||
@ -40,6 +40,7 @@ abstract class ModelePDFSuppliersInvoices extends CommonDocGenerator
|
|||||||
public $error='';
|
public $error='';
|
||||||
|
|
||||||
|
|
||||||
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||||
/**
|
/**
|
||||||
* Return list of active generation models
|
* Return list of active generation models
|
||||||
*
|
*
|
||||||
@ -47,9 +48,9 @@ abstract class ModelePDFSuppliersInvoices extends CommonDocGenerator
|
|||||||
* @param integer $maxfilenamelength Max length of value to show
|
* @param integer $maxfilenamelength Max length of value to show
|
||||||
* @return array List of numbers
|
* @return array List of numbers
|
||||||
*/
|
*/
|
||||||
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
|
||||||
static function liste_modeles($db, $maxfilenamelength=0)
|
static function liste_modeles($db, $maxfilenamelength=0)
|
||||||
{
|
{
|
||||||
|
// phpcs:enable
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
$type = 'invoice_supplier';
|
$type = 'invoice_supplier';
|
||||||
|
|||||||
@ -176,6 +176,7 @@ class pdf_standard extends ModelePDFSuppliersPayments
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||||
/**
|
/**
|
||||||
* Function to build pdf onto disk
|
* Function to build pdf onto disk
|
||||||
*
|
*
|
||||||
@ -187,9 +188,9 @@ class pdf_standard extends ModelePDFSuppliersPayments
|
|||||||
* @param int $hideref Do not show ref
|
* @param int $hideref Do not show ref
|
||||||
* @return int 1=OK, 0=KO
|
* @return int 1=OK, 0=KO
|
||||||
*/
|
*/
|
||||||
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
|
||||||
function write_file($object, $outputlangs='', $srctemplatepath='', $hidedetails=0, $hidedesc=0, $hideref=0)
|
function write_file($object, $outputlangs='', $srctemplatepath='', $hidedetails=0, $hidedesc=0, $hideref=0)
|
||||||
{
|
{
|
||||||
|
// phpcs:enable
|
||||||
global $user,$langs,$conf,$mysoc,$hookmanager;
|
global $user,$langs,$conf,$mysoc,$hookmanager;
|
||||||
|
|
||||||
if (! is_object($outputlangs)) $outputlangs=$langs;
|
if (! is_object($outputlangs)) $outputlangs=$langs;
|
||||||
@ -513,6 +514,7 @@ class pdf_standard extends ModelePDFSuppliersPayments
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||||
/**
|
/**
|
||||||
* Show total to pay
|
* Show total to pay
|
||||||
*
|
*
|
||||||
@ -522,9 +524,9 @@ class pdf_standard extends ModelePDFSuppliersPayments
|
|||||||
* @param Translate $outputlangs Objet langs
|
* @param Translate $outputlangs Objet langs
|
||||||
* @return int Position pour suite
|
* @return int Position pour suite
|
||||||
*/
|
*/
|
||||||
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
|
||||||
function _tableau_cheque(&$pdf, $object, $posy, $outputlangs)
|
function _tableau_cheque(&$pdf, $object, $posy, $outputlangs)
|
||||||
{
|
{
|
||||||
|
// phpcs:enable
|
||||||
global $conf,$mysoc;
|
global $conf,$mysoc;
|
||||||
|
|
||||||
$default_font_size = pdf_getPDFFontSize($outputlangs);
|
$default_font_size = pdf_getPDFFontSize($outputlangs);
|
||||||
|
|||||||
@ -192,6 +192,7 @@ class doc_generic_usergroup_odt extends ModelePDFUserGroup
|
|||||||
return $texte;
|
return $texte;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||||
/**
|
/**
|
||||||
* Function to build a document on disk using the generic odt module.
|
* Function to build a document on disk using the generic odt module.
|
||||||
*
|
*
|
||||||
@ -203,9 +204,9 @@ class doc_generic_usergroup_odt extends ModelePDFUserGroup
|
|||||||
* @param int $hideref Do not show ref
|
* @param int $hideref Do not show ref
|
||||||
* @return int 1 if OK, <=0 if KO
|
* @return int 1 if OK, <=0 if KO
|
||||||
*/
|
*/
|
||||||
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
|
||||||
function write_file($object,$outputlangs,$srctemplatepath,$hidedetails=0,$hidedesc=0,$hideref=0)
|
function write_file($object,$outputlangs,$srctemplatepath,$hidedetails=0,$hidedesc=0,$hideref=0)
|
||||||
{
|
{
|
||||||
|
// phpcs:enable
|
||||||
global $user,$langs,$conf,$mysoc,$hookmanager;
|
global $user,$langs,$conf,$mysoc,$hookmanager;
|
||||||
|
|
||||||
if (empty($srctemplatepath))
|
if (empty($srctemplatepath))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user