@param string $username
@param int    $page
@param int    $status

@return array
@throws ParserException
179237
public function UserMangaList(string $username, int $page = 1, int $status = 7): array
    {
        return $this->myanimelist->getUserMangaList(
            new Request\User\UserMangaListRequest($username, $page, $status)
        );
    }
12355
protected function parseStatusArguments(string $status, array $args): array
    {
        $name = ucfirst($status);

        return wp_parse_args($args, [
            'label' => $name,
            'public' => true,
            'exclude_from_search' => false,
            'show_in_admin_all_list' => true,
            'show_in_admin_status_list' => true,
            'label_count' => _n_noop(
                $name.' <span class="count">(%s)</span>',
                $name.' <span class="count">(%s)</span>'
            ),
            'publish_text' => __('Apply Changes')
        ]);
    }
1346703
public function serializeList(PageModel $pageModel, $type, $page, $statusCode = Response::HTTP_OK)
    {
        $page = new ResponsePageModel($pageModel, $type, $page);

        return new JsonResponse($page->getBody(), $statusCode);
    }
880091
public function listPublicUserPerformedEvents(string $username): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/users/:username/events/public', $username));
    }
949106
public function getUserByUsername($username)
    {
        $return = array();

        $users = $this->repository->users;
        foreach ($users as $user) {
            if ($user->username == $username) {
                $return = $user;
                break;
            }
        }

        return $return;
    }
383844
public function index(Request $request, $status = null)
    {
        // Set roles that have access
        $request->user()->authorizeRoles(['admin']);

        // Get and return users to view
        $users = User::paginate(self::PAGINATION_ITEMS);
        return view('user::index', ['users' => $users]);
    }
12067
public function getUserNotificationsList(User $user, $page = 1, $maxResult = -1, $isRss = false, $notificationParameters = null, $category = null)
    {
        $query = $this->getUserNotifications($user, $page, $maxResult, $isRss, $notificationParameters, false, $category);
        $adapter = new DoctrineORMAdapter($query, false);
        $pager = new Pagerfanta($adapter);
        $pager->setMaxPerPage($maxResult);

        try {
            $pager->setCurrentPage($page);
        } catch (NotValidCurrentPageException $e) {
            throw new NotFoundHttpException();
        }
        $notifications = $this->renderNotifications($pager->getCurrentPageResults());

        return [
            'pager' => $pager,
            'notificationViews' => $notifications['views'],
            'colors' => $notifications['colors'],
        ];
    }
371857
function get_favorites( $page = 1, $count = 50 )
	{
		$params = array();
		$params['page'] = intval($page);
		$params['count'] = intval($count);

		return $this->oauth->get( 'favorites', $params );
	}
702141
public function postUser($username, $originId, $parameters = [])
    {
        $user = [
            'username' => $username,
            'originId' => $originId,
        ];

        $user += $parameters;

        return $this->jsonCall('POST', 'users', $user);
    }
1158047
public function getVisibleUsers($page)
    {
        $roleSuperAdmin = 'ROLE_SUPER_ADMIN';

        if ($this->securityContext->isGranted($roleSuperAdmin)) {
            $entities = $this->userManager->findPaginateUsers($page);
        } else {
            $entities = $this->userManager->findPaginateUsersExcludingRole($roleSuperAdmin, $page);
        }

        return $entities;
    }
163318
public function create(Page &$page)
    {
        $data = $page->exportData();
        $endpoint= '/admin/pages.json';
        $response = $this->request(
            $endpoint, 'POST', array(
            'page' => $data
            )
        );
        $page->setData($response['page']);
    }
1253377
public static function pageGetArray(?string $page = null): array
    {
        if ($page === null) {
            $page = $_SERVER['PHP_SELF'];
        }
        return self::getArray($page);
    }
372504
public function TopCharacters(int $page = 1): array
    {
        return $this->myanimelist->getTopCharacters(
            new Request\Top\TopCharactersRequest($page)
        );
    }
980692
public function postUsersConfig($serverName, $body)
    {
        list($response) = $this->postUsersConfigWithHttpInfo($serverName, $body);
        return $response;
    }
525892
public function forUser($username)
    {
        $options = [
            'username' => $username,
            'field_set_key' => 'detailed',
        ];

        $result = $this->get(UrlBuilder::RESOURCE_GET_BOARDS, $options);

        return $result ?: [];
    }
384549
public function index($page = null, $status = null)
    {
        $url = 'projects.json';

        $projects = $this->client->get($url, [
            'query' => [
                'status' => $status,
                'page' => $page,
            ],
        ]);

        return $this->indexResponse($projects, Project::class);
    }
1199362
public function index($page = null)
    {
        $url = 'people.json';

        $people = $this->client->get($url, [
            'query' => [
                'page' => $page,
            ]
        ]);

        return $this->indexResponse($people, Person::class);
    }