src/GetContents.php
public function sendRequest()
    {
        try {
            if (mb_strlen($this->url) >= 9) {
                $response       = $this->useFileGetContents();
                $this->response = $response;

                return $response;
            }
        }
        catch (Exception $e) {
            $message = "Error: " . __CLASS__ . ": Please make sure to set a URL to fetch - Line: " . $e->getLine() . ' - Msg: ' . $e->getMessage();
            $this->debug->error(__FUNCTION__, $message);

            return $message;
        }

        return NULL;
    }
public function sendRequest()
    {
        try {
            if (mb_strlen($this->url) >= 9) {
                $response       = $this->useFileGetContents();
                $this->response = $response;

                return $response;
            }
        }
        catch (Exception $e) {
            $message = "Error: " . __CLASS__ . ": Please make sure to set a URL to fetch - Line: " . $e->getLine() . ' - Msg: ' . $e->getMessage();
            $this->debug->error(__FUNCTION__, $message);

            return $message;
        }

        return NULL;
    }
public function sendRequest ( ) { try { if ( mb_strlen ( $ this -> url ) >= 9 ) { $ response = $ this -> useFileGetContents ( ) ; $ this -> response = $ response ; return $ response ; } } catch ( Exception $ e ) { $ message = "Error: " . __CLASS__ . ": Please make sure to set a URL to fetch - Line: " . $ e -> getLine ( ) . ' - Msg: ' . $ e -> getMessage ( ) ; $ this -> debug -> error ( __FUNCTION__ , $ message ) ; return $ message ; } return NULL ; }
Let's go to Request

@author: 713uk13m <dev@nguyenanhung.com>
@time  : 10/7/18 02:12

@return array|null|string Response from Request if Exists
Exception Error Message if Exception Error
Null if Not
Let s go to Request