Fix phpcs

This commit is contained in:
Laurent Destailleur 2015-06-05 18:43:14 +02:00
parent 43ed48896a
commit b7cf070d2d
2 changed files with 8 additions and 8 deletions

View File

@ -50,7 +50,7 @@ class DolibarrApiAccess implements iAuthenticate
* @return bool * @return bool
* @throws RestException * @throws RestException
*/ */
public function __isAllowed() public function _isAllowed()
{ {
global $db; global $db;
@ -113,7 +113,7 @@ class DolibarrApiAccess implements iAuthenticate
* @example Digest * @example Digest
* @example OAuth * @example OAuth
*/ */
public function __getWWWAuthenticateString() public function _getWWWAuthenticateString()
{ {
return ''; return '';
} }

View File

@ -48,7 +48,7 @@ if (empty($conf->global->MAIN_MODULE_API))
} }
use \Luracast\Restler\Defaults; use \Luracast\Restler\Defaults;
Defaults::setProperty('authenticationMethod','__isAllowed'); Defaults::setProperty('authenticationMethod','_isAllowed');
$api = new DolibarrApi($db); $api = new DolibarrApi($db);