public function getRemoteDetails($name)
    {
        // Get remote
        $remote = json_decode(file_get_contents($this->getRemote()."/api/hooks/{$name}.json"), true);

        if ($remote['exists'] !== true) {
            throw new \InvalidArgumentException("Hook [{$name}] does not exists.");
        }

        return $remote;
    }
public function getRemoteDetails($name)
    {
        // Get remote
        $remote = json_decode(file_get_contents($this->getRemote()."/api/hooks/{$name}.json"), true);

        if ($remote['exists'] !== true) {
            throw new \InvalidArgumentException("Hook [{$name}] does not exists.");
        }

        return $remote;
    }
public function getRemoteDetails ( $ name ) { // Get remote $ remote = json_decode ( file_get_contents ( $ this -> getRemote ( ) . "/api/hooks/{$name}.json" ) , true ) ; if ( $ remote [ 'exists' ] !== true ) { throw new \ InvalidArgumentException ( "Hook [{$name}] does not exists." ) ; } return $ remote ; }
Get hook details from remote.

@param $name

@return array
Get hook details from remote .