test phpcs v3
This commit is contained in:
parent
9786743795
commit
b00164ca39
@ -293,7 +293,6 @@ script:
|
|||||||
# Ensure we catch errors
|
# Ensure we catch errors
|
||||||
set -e
|
set -e
|
||||||
# Exclusions are defined in the ruleset.xml file
|
# Exclusions are defined in the ruleset.xml file
|
||||||
phpcs --version
|
|
||||||
#phpcs -s -n -p -d memory_limit=-1 --colors --tab-width=4 --standard=dev/setup/codesniffer/ruleset.xml --encoding=utf-8 .
|
#phpcs -s -n -p -d memory_limit=-1 --colors --tab-width=4 --standard=dev/setup/codesniffer/ruleset.xml --encoding=utf-8 .
|
||||||
phpcs -s -p -d memory_limit=-1 --colors --tab-width=4 --standard=dev/setup/codesniffer/ruleset.xml --encoding=utf-8 --runtime-set ignore_warnings_on_exit true .
|
phpcs -s -p -d memory_limit=-1 --colors --tab-width=4 --standard=dev/setup/codesniffer/ruleset.xml --encoding=utf-8 --runtime-set ignore_warnings_on_exit true .
|
||||||
set +e
|
set +e
|
||||||
|
|||||||
@ -777,8 +777,8 @@ class MouvementStock extends CommonObject
|
|||||||
* Create or update batch record (update table llx_product_batch). No check is done here, done by parent.
|
* Create or update batch record (update table llx_product_batch). No check is done here, done by parent.
|
||||||
*
|
*
|
||||||
* @param array|int $dluo Could be either
|
* @param array|int $dluo Could be either
|
||||||
* - int if row id of product_batch table
|
* - int if row id of product_batch table
|
||||||
* - or complete array('fk_product_stock'=>, 'batchnumber'=>)
|
* - or complete array('fk_product_stock'=>, 'batchnumber'=>)
|
||||||
* @param int $qty Quantity of product with batch number. May be a negative amount.
|
* @param int $qty Quantity of product with batch number. May be a negative amount.
|
||||||
* @return int <0 if KO, else return productbatch id
|
* @return int <0 if KO, else return productbatch id
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -199,72 +199,72 @@ if ($resql)
|
|||||||
'</td>'.
|
'</td>'.
|
||||||
'<td class="liste_titre" align="right">';
|
'<td class="liste_titre" align="right">';
|
||||||
$searchpicto=$form->showFilterAndCheckAddButtons(0);
|
$searchpicto=$form->showFilterAndCheckAddButtons(0);
|
||||||
print $searchpicto;
|
print $searchpicto;
|
||||||
'</td>'.
|
print '</td>';
|
||||||
'</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print_liste_field_titre(
|
print_liste_field_titre(
|
||||||
'Ref',
|
'Ref',
|
||||||
$_SERVER['PHP_SELF'],
|
$_SERVER['PHP_SELF'],
|
||||||
'cf.ref',
|
'cf.ref',
|
||||||
'',
|
'',
|
||||||
$param,
|
$param,
|
||||||
'',
|
'',
|
||||||
$sortfield,
|
$sortfield,
|
||||||
$sortorder
|
$sortorder
|
||||||
);
|
);
|
||||||
print_liste_field_titre(
|
print_liste_field_titre(
|
||||||
'Company',
|
'Company',
|
||||||
$_SERVER['PHP_SELF'],
|
$_SERVER['PHP_SELF'],
|
||||||
's.nom',
|
's.nom',
|
||||||
'',
|
'',
|
||||||
$param,
|
$param,
|
||||||
'',
|
'',
|
||||||
$sortfield,
|
$sortfield,
|
||||||
$sortorder
|
$sortorder
|
||||||
);
|
);
|
||||||
print_liste_field_titre(
|
print_liste_field_titre(
|
||||||
'Author',
|
'Author',
|
||||||
$_SERVER['PHP_SELF'],
|
$_SERVER['PHP_SELF'],
|
||||||
'u.login',
|
'u.login',
|
||||||
'',
|
'',
|
||||||
'',
|
'',
|
||||||
'',
|
'',
|
||||||
$sortfield,
|
$sortfield,
|
||||||
$sortorder
|
$sortorder
|
||||||
);
|
);
|
||||||
print_liste_field_titre(
|
print_liste_field_titre(
|
||||||
'AmountTTC',
|
'AmountTTC',
|
||||||
$_SERVER['PHP_SELF'],
|
$_SERVER['PHP_SELF'],
|
||||||
'cf.total_ttc',
|
'cf.total_ttc',
|
||||||
'',
|
'',
|
||||||
$param,
|
$param,
|
||||||
'',
|
'',
|
||||||
$sortfield,
|
$sortfield,
|
||||||
$sortorder
|
$sortorder
|
||||||
);
|
);
|
||||||
print_liste_field_titre(
|
print_liste_field_titre(
|
||||||
'OrderCreation',
|
'OrderCreation',
|
||||||
$_SERVER['PHP_SELF'],
|
$_SERVER['PHP_SELF'],
|
||||||
'cf.date_creation',
|
'cf.date_creation',
|
||||||
'',
|
'',
|
||||||
$param,
|
$param,
|
||||||
'',
|
'',
|
||||||
$sortfield,
|
$sortfield,
|
||||||
$sortorder
|
$sortorder
|
||||||
);
|
);
|
||||||
print_liste_field_titre(
|
print_liste_field_titre(
|
||||||
'Status',
|
'Status',
|
||||||
$_SERVER['PHP_SELF'],
|
$_SERVER['PHP_SELF'],
|
||||||
'cf.fk_statut',
|
'cf.fk_statut',
|
||||||
'',
|
'',
|
||||||
$param,
|
$param,
|
||||||
'align="right"',
|
'align="right"',
|
||||||
$sortfield,
|
$sortfield,
|
||||||
$sortorder
|
$sortorder
|
||||||
);
|
);
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
$userstatic = new User($db);
|
$userstatic = new User($db);
|
||||||
|
|
||||||
@ -324,8 +324,8 @@ if ($resql)
|
|||||||
}
|
}
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
print '</table>'.
|
print '</table>';
|
||||||
'</form>';
|
print '</form>';
|
||||||
|
|
||||||
$db->free($resql);
|
$db->free($resql);
|
||||||
|
|
||||||
@ -337,5 +337,4 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
llxFooter();
|
llxFooter();
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|||||||
@ -92,7 +92,7 @@ $server->wsdl->addComplexType(
|
|||||||
/*
|
/*
|
||||||
* Les catégories filles, sous tableau dez la catégorie
|
* Les catégories filles, sous tableau dez la catégorie
|
||||||
*/
|
*/
|
||||||
$server->wsdl->addComplexType(
|
$server->wsdl->addComplexType(
|
||||||
'FillesArray',
|
'FillesArray',
|
||||||
'complexType',
|
'complexType',
|
||||||
'array',
|
'array',
|
||||||
@ -108,38 +108,38 @@ $server->wsdl->addComplexType(
|
|||||||
/*
|
/*
|
||||||
* Image of product
|
* Image of product
|
||||||
*/
|
*/
|
||||||
$server->wsdl->addComplexType(
|
$server->wsdl->addComplexType(
|
||||||
'PhotosArray',
|
'PhotosArray',
|
||||||
'complexType',
|
'complexType',
|
||||||
'array',
|
'array',
|
||||||
'sequence',
|
'sequence',
|
||||||
'',
|
'',
|
||||||
array(
|
array(
|
||||||
'image' => array(
|
'image' => array(
|
||||||
'name' => 'image',
|
'name' => 'image',
|
||||||
'type' => 'tns:image',
|
'type' => 'tns:image',
|
||||||
'minOccurs' => '0',
|
'minOccurs' => '0',
|
||||||
'maxOccurs' => 'unbounded'
|
'maxOccurs' => 'unbounded'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* An image
|
* An image
|
||||||
*/
|
*/
|
||||||
$server->wsdl->addComplexType(
|
$server->wsdl->addComplexType(
|
||||||
'image',
|
'image',
|
||||||
'complexType',
|
'complexType',
|
||||||
'struct',
|
'struct',
|
||||||
'all',
|
'all',
|
||||||
'',
|
'',
|
||||||
array(
|
array(
|
||||||
'photo' => array('name'=>'photo','type'=>'xsd:string'),
|
'photo' => array('name'=>'photo','type'=>'xsd:string'),
|
||||||
'photo_vignette' => array('name'=>'photo_vignette','type'=>'xsd:string'),
|
'photo_vignette' => array('name'=>'photo_vignette','type'=>'xsd:string'),
|
||||||
'imgWidth' => array('name'=>'imgWidth','type'=>'xsd:string'),
|
'imgWidth' => array('name'=>'imgWidth','type'=>'xsd:string'),
|
||||||
'imgHeight' => array('name'=>'imgHeight','type'=>'xsd:string')
|
'imgHeight' => array('name'=>'imgHeight','type'=>'xsd:string')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Retour
|
* Retour
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user