PHPCS: fix remaining alignment warnings + multi-line SQL disable/enable blocks

This commit is contained in:
peptiderepo
2026-06-13 09:57:42 +00:00
parent dfaee0bca6
commit 8a38949cee
4 changed files with 19 additions and 16 deletions

View File

@@ -49,8 +49,8 @@ class PRV_Citation_Detector {
$host = (string) wp_parse_url( $url, PHP_URL_HOST );
if ( '' !== $host ) {
$bare = str_starts_with( $host, 'www.' ) ? substr( $host, 4 ) : $host;
$domains[] = strtolower( $bare );
$bare = str_starts_with( $host, 'www.' ) ? substr( $host, 4 ) : $host;
$domains[] = strtolower( $bare );
}
}

View File

@@ -61,9 +61,9 @@ class PRV_Gateway_Client {
* @throws \RuntimeException On permanent HTTP failure or parse error.
*/
public function post_to_gateway( string $provider_slug, array $body, string $api_key, string $endpoint = '/chat/completions' ): array {
$base_url = $this->build_base_url( $provider_slug );
$url = $base_url . $endpoint;
$base_host = (string) wp_parse_url( $base_url, PHP_URL_HOST );
$base_url = \$this->build_base_url( \$provider_slug );
$url = \$base_url . \$endpoint;
$base_host = (string) wp_parse_url( \$base_url, PHP_URL_HOST );
$headers = array(
'Authorization' => 'Bearer ' . $api_key,