protected function fetchInbox($inboxId = null)
    {
        if ( ! $this->alreadyConfigured()) {
            $this->applyMailTrapConfiguration($inboxId);
        }

        $body = $this->requestClient()
            ->get($this->getMailTrapMessagesUrl())
            ->getBody();

        return $this->parseJson($body);
    }
protected function fetchInbox($inboxId = null)
    {
        if ( ! $this->alreadyConfigured()) {
            $this->applyMailTrapConfiguration($inboxId);
        }

        $body = $this->requestClient()
            ->get($this->getMailTrapMessagesUrl())
            ->getBody();

        return $this->parseJson($body);
    }
protected function fetchInbox ( $ inboxId = null ) { if ( ! $ this -> alreadyConfigured ( ) ) { $ this -> applyMailTrapConfiguration ( $ inboxId ) ; } $ body = $ this -> requestClient ( ) -> get ( $ this -> getMailTrapMessagesUrl ( ) ) -> getBody ( ) ; return $ this -> parseJson ( $ body ) ; }
Fetch a MailTrap inbox.

@param  integer|null $inboxId
@return mixed
@throws RuntimeException
Fetch a MailTrap inbox .