From e6e88dc2f2646d8587f760d2665ad317e3c8e6f8 Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Wed, 5 Apr 2017 16:16:54 -0400 Subject: [PATCH] Revert "Add support for Language method AnalyzeEntitySentiment (#426)" (#431) This reverts commit d6bc859f5201b52fbfa3cf7d307410b657bb7220. --- RestTrait.php | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/RestTrait.php b/RestTrait.php index 99905fe..663687a 100644 --- a/RestTrait.php +++ b/RestTrait.php @@ -63,14 +63,7 @@ public function setRequestWrapper(RequestWrapper $requestWrapper) * * @param string $resource The resource type used for the request. * @param string $method The method used for the request. - * @param array $options [optional] { - * Options used to build out the request. - * - * @type RequestBuilder $requestBuilder An instance of RequestBuilder. - * If provided, the request will be constructed using the given - * instance, rather than the one found in the `$requestBuilder` - * property. - * } + * @param array $options [optional] Options used to build out the request. * @return array */ public function send($resource, $method, array $options = []) @@ -81,14 +74,9 @@ public function send($resource, $method, array $options = []) 'requestTimeout' ], $options); - $requestBuilder = $this->pluck('requestBuilder', $options, false); - if (is_null($requestBuilder) || !($requestBuilder instanceof RequestBuilder)) { - $requestBuilder = $this->requestBuilder; - } - return json_decode( $this->requestWrapper->send( - $requestBuilder->build($resource, $method, $options), + $this->requestBuilder->build($resource, $method, $options), $requestOptions )->getBody(), true