@@ -50,9 +50,9 @@ trait AclTrait {
5050	 * Finds the authorization adapter to use for this request. 
5151	 * 
5252	 * @param string $adapter Acl adapter to load. 
53- 	 * @return \TinyAuth\Auth\AclAdapter\AclAdapterInterface 
5453	 * @throws \Cake\Core\Exception\Exception 
5554	 * @throws \InvalidArgumentException 
55+ 	 * @return \TinyAuth\Auth\AclAdapter\AclAdapterInterface 
5656	 */ 
5757	protected  function  _loadAclAdapter ($ adapter
5858		if  ($ this _aclAdapter  !== null ) {
@@ -82,8 +82,8 @@ protected function _loadAclAdapter($adapter) {
8282	 * 
8383	 * @param array $user User data 
8484	 * @param array $params Request params 
85- 	 * @return bool Success 
8685	 * @throws \Cake\Core\Exception\Exception 
86+ 	 * @return bool Success 
8787	 */ 
8888	protected  function  _checkUser (array  $ userarray  $ params
8989		if  ($ this getConfig ('includeAuthentication ' ) && $ this _isPublic ($ params
@@ -341,8 +341,8 @@ protected function _isPublic(array $params) {
341341	 * Hack to get the auth data here for hasAccess(). 
342342	 * We re-use the cached data for performance reasons. 
343343	 * 
344- 	 * @return array 
345344	 * @throws \Cake\Core\Exception\Exception 
345+ 	 * @return array 
346346	 */ 
347347	protected  function  _getAuth () {
348348		if  ($ this auth ) {
@@ -426,6 +426,7 @@ protected function _constructIniKey($params) {
426426		if  (!empty ($ params'plugin ' ])) {
427427			$ res$ params'plugin ' ] . ". $ res ;
428428		}
429+ 
429430		return  $ res
430431	}
431432
@@ -435,8 +436,8 @@ protected function _constructIniKey($params) {
435436	 * Will look for a roles array in 
436437	 * Configure first, tries database roles table next. 
437438	 * 
438- 	 * @return int[] List with all available roles 
439439	 * @throws \Cake\Core\Exception\Exception 
440+ 	 * @return int[] List with all available roles 
440441	 */ 
441442	protected  function  _getAvailableRoles () {
442443		if  ($ this _roles  !== null ) {
@@ -496,8 +497,8 @@ protected function _getAvailableRoles() {
496497	 *   in multi-role mode) 
497498	 * 
498499	 * @param array $user The user to get the roles for 
499- 	 * @return int[] List with all role ids belonging to the user 
500500	 * @throws \Cake\Core\Exception\Exception 
501+ 	 * @return int[] List with all role ids belonging to the user 
501502	 */ 
502503	protected  function  _getUserRoles ($ user
503504		// Single-role from session 
@@ -513,6 +514,7 @@ protected function _getUserRoles($user) {
513514			if  (!isset ($ user$ this getConfig ('roleColumn ' )])) {
514515				return  [];
515516			}
517+ 
516518			return  $ this _mapped ([$ user$ this getConfig ('roleColumn ' )]]);
517519		}
518520
@@ -522,6 +524,7 @@ protected function _getUserRoles($user) {
522524			if  (isset ($ userRoles0 ]['id ' ])) {
523525				$ userRolesextract ($ userRoles'{n}.id ' );
524526			}
527+ 
525528			return  $ this _mapped ((array )$ userRoles
526529		}
527530
@@ -532,6 +535,7 @@ protected function _getUserRoles($user) {
532535			if  (isset ($ userRoles0 ][$ this getConfig ('roleColumn ' )])) {
533536				$ userRolesextract ($ userRoles'{n}. '  . $ this getConfig ('roleColumn ' ));
534537			}
538+ 
535539			return  $ this _mapped ((array )$ userRoles
536540		}
537541
@@ -550,8 +554,8 @@ protected function _getUserRoles($user) {
550554	protected  function  _pivotTableName () {
551555		$ pivotTableName$ this getConfig ('pivotTable ' );
552556		if  (!$ pivotTableName
553- 			list ( , $ rolesTableName)  = pluginSplit ($ this getConfig ('rolesTable ' ));
554- 			list ( , $ usersTableName)  = pluginSplit ($ this getConfig ('usersTable ' ));
557+ 			[ , $ rolesTableName]  = pluginSplit ($ this getConfig ('rolesTable ' ));
558+ 			[ , $ usersTableName]  = pluginSplit ($ this getConfig ('usersTable ' ));
555559			$ tables
556560				$ usersTableName
557561				$ rolesTableName
0 commit comments