Fix remove a lot of warnings on Eclipse

This commit is contained in:
Laurent Destailleur 2020-02-21 17:33:45 +01:00
parent ec09e7222d
commit 55bef402c4
10 changed files with 20 additions and 12 deletions

View File

@ -2,6 +2,9 @@
<!ELEMENT ruleset (description,arg*,exclude-pattern*,rule+)>
<!ATTLIST ruleset name CDATA "">
<!ELEMENT description (#PCDATA)>
<!ELEMENT arg (#PCDATA)>
<!ATTLIST arg name CDATA "">
<!ATTLIST arg value CDATA "">
<!ELEMENT exclude-pattern (#PCDATA)>
<!ATTLIST exclude-pattern type CDATA "">
<!ELEMENT rule (properties*,severity*,exclude*)>
@ -11,3 +14,5 @@
<!ATTLIST property name CDATA "">
<!ATTLIST property value CDATA "">
<!ELEMENT severity (#PCDATA)>
<!ELEMENT exclude (#PCDATA)>
<!ATTLIST exclude name CDATA "">

View File

@ -25,6 +25,8 @@
* \file htdocs/api/admin/explorer.php
*/
use Luracast\Restler\Routes;
require_once '../../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
require_once DOL_DOCUMENT_ROOT.'/api/class/api.class.php';

View File

@ -90,7 +90,7 @@ class DolEditor
{
$content = dol_htmlentitiesbr($content); // If content is not HTML, we convert to HTML.
}
if ($this->tool == 'fckeditor')
/*if ($this->tool == 'fckeditor')
{
require_once DOL_DOCUMENT_ROOT.'/includes/fckeditor/fckeditor.php';
@ -121,7 +121,7 @@ class DolEditor
$this->editor->Config['CustomConfigurationsPath'] = DOL_URL_ROOT.'/theme/'.$conf->theme.'/fckeditor/fckconfig.js';
$this->editor->Config['SkinPath'] = DOL_URL_ROOT.'/theme/'.$conf->theme.'/fckeditor/';
}
}
}*/
// Define some properties
if (in_array($this->tool, array('textarea', 'ckeditor', 'ace')))

View File

@ -102,7 +102,7 @@ class Menubase
/**
* @var string Key for menu translation
* @deprecated
* @see title
* @see $title
*/
public $titre;

View File

@ -185,7 +185,7 @@ class doc_generic_contract_odt extends ModelePDFContract
/**
* Function to build a document on disk using the generic odt module.
*
* @param Contract $object Object source to build document
* @param Contrat $object Object source to build document
* @param Translate $outputlangs Lang output object
* @param string $srctemplatepath Full path of source filename for generator using a template file
* @param int $hidedetails Do not show line details

View File

@ -47,7 +47,7 @@ class mod_task_simple extends ModeleNumRefTask
/**
* @var string
* @deprecated
* @see name
* @see $name
*/
public $nom='Simple';

View File

@ -44,7 +44,7 @@ class mod_task_universal extends ModeleNumRefTask
/**
* @var string
* @deprecated
* @see name
* @see $name
*/
public $nom = 'Universal';

View File

@ -209,7 +209,7 @@ class doc_generic_stock_odt extends ModelePDFStock
/**
* Function to build a document on disk using the generic odt module.
*
* @param Stock $object Object source to build document
* @param Entrepot $object Object source to build document
* @param Translate $outputlangs Lang output object
* @param string $srctemplatepath Full path of source filename for generator using a template file
* @param int $hidedetails Do not show line details
@ -250,7 +250,7 @@ class doc_generic_stock_odt extends ModelePDFStock
if (!is_object($object))
{
$id = $object;
$object = new Stock($this->db);
$object = new Entrepot($this->db);
$result = $object->fetch($id);
if ($result < 0)
{
@ -258,7 +258,8 @@ class doc_generic_stock_odt extends ModelePDFStock
return -1;
}
}
$stockFournisseur = new StockFournisseur($this->db);
$stockFournisseur = new ProductFournisseur($this->db);
$supplierprices = $stockFournisseur->list_stock_fournisseur_price($object->id);
$object->supplierprices = $supplierprices;

View File

@ -181,7 +181,7 @@ class pdf_standard extends ModelePDFStock
/**
* Function to build a document on disk using the generic odt module.
*
* @param Stock $object Object source to build document
* @param Entrepot $object Object source to build document
* @param Translate $outputlangs Lang output object
* @param string $srctemplatepath Full path of source filename for generator using a template file
* @param int $hidedetails Do not show line details

View File

@ -252,8 +252,8 @@ class SupplierOrders extends DolibarrApi
/**
* Delete supplier order
*
* @param int $id Supplier order ID
* @return type
* @param int $id Supplier order ID
* @return array Array of result
*/
public function delete($id)
{