mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Lowercase NULL, TRUE, FALSE according to PSR2
This commit is contained in:
@@ -192,7 +192,7 @@ class MyModuleApi extends DolibarrApi
|
||||
*
|
||||
* @url POST myobjects/
|
||||
*/
|
||||
function post($request_data = NULL)
|
||||
function post($request_data = null)
|
||||
{
|
||||
if(! DolibarrApiAccess::$user->rights->myobject->create) {
|
||||
throw new RestException(401);
|
||||
@@ -218,7 +218,7 @@ class MyModuleApi extends DolibarrApi
|
||||
*
|
||||
* @url PUT myobjects/{id}
|
||||
*/
|
||||
function put($id, $request_data = NULL)
|
||||
function put($id, $request_data = null)
|
||||
{
|
||||
if(! DolibarrApiAccess::$user->rights->myobject->create) {
|
||||
throw new RestException(401);
|
||||
|
||||
Reference in New Issue
Block a user