Skip to content

Commit

Permalink
move phpcs:ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Sep 4, 2018
1 parent d08b68e commit 1ae1afe
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
3 changes: 2 additions & 1 deletion htdocs/core/modules/expedition/doc/pdf_merou.modules.php
Expand Up @@ -142,6 +142,7 @@ function __construct($db=0)
}


// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
/**
* Function to build pdf onto disk
*
Expand All @@ -153,9 +154,9 @@ function __construct($db=0)
* @param int $hideref Do not show ref
* @return int 1=OK, 0=KO
*/
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
function write_file(&$object,$outputlangs,$srctemplatepath='',$hidedetails=0,$hidedesc=0,$hideref=0)
{
// phpcs:enable
global $user,$conf,$langs,$mysoc,$hookmanager;

$object->fetch_thirdparty();
Expand Down
3 changes: 2 additions & 1 deletion htdocs/core/modules/product/doc/pdf_standard.modules.php
Expand Up @@ -117,6 +117,7 @@ public function __construct($db)
}


// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
/**
* Function to build a document on disk using the generic odt module.
*
Expand All @@ -128,9 +129,9 @@ public function __construct($db)
* @param int $hideref Do not show ref
* @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)
{
// phpcs:enable
global $user,$langs,$conf,$mysoc,$db,$hookmanager;

if (! is_object($outputlangs)) $outputlangs=$langs;
Expand Down
19 changes: 12 additions & 7 deletions htdocs/core/modules/propale/doc/pdf_azur.modules.php
Expand Up @@ -2,8 +2,8 @@
/* Copyright (C) 2004-2014 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2008 Raphael Bertrand <raphael.bertrand@resultic.fr>
* Copyright (C) 2010-2015 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2012 Christophe Battarel <christophe.battarel@altairis.fr>
* Copyright (C) 2010-2015 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2012 Christophe Battarel <christophe.battarel@altairis.fr>
* Copyright (C) 2012 Cedric Salvador <csalvador@gpcsolutions.fr>
* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
* Copyright (C) 2017-2018 Ferran Marcet <fmarcet@2byte.es>
Expand Down Expand Up @@ -201,6 +201,7 @@ function __construct($db)
$this->atleastonediscount=0;
}

// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
/**
* Function to build pdf onto disk
*
Expand All @@ -212,9 +213,9 @@ function __construct($db)
* @param int $hideref Do not show ref
* @return int 1=OK, 0=KO
*/
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
function write_file($object,$outputlangs,$srctemplatepath='',$hidedetails=0,$hidedesc=0,$hideref=0)
{
// phpcs:enable
global $user,$langs,$conf,$mysoc,$db,$hookmanager,$nblignes;

if (! is_object($outputlangs)) $outputlangs=$langs;
Expand Down Expand Up @@ -829,6 +830,7 @@ function write_file($object,$outputlangs,$srctemplatepath='',$hidedetails=0,$hid
}
}

// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
/**
* Show payments table
*
Expand All @@ -838,12 +840,13 @@ function write_file($object,$outputlangs,$srctemplatepath='',$hidedetails=0,$hid
* @param Translate $outputlangs Object langs for output
* @return int <0 if KO, >0 if OK
*/
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
function _tableau_versements(&$pdf, $object, $posy, $outputlangs)
{
// phpcs:enable
}


// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
/**
* Show miscellaneous information (payment mode, payment term, ...)
*
Expand All @@ -853,9 +856,9 @@ function _tableau_versements(&$pdf, $object, $posy, $outputlangs)
* @param Translate $outputlangs Langs object
* @return void
*/
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
function _tableau_info(&$pdf, $object, $posy, $outputlangs)
{
// phpcs:enable
global $conf;
$default_font_size = pdf_getPDFFontSize($outputlangs);

Expand Down Expand Up @@ -1024,6 +1027,7 @@ function _tableau_info(&$pdf, $object, $posy, $outputlangs)
}


// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
/**
* Show total to pay
*
Expand All @@ -1034,9 +1038,9 @@ function _tableau_info(&$pdf, $object, $posy, $outputlangs)
* @param Translate $outputlangs Objet langs
* @return int Position pour suite
*/
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs)
{
// phpcs:enable
global $conf,$mysoc;
$default_font_size = pdf_getPDFFontSize($outputlangs);

Expand Down Expand Up @@ -1659,6 +1663,7 @@ function _pagefoot(&$pdf,$object,$outputlangs,$hidefreetext=0)
return pdf_pagefoot($pdf,$outputlangs,'PROPOSAL_FREE_TEXT',$this->emetteur,$this->marge_basse,$this->marge_gauche,$this->page_hauteur,$object,$showdetails,$hidefreetext);
}

// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
/**
* Show area for the customer to sign
*
Expand All @@ -1668,9 +1673,9 @@ function _pagefoot(&$pdf,$object,$outputlangs,$hidefreetext=0)
* @param Translate $outputlangs Objet langs
* @return int Position pour suite
*/
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
function _signature_area(&$pdf, $object, $posy, $outputlangs)
{
// phpcs:enable
global $conf;
$default_font_size = pdf_getPDFFontSize($outputlangs);
$tab_top = $posy + 4;
Expand Down

0 comments on commit 1ae1afe

Please sign in to comment.