Skip to content

Commit c758250

Browse files
chore: generated code for commit b81e664. [skip ci]
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent b81e664 commit c758250

File tree

247 files changed

+2448
-2846
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

247 files changed

+2448
-2846
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
GROUP=com.algolia
2-
VERSION_NAME=0.0.1-SNAPSHOT
2+
VERSION_NAME=0.1.0-SNAPSHOT

clients/algoliasearch-client-php/lib/Api/AbtestingClient.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22

33
namespace Algolia\AlgoliaSearch\Api;
44

5-
use GuzzleHttp\Exception\RequestException;
6-
use GuzzleHttp\Exception\ConnectException;
7-
use GuzzleHttp\Psr7\MultipartStream;
8-
use GuzzleHttp\RequestOptions;
9-
use GuzzleHttp\Utils;
105
use Algolia\AlgoliaSearch\Algolia;
11-
use Algolia\AlgoliaSearch\ApiException;
126
use Algolia\AlgoliaSearch\Configuration\AbtestingConfig;
137
use Algolia\AlgoliaSearch\ObjectSerializer;
148
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapper;
@@ -108,6 +102,7 @@ public function getClientConfig()
108102
* - $addABTestsRequest['name'] => (string) A/B test name. (required)
109103
* - $addABTestsRequest['variant'] => (array) List of 2 variants for the A/B test. (required)
110104
* - $addABTestsRequest['endAt'] => (string) End date for the A/B test expressed as YYYY-MM-DDThh:mm:ssZ. (required)
105+
*
111106
* @see \Algolia\AlgoliaSearch\Model\Abtesting\AddABTestsRequest
112107
*
113108
* @return array<string, mixed>|\Algolia\AlgoliaSearch\Model\Abtesting\ABTestResponse
@@ -487,7 +482,7 @@ private function sendRequest(
487482
) {
488483
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
489484

490-
if ($method == 'GET') {
485+
if ($method === 'GET') {
491486
$request = $this->api->read(
492487
$method,
493488
$resourcePath . ($query ? "?{$query}" : '')

clients/algoliasearch-client-php/lib/Api/AnalyticsClient.php

Lines changed: 65 additions & 71 deletions
Large diffs are not rendered by default.

clients/algoliasearch-client-php/lib/Api/InsightsClient.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,8 @@
22

33
namespace Algolia\AlgoliaSearch\Api;
44

5-
use GuzzleHttp\Exception\RequestException;
6-
use GuzzleHttp\Exception\ConnectException;
7-
use GuzzleHttp\Psr7\MultipartStream;
8-
use GuzzleHttp\RequestOptions;
9-
use GuzzleHttp\Utils;
105
use Algolia\AlgoliaSearch\Algolia;
11-
use Algolia\AlgoliaSearch\ApiException;
126
use Algolia\AlgoliaSearch\Configuration\InsightsConfig;
13-
use Algolia\AlgoliaSearch\ObjectSerializer;
147
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapper;
158
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapperInterface;
169
use Algolia\AlgoliaSearch\RetryStrategy\ClusterHosts;
@@ -243,6 +236,7 @@ public function post($path, $parameters = null, $body = null)
243236
*
244237
* @param array $insightEvents insightEvents (required)
245238
* - $insightEvents['events'] => (array) Array of events sent. (required)
239+
*
246240
* @see \Algolia\AlgoliaSearch\Model\Insights\InsightEvents
247241
*
248242
* @return array<string, mixed>|\Algolia\AlgoliaSearch\Model\Insights\PushEventsResponse
@@ -332,7 +326,7 @@ private function sendRequest(
332326
) {
333327
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
334328

335-
if ($method == 'GET') {
329+
if ($method === 'GET') {
336330
$request = $this->api->read(
337331
$method,
338332
$resourcePath . ($query ? "?{$query}" : '')

clients/algoliasearch-client-php/lib/Api/PersonalizationClient.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22

33
namespace Algolia\AlgoliaSearch\Api;
44

5-
use GuzzleHttp\Exception\RequestException;
6-
use GuzzleHttp\Exception\ConnectException;
7-
use GuzzleHttp\Psr7\MultipartStream;
8-
use GuzzleHttp\RequestOptions;
9-
use GuzzleHttp\Utils;
105
use Algolia\AlgoliaSearch\Algolia;
11-
use Algolia\AlgoliaSearch\ApiException;
126
use Algolia\AlgoliaSearch\Configuration\PersonalizationConfig;
137
use Algolia\AlgoliaSearch\ObjectSerializer;
148
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapper;
@@ -394,6 +388,7 @@ public function put($path, $parameters = null, $body = null)
394388
* - $personalizationStrategyParams['eventScoring'] => (array) Scores associated with the events. (required)
395389
* - $personalizationStrategyParams['facetScoring'] => (array) Scores associated with the facets. (required)
396390
* - $personalizationStrategyParams['personalizationImpact'] => (int) The impact that personalization has on search results: a number between 0 (personalization disabled) and 100 (personalization fully enabled). (required)
391+
*
397392
* @see \Algolia\AlgoliaSearch\Model\Personalization\PersonalizationStrategyParams
398393
*
399394
* @return array<string, mixed>|\Algolia\AlgoliaSearch\Model\Personalization\SetPersonalizationStrategyResponse
@@ -435,7 +430,7 @@ private function sendRequest(
435430
) {
436431
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
437432

438-
if ($method == 'GET') {
433+
if ($method === 'GET') {
439434
$request = $this->api->read(
440435
$method,
441436
$resourcePath . ($query ? "?{$query}" : '')

clients/algoliasearch-client-php/lib/Api/QuerySuggestionsClient.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22

33
namespace Algolia\AlgoliaSearch\Api;
44

5-
use GuzzleHttp\Exception\RequestException;
6-
use GuzzleHttp\Exception\ConnectException;
7-
use GuzzleHttp\Psr7\MultipartStream;
8-
use GuzzleHttp\RequestOptions;
9-
use GuzzleHttp\Utils;
105
use Algolia\AlgoliaSearch\Algolia;
11-
use Algolia\AlgoliaSearch\ApiException;
126
use Algolia\AlgoliaSearch\Configuration\QuerySuggestionsConfig;
137
use Algolia\AlgoliaSearch\ObjectSerializer;
148
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapper;
@@ -105,6 +99,7 @@ public function getClientConfig()
10599
* Create a configuration of a Query Suggestions index.
106100
*
107101
* @param array $querySuggestionsIndexWithIndexParam querySuggestionsIndexWithIndexParam (required)
102+
*
108103
* @see \Algolia\AlgoliaSearch\Model\QuerySuggestions\QuerySuggestionsIndexWithIndexParam
109104
*
110105
* @return array<string, mixed>|\Algolia\AlgoliaSearch\Model\QuerySuggestions\SucessResponse
@@ -512,6 +507,7 @@ public function put($path, $parameters = null, $body = null)
512507
* - $querySuggestionsIndexParam['sourceIndices'] => (array) List of source indices used to generate a Query Suggestions index. (required)
513508
* - $querySuggestionsIndexParam['languages'] => (array) De-duplicate singular and plural suggestions. For example, let's say your index contains English content, and that two suggestions “shoe” and “shoes” end up in your Query Suggestions index. If the English language is configured, only the most popular of those two suggestions would remain.
514509
* - $querySuggestionsIndexParam['exclude'] => (array) List of words and patterns to exclude from the Query Suggestions index.
510+
*
515511
* @see \Algolia\AlgoliaSearch\Model\QuerySuggestions\QuerySuggestionsIndexParam
516512
*
517513
* @return array<string, mixed>|\Algolia\AlgoliaSearch\Model\QuerySuggestions\SucessResponse
@@ -571,7 +567,7 @@ private function sendRequest(
571567
) {
572568
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
573569

574-
if ($method == 'GET') {
570+
if ($method === 'GET') {
575571
$request = $this->api->read(
576572
$method,
577573
$resourcePath . ($query ? "?{$query}" : '')

clients/algoliasearch-client-php/lib/Api/RecommendClient.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,8 @@
22

33
namespace Algolia\AlgoliaSearch\Api;
44

5-
use GuzzleHttp\Exception\RequestException;
6-
use GuzzleHttp\Exception\ConnectException;
7-
use GuzzleHttp\Psr7\MultipartStream;
8-
use GuzzleHttp\RequestOptions;
9-
use GuzzleHttp\Utils;
105
use Algolia\AlgoliaSearch\Algolia;
11-
use Algolia\AlgoliaSearch\ApiException;
126
use Algolia\AlgoliaSearch\Configuration\RecommendConfig;
13-
use Algolia\AlgoliaSearch\ObjectSerializer;
147
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapper;
158
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapperInterface;
169
use Algolia\AlgoliaSearch\RetryStrategy\ClusterHosts;
@@ -197,6 +190,7 @@ public function get($path, $parameters = null)
197190
*
198191
* @param array $getRecommendationsParams getRecommendationsParams (required)
199192
* - $getRecommendationsParams['requests'] => (array) The `getRecommendations` requests. (required)
193+
*
200194
* @see \Algolia\AlgoliaSearch\Model\Recommend\GetRecommendationsParams
201195
*
202196
* @return array<string, mixed>|\Algolia\AlgoliaSearch\Model\Recommend\GetRecommendationsResponse
@@ -336,7 +330,7 @@ private function sendRequest(
336330
) {
337331
$query = \GuzzleHttp\Psr7\Query::build($queryParams);
338332

339-
if ($method == 'GET') {
333+
if ($method === 'GET') {
340334
$request = $this->api->read(
341335
$method,
342336
$resourcePath . ($query ? "?{$query}" : '')

0 commit comments

Comments
 (0)