Fix warning

This commit is contained in:
Laurent Destailleur
2023-05-01 17:21:00 +02:00
parent 4f7f2b4e5a
commit 2d17e77ff7
24 changed files with 71 additions and 44 deletions

View File

@@ -1181,7 +1181,7 @@ class pdf_standard_asset extends ModelePDFAsset
* @param int $hidedetails Do not show line details
* @param int $hidedesc Do not show desc
* @param int $hideref Do not show ref
* @return null
* @return void
*/
public function defineColumnField($object, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
{

View File

@@ -706,6 +706,7 @@ class pdf_einstein extends ModelePDFCommandes
protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs)
{
// phpcs:enable
return 1;
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore

View File

@@ -927,6 +927,7 @@ class pdf_eratosthene extends ModelePDFCommandes
*/
protected function drawPaymentsTable(&$pdf, $object, $posy, $outputlangs)
{
return 0;
}
/**
@@ -1733,7 +1734,7 @@ class pdf_eratosthene extends ModelePDFCommandes
* @param int $hidedetails Do not show line details
* @param int $hidedesc Do not show desc
* @param int $hideref Do not show ref
* @return null
* @return void
*/
public function defineColumnField($object, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
{

View File

@@ -933,7 +933,7 @@ class pdf_storm extends ModelePDFDeliveryOrder
* @param int $hidedetails Do not show line details
* @param int $hidedesc Do not show desc
* @param int $hideref Do not show ref
* @return null
* @return void
*/
public function defineColumnField($object, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
{

View File

@@ -1236,7 +1236,7 @@ class pdf_espadon extends ModelePdfExpedition
* @param int $hidedetails Do not show line details
* @param int $hidedesc Do not show desc
* @param int $hideref Do not show ref
* @return null
* @return void
*/
public function defineColumnField($object, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
{

View File

@@ -78,7 +78,7 @@ class ExportCsvIso extends ExportCsv
global $conf;
$conf->global->EXPORT_CSV_FORCE_CHARSET = 'ISO-8859-1';
parent::write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types);
return parent::write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types);
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
@@ -96,6 +96,6 @@ class ExportCsvIso extends ExportCsv
global $conf;
$conf->global->EXPORT_CSV_FORCE_CHARSET = 'ISO-8859-1';
parent::write_record($array_selected_sorted, $objp, $outputlangs, $array_types);
return parent::write_record($array_selected_sorted, $objp, $outputlangs, $array_types);
}
}

View File

@@ -76,7 +76,7 @@ class ExportCsvUtf8 extends ExportCsv
global $conf;
$conf->global->EXPORT_CSV_FORCE_CHARSET = 'UTF-8';
parent::write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types);
return parent::write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types);
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
@@ -94,6 +94,6 @@ class ExportCsvUtf8 extends ExportCsv
global $conf;
$conf->global->EXPORT_CSV_FORCE_CHARSET = 'UTF-8';
parent::write_record($array_selected_sorted, $objp, $outputlangs, $array_types);
return parent::write_record($array_selected_sorted, $objp, $outputlangs, $array_types);
}
}

View File

@@ -2448,7 +2448,7 @@ class pdf_sponge extends ModelePDFFactures
* @param int $hidedetails Do not show line details
* @param int $hidedesc Do not show desc
* @param int $hideref Do not show ref
* @return null
* @return void
*/
public function defineColumnField($object, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
{

View File

@@ -341,6 +341,7 @@ class ImportXlsx extends ModeleImports
// phpcs:enable
$this->workbook->disconnectWorksheets();
unset($this->workbook);
return 0;
}

View File

@@ -713,6 +713,7 @@ class pdf_vinci extends ModelePDFMo
protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs)
{
// phpcs:enable
return 1;
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
@@ -1365,7 +1366,7 @@ class pdf_vinci extends ModelePDFMo
* @param int $hidedetails Do not show line details
* @param int $hidedesc Do not show desc
* @param int $hideref Do not show ref
* @return null
* @return void
*/
public function defineColumnField($object, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
{

View File

@@ -903,6 +903,7 @@ class pdf_azur extends ModelePDFPropales
protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs)
{
// phpcs:enable
return 1;
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore

View File

@@ -1875,7 +1875,7 @@ class pdf_cyan extends ModelePDFPropales
* @param int $hidedetails Do not show line details
* @param int $hidedesc Do not show desc
* @param int $hideref Do not show ref
* @return null
* @return void
*/
public function defineColumnField($object, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
{

View File

@@ -1448,7 +1448,7 @@ class pdf_eagle_proforma extends ModelePDFCommandes
* @param int $hidedetails Do not show line details
* @param int $hidedesc Do not show desc
* @param int $hideref Do not show ref
* @return null
* @return void
*/
public function defineColumnField($object, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
{

View File

@@ -870,6 +870,7 @@ class pdf_cornas extends ModelePDFSuppliersOrders
protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs)
{
// phpcs:enable
return 1;
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
@@ -1497,7 +1498,7 @@ class pdf_cornas extends ModelePDFSuppliersOrders
* @param int $hidedetails Do not show line details
* @param int $hidedesc Do not show desc
* @param int $hideref Do not show ref
* @return null
* @return void
*/
public function defineColumnField($object, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
{

View File

@@ -752,6 +752,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs)
{
// phpcs:enable
return 1;
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore

View File

@@ -739,6 +739,7 @@ class pdf_aurore extends ModelePDFSupplierProposal
protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs)
{
// phpcs:enable
return 1;
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore