Lowercase NULL, TRUE, FALSE according to PSR2

This commit is contained in:
Laurent Destailleur
2018-04-16 13:51:16 +02:00
parent c702c88fde
commit 0d0da234b1
56 changed files with 138 additions and 138 deletions

View File

@@ -179,7 +179,7 @@ class Orders extends DolibarrApi
* @param array $request_data Request data
* @return int ID of order
*/
function post($request_data = NULL)
function post($request_data = null)
{
if(! DolibarrApiAccess::$user->rights->commande->creer) {
throw new RestException(401, "Insuffisant rights");
@@ -245,7 +245,7 @@ class Orders extends DolibarrApi
*
* @return int
*/
function postLine($id, $request_data = NULL) {
function postLine($id, $request_data = null) {
if(! DolibarrApiAccess::$user->rights->commande->creer) {
throw new RestException(401);
}
@@ -308,7 +308,7 @@ class Orders extends DolibarrApi
*
* @return object
*/
function putLine($id, $lineid, $request_data = NULL) {
function putLine($id, $lineid, $request_data = null) {
if(! DolibarrApiAccess::$user->rights->commande->creer) {
throw new RestException(401);
}
@@ -402,7 +402,7 @@ class Orders extends DolibarrApi
*
* @return int
*/
function put($id, $request_data = NULL) {
function put($id, $request_data = null) {
if (! DolibarrApiAccess::$user->rights->commande->creer) {
throw new RestException(401);
}