src/Client.php
public function getSpace(): Space
    {
        try {
            /** @var Space $space */
            $space = $this->requestWithCache(
                '/spaces/'.$this->spaceId,
                [],
                'Space',
                $this->spaceId
            );
        } catch (Exception $exception) {
            // An edge case with environments might result in space data not being available.
            // As it *is* technically needed, we provide a fake space object.
            /** @var Space $space */
            $space = $this->builder->build([
                'sys' => [
                    'id' => $this->spaceId,
                    'type' => 'Space',
                ],
                'name' => $this->spaceId,
            ]);
        }

        return $space;
    }
public function getSpace(): Space
    {
        try {
            /** @var Space $space */
            $space = $this->requestWithCache(
                '/spaces/'.$this->spaceId,
                [],
                'Space',
                $this->spaceId
            );
        } catch (Exception $exception) {
            // An edge case with environments might result in space data not being available.
            // As it *is* technically needed, we provide a fake space object.
            /** @var Space $space */
            $space = $this->builder->build([
                'sys' => [
                    'id' => $this->spaceId,
                    'type' => 'Space',
                ],
                'name' => $this->spaceId,
            ]);
        }

        return $space;
    }
public function getSpace ( ) : Space { try { /** @var Space $space */ $ space = $ this -> requestWithCache ( '/spaces/' . $ this -> spaceId , [ ] , 'Space' , $ this -> spaceId ) ; } catch ( Exception $ exception ) { // An edge case with environments might result in space data not being available. // As it *is* technically needed, we provide a fake space object. /** @var Space $space */ $ space = $ this -> builder -> build ( [ 'sys' => [ 'id' => $ this -> spaceId , 'type' => 'Space' , ] , 'name' => $ this -> spaceId , ] ) ; } return $ space ; }
{@inheritdoc}
{