Embera\Providers\GithubGist::modifyResponse PHP Method

modifyResponse() protected method

inline {@inheritdoc}
protected modifyResponse ( array $response = [] )
$response array
    protected function modifyResponse(array $response = array())
    {
        $this->url->discardChanges();
        if (preg_match('~github\\.com/([^/]+)/([a-z0-9]+)~i', $this->url, $matches)) {
            $response['html'] = '<script type="text/javascript" src="https://gist.github.com/' . $matches['1'] . '/' . $matches['2'] . '.js"></script>';
        }
        return $response;
    }