concrete/src/Marketplace/Marketplace.php
private function get($url)
    {
        try {
            $result = $this->fileHelper->getContents(
                $url,
                $this->config->get('concrete.marektplace.request_timeout'));
        } catch (TimeoutException $e) {
            // Catch a timeout
            $this->connectionError = self::E_CONNECTION_TIMEOUT;

            return null;
        } catch (Exception $e) {
            $this->connectionError = self::E_GENERAL_CONNECTION_ERROR;

            return null;
        }

        return $result ?: null;
    }
private function get($url)
    {
        try {
            $result = $this->fileHelper->getContents(
                $url,
                $this->config->get('concrete.marektplace.request_timeout'));
        } catch (TimeoutException $e) {
            // Catch a timeout
            $this->connectionError = self::E_CONNECTION_TIMEOUT;

            return null;
        } catch (Exception $e) {
            $this->connectionError = self::E_GENERAL_CONNECTION_ERROR;

            return null;
        }

        return $result ?: null;
    }
private function get ( $ url ) { try { $ result = $ this -> fileHelper -> getContents ( $ url , $ this -> config -> get ( 'concrete.marektplace.request_timeout' ) ) ; } catch ( TimeoutException $ e ) { // Catch a timeout $ this -> connectionError = self :: E_CONNECTION_TIMEOUT ; return null ; } catch ( Exception $ e ) { $ this -> connectionError = self :: E_GENERAL_CONNECTION_ERROR ; return null ; } return $ result ? : null ; }
Get the contents of a URL
@param $url
@return string|null
Get the contents of a URL