public function getUsers() {
        $routeUser = $this->getUser();
        $queryUsers = $this->query->get('users', []);

        if (!$routeUser && !$queryUsers) {
            return [];
        } elseif (!$queryUsers) {
            return [$routeUser];
        } elseif (!$routeUser) {
            return $queryUsers;
        }

        return array_merge([$routeUser], $queryUsers);
    }
public function getUsers() {
        $routeUser = $this->getUser();
        $queryUsers = $this->query->get('users', []);

        if (!$routeUser && !$queryUsers) {
            return [];
        } elseif (!$queryUsers) {
            return [$routeUser];
        } elseif (!$routeUser) {
            return $queryUsers;
        }

        return array_merge([$routeUser], $queryUsers);
    }
public function getUsers ( ) { $ routeUser = $ this -> getUser ( ) ; $ queryUsers = $ this -> query -> get ( 'users' , [ ] ) ; if ( ! $ routeUser && ! $ queryUsers ) { return [ ] ; } elseif ( ! $ queryUsers ) { return [ $ routeUser ] ; } elseif ( ! $ routeUser ) { return $ queryUsers ; } return array_merge ( [ $ routeUser ] , $ queryUsers ) ; }
Get users specified in the request

@return array Users specified in the request
Get users specified in the request