src/Model/Table/GroupsTable.php
public function getRemoteGroups(): array
    {
        $result = [];

        if (!(bool)Configure::read('Groups.remoteGroups.enabled')) {
            return $result;
        }

        if ((bool)Configure::read('Groups.remoteGroups.LDAP.enabled')) {
            $result = $this->_getLdapGroups();
        }

        return $result;
    }
public function getRemoteGroups(): array
    {
        $result = [];

        if (!(bool)Configure::read('Groups.remoteGroups.enabled')) {
            return $result;
        }

        if ((bool)Configure::read('Groups.remoteGroups.LDAP.enabled')) {
            $result = $this->_getLdapGroups();
        }

        return $result;
    }
public function getRemoteGroups ( ) : array { $ result = [ ] ; if ( ! ( bool ) Configure :: read ( 'Groups.remoteGroups.enabled' ) ) { return $ result ; } if ( ( bool ) Configure :: read ( 'Groups.remoteGroups.LDAP.enabled' ) ) { $ result = $ this -> _getLdapGroups ( ) ; } return $ result ; }
Fetch remote groups.

@return mixed[]
Fetch remote groups .