@param int $id

@return array
188418
private function getGroupPermissionHandles($id)
    {
        $permissions = Craft::$app->userPermissions->getPermissionsByGroupId($id);
        $permissions = MigrationManagerHelper::getPermissionHandles($permissions);
        return $permissions;
    }
328579
public function get(string $id = null): array
    {
        if ($this->has($id)) {
            return $this->cache[$id];
        }

        return [];
    }
678818
public function exportById($id): array
    {
        $site = Craft::$app->sites->getSiteById((int) $id);

        return $this->export($site);
    }
273135
public function getActors(int $id): array
    {
        $json = $this->parent->performAPICallWithJsonResponse('get', '/series/'.$id.'/actors');
        return DataParser::parseDataArray($json, Actor::class);
    }
213059
public function getChildren($id): array
    {
        $result = [];
        $childrenIds = (array)($this->childrenIds[$id] ?? []);
        foreach ($childrenIds as $childId) {
            if ($child = $this->getItem($childId)) {
                $result[$childId] = $child;
            }
        }
        return $result;
    }
258982
public function find(int $id)
    {
        if (isset($this->data[$id])) {
            return $this->data[$id];
        }

        return null;
    }
1034074
public function get(int $id)
    {
        $documents = $this->getClient()->call(null, $id, self::ENDPOINT, Document::class, true, 'GET');

        if (1 == count($documents)) {
            return current($documents);
        }

        return $documents;
    }
1038924
public function removeDeployKey(int $id): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/keys/:id',
            $this->getRepositories()->getOwner(), $this->getRepositories()->getRepo(), $id), Request::METHOD_DELETE);
    }
19974
protected function IblockDelete($id)
    {
        $return = [];
        $iblock = $this->iblockLocate($id);
        if (CIBlock::Delete($iblock['ID'])) {
            $return[] = "Iblock {$iblock['CODE']}({$iblock['ID']}) deleted";
        } else {
            throw new Exception("Can't delete {$iblock['CODE']}({$iblock['ID']}) iblock");
        }

        return $return;
    }
89780
public function filterId($id)
    {
        if (1 === count($this->data)) {
            return array_shift($this->data);
        }

        $result = $this->filter(
            function ($key, $value) use ($id) {
                if ($value->getId() == $id) {
                    return true;
                }
            }
        );

        if (!count($result)) {
            return null;
        }

        $collection = $result->getAll();

        return array_shift($collection);
    }
608254
public function AnimeNews(int $id): array
    {
        return $this->myanimelist->getNewsList(
            new Request\Anime\AnimeNewsRequest($id)
        );
    }
118346
public function get_links(string $id): ?array
  {
    return $this->_get_links($id, $this->id_user, $this->id_group);
  }
895525
public function getRole(string $id = null): array
    {
        if ($id) {
            if (is_numeric($id)) {
                $filter = array_filter($this->role, function ($row) use ($id) { return $row['id'] == $id; });
                return (array) array_pop($filter);
            }
            return (array) ($this->role[$id] ?? []);
        }
        return $this->role;
    }
1052374
public function actionView($id)
    {
        $request = \Yii::$app->request;
        if ($request->getIsOptions()) {
            return $this->ResponseOptions($this->verbs()['view']);
        }
        $model = $this->findModel($id);

        return  ['model'=>$model,'items'=>$model->getItems(),];
    }
1022361
public function find(int $id)
    {
        $response = $this->model->with($this->with)->find($id);
        $this->with = [];
        return $response;
    }
214417
public function fetchById($id)
    {
        $data = [];
        foreach ($this->globDataFile($id) as $filename) {
            $data = array_merge($data, $this->fetchFileData($id, $filename));
        }
        return $this->resultAsModel($data);
    }
1086093
public function exportById($id): array
    {
        $user = Craft::$app->users->getUserById($id);
        return $this->export($user);
    }