Skip to content

Commit ac4b23a

Browse files
algolia-botrenovate[bot]Fluf22
committed
chore(deps): dependencies 2025-09-01 (generated)
algolia/api-clients-automation#5285 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Algolia Bot <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Thomas Raffray <[email protected]>
1 parent 4bd9cb2 commit ac4b23a

21 files changed

+428
-308
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"psr/simple-cache": "^1.0 || ^2.0 || ^3.0"
2424
},
2525
"require-dev": {
26-
"friendsofphp/php-cs-fixer": "^2.0 || ^3.5.0",
26+
"friendsofphp/php-cs-fixer": "^3.80.0",
2727
"phpunit/phpunit": "^11.0",
2828
"vlucas/phpdotenv": "^5.4",
2929
"phpstan/phpstan": "^1.12"

composer.lock

Lines changed: 367 additions & 247 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Api/AbtestingClient.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ public static function getClusterHosts(AbtestingConfig $config)
9595
// If a list of hosts was passed, we ignore the cache
9696
$clusterHosts = ClusterHosts::create($hosts);
9797
} else {
98-
$url = null !== $config->getRegion() && '' !== $config->getRegion() ?
99-
str_replace('{region}', $config->getRegion(), 'analytics.{region}.algolia.com') :
100-
'analytics.algolia.com';
98+
$url = null !== $config->getRegion() && '' !== $config->getRegion()
99+
? str_replace('{region}', $config->getRegion(), 'analytics.{region}.algolia.com')
100+
: 'analytics.algolia.com';
101101
$clusterHosts = ClusterHosts::create($url);
102102
}
103103

lib/Api/AbtestingV3Client.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ public static function getClusterHosts(AbtestingV3Config $config)
9696
// If a list of hosts was passed, we ignore the cache
9797
$clusterHosts = ClusterHosts::create($hosts);
9898
} else {
99-
$url = null !== $config->getRegion() && '' !== $config->getRegion() ?
100-
str_replace('{region}', $config->getRegion(), 'analytics.{region}.algolia.com') :
101-
'analytics.algolia.com';
99+
$url = null !== $config->getRegion() && '' !== $config->getRegion()
100+
? str_replace('{region}', $config->getRegion(), 'analytics.{region}.algolia.com')
101+
: 'analytics.algolia.com';
102102
$clusterHosts = ClusterHosts::create($url);
103103
}
104104

lib/Api/AnalyticsClient.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ public static function getClusterHosts(AnalyticsConfig $config)
107107
// If a list of hosts was passed, we ignore the cache
108108
$clusterHosts = ClusterHosts::create($hosts);
109109
} else {
110-
$url = null !== $config->getRegion() && '' !== $config->getRegion() ?
111-
str_replace('{region}', $config->getRegion(), 'analytics.{region}.algolia.com') :
112-
'analytics.algolia.com';
110+
$url = null !== $config->getRegion() && '' !== $config->getRegion()
111+
? str_replace('{region}', $config->getRegion(), 'analytics.{region}.algolia.com')
112+
: 'analytics.algolia.com';
113113
$clusterHosts = ClusterHosts::create($url);
114114
}
115115

lib/Api/IngestionClient.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ public static function getClusterHosts(IngestionConfig $config)
141141
// If a list of hosts was passed, we ignore the cache
142142
$clusterHosts = ClusterHosts::create($hosts);
143143
} else {
144-
$url = null !== $config->getRegion() && '' !== $config->getRegion() ?
145-
str_replace('{region}', $config->getRegion(), 'data.{region}.algolia.com') :
146-
'';
144+
$url = null !== $config->getRegion() && '' !== $config->getRegion()
145+
? str_replace('{region}', $config->getRegion(), 'data.{region}.algolia.com')
146+
: '';
147147
$clusterHosts = ClusterHosts::create($url);
148148
}
149149

lib/Api/InsightsClient.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ public static function getClusterHosts(InsightsConfig $config)
8989
// If a list of hosts was passed, we ignore the cache
9090
$clusterHosts = ClusterHosts::create($hosts);
9191
} else {
92-
$url = null !== $config->getRegion() && '' !== $config->getRegion() ?
93-
str_replace('{region}', $config->getRegion(), 'insights.{region}.algolia.io') :
94-
'insights.algolia.io';
92+
$url = null !== $config->getRegion() && '' !== $config->getRegion()
93+
? str_replace('{region}', $config->getRegion(), 'insights.{region}.algolia.io')
94+
: 'insights.algolia.io';
9595
$clusterHosts = ClusterHosts::create($url);
9696
}
9797

lib/Api/PersonalizationClient.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ public static function getClusterHosts(PersonalizationConfig $config)
9191
// If a list of hosts was passed, we ignore the cache
9292
$clusterHosts = ClusterHosts::create($hosts);
9393
} else {
94-
$url = null !== $config->getRegion() && '' !== $config->getRegion() ?
95-
str_replace('{region}', $config->getRegion(), 'personalization.{region}.algolia.com') :
96-
'';
94+
$url = null !== $config->getRegion() && '' !== $config->getRegion()
95+
? str_replace('{region}', $config->getRegion(), 'personalization.{region}.algolia.com')
96+
: '';
9797
$clusterHosts = ClusterHosts::create($url);
9898
}
9999

lib/Api/QuerySuggestionsClient.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ public static function getClusterHosts(QuerySuggestionsConfig $config)
9393
// If a list of hosts was passed, we ignore the cache
9494
$clusterHosts = ClusterHosts::create($hosts);
9595
} else {
96-
$url = null !== $config->getRegion() && '' !== $config->getRegion() ?
97-
str_replace('{region}', $config->getRegion(), 'query-suggestions.{region}.algolia.com') :
98-
'';
96+
$url = null !== $config->getRegion() && '' !== $config->getRegion()
97+
? str_replace('{region}', $config->getRegion(), 'query-suggestions.{region}.algolia.com')
98+
: '';
9999
$clusterHosts = ClusterHosts::create($url);
100100
}
101101

lib/Configuration/AbtestingConfig.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public static function create($appId, $apiKey, $region = null)
1818
null !== $region && !in_array($region, $allowedRegions, true)
1919
) {
2020
throw new AlgoliaException(
21-
'`region` must be one of the following: '.
22-
implode(', ', $allowedRegions)
21+
'`region` must be one of the following: '
22+
.implode(', ', $allowedRegions)
2323
);
2424
}
2525

0 commit comments

Comments
 (0)