@@ -7,8 +7,7 @@ |
||
7 | 7 | /** |
8 | 8 | * Exception when an HTTP error occurs (4xx or 5xx error) |
9 | 9 | */ |
10 | -class BadResponseException extends RequestException |
|
11 | -{ |
|
10 | +class BadResponseException extends RequestException { |
|
12 | 11 | public function __construct(string $message, RequestInterface $request, ResponseInterface $response, ?\Throwable $previous = null, array $handlerContext = []) |
13 | 12 | { |
14 | 13 | parent::__construct($message, $request, $response, $previous, $handlerContext); |
@@ -18,8 +18,7 @@ |
||
18 | 18 | use OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Transport\Serializer\JsonSerializer; |
19 | 19 | use OCA\FullTextSearch_Elasticsearch\Vendor\OpenTelemetry\API\Trace\TracerInterface; |
20 | 20 | use OCA\FullTextSearch_Elasticsearch\Vendor\OpenTelemetry\API\Trace\TracerProviderInterface; |
21 | -class OpenTelemetry |
|
22 | -{ |
|
21 | +class OpenTelemetry { |
|
23 | 22 | const OTEL_TRACER_NAME = 'elasticsearch-api'; |
24 | 23 | const PSR7_OTEL_ATTRIBUTE_NAME = 'otel-elastic-transport'; |
25 | 24 | // Valid values for the enabled config are 'true' and 'false' |
@@ -23,8 +23,7 @@ |
||
23 | 23 | /** |
24 | 24 | * @generated This file is generated, please do not edit |
25 | 25 | */ |
26 | -class TextStructure extends AbstractEndpoint |
|
27 | -{ |
|
26 | +class TextStructure extends AbstractEndpoint { |
|
28 | 27 | /** |
29 | 28 | * Finds the structure of a text field in an index. |
30 | 29 | * |
@@ -23,8 +23,7 @@ |
||
23 | 23 | /** |
24 | 24 | * @generated This file is generated, please do not edit |
25 | 25 | */ |
26 | -class Inference extends AbstractEndpoint |
|
27 | -{ |
|
26 | +class Inference extends AbstractEndpoint { |
|
28 | 27 | /** |
29 | 28 | * Delete an inference endpoint |
30 | 29 | * |
@@ -23,8 +23,7 @@ |
||
23 | 23 | /** |
24 | 24 | * @generated This file is generated, please do not edit |
25 | 25 | */ |
26 | -class Ingest extends AbstractEndpoint |
|
27 | -{ |
|
26 | +class Ingest extends AbstractEndpoint { |
|
28 | 27 | /** |
29 | 28 | * Deletes a geoip database configuration |
30 | 29 | * |
@@ -24,8 +24,7 @@ |
||
24 | 24 | use OCA\FullTextSearch_Elasticsearch\Vendor\Http\Promise\Promise; |
25 | 25 | use OCA\FullTextSearch_Elasticsearch\Vendor\Psr\Http\Message\RequestInterface; |
26 | 26 | use Psr\Log\LoggerInterface; |
27 | -final class Client implements ClientInterface |
|
28 | -{ |
|
27 | +final class Client implements ClientInterface { |
|
29 | 28 | const CLIENT_NAME = 'es'; |
30 | 29 | const VERSION = '8.17.0'; |
31 | 30 | const API_COMPATIBILITY_HEADER = '%s/vnd.elasticsearch+%s; compatible-with=8'; |
@@ -40,8 +40,7 @@ |
||
40 | 40 | * @see https://www.php-fig.org/psr/psr-0/ |
41 | 41 | * @see https://www.php-fig.org/psr/psr-4/ |
42 | 42 | */ |
43 | -class ClassLoader |
|
44 | -{ |
|
43 | +class ClassLoader { |
|
45 | 44 | /** @var \Closure(string):void */ |
46 | 45 | private static $includeFile; |
47 | 46 |
@@ -24,8 +24,7 @@ |
||
24 | 24 | * |
25 | 25 | * @final |
26 | 26 | */ |
27 | -class InstalledVersions |
|
28 | -{ |
|
27 | +class InstalledVersions { |
|
29 | 28 | /** |
30 | 29 | * @var mixed[]|null |
31 | 30 | * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null |