Completed
Push — master ( 444b7c...2b29c8 )
by Maxence
17s queued 14s
created
lib/Vendor/Http/Discovery/Composer/Plugin.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         }
98 98
         $event->stopPropagation();
99 99
         $dispatcher = $composer->getEventDispatcher();
100
-        $disableScripts = !\method_exists($dispatcher, 'setRunScripts') || !((array) $dispatcher)["\x00*\x00runScripts"];
100
+        $disableScripts = !\method_exists($dispatcher, 'setRunScripts') || !((array)$dispatcher)["\x00*\x00runScripts"];
101 101
         $composer = Factory::create($event->getIO(), null, \false, $disableScripts);
102 102
         /** @var Installer $installer */
103 103
         $installer = clone $installer;
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         // we need a clone of the installer to preserve its configuration state but with our own service objects
108 108
         $installer->__construct($event->getIO(), $composer->getConfig(), $composer->getPackage(), $composer->getDownloadManager(), $composer->getRepositoryManager(), $composer->getLocker(), $composer->getInstallationManager(), $composer->getEventDispatcher(), $composer->getAutoloadGenerator());
109 109
         if (\method_exists($installer, 'setPlatformRequirementFilter')) {
110
-            $installer->setPlatformRequirementFilter(((array) $trace['object'])["\x00*\x00platformRequirementFilter"]);
110
+            $installer->setPlatformRequirementFilter(((array)$trace['object'])["\x00*\x00platformRequirementFilter"]);
111 111
         }
112 112
         if (0 !== $installer->run()) {
113 113
             \file_put_contents(Factory::getComposerFile(), $composerJsonContents);
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
                 }
148 148
             }
149 149
             if (isset($package->getRequires()['php-http/discovery'])) {
150
-                $requires[(int) isset($devPackages[$package->getName()])] += $package->getRequires();
150
+                $requires[(int)isset($devPackages[$package->getName()])] += $package->getRequires();
151 151
             }
152 152
         }
153 153
         $missingRequires = [[], [], []];
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
         $filesystem = new Filesystem();
236 236
         // Double realpath() on purpose, see https://bugs.php.net/72738
237 237
         $vendorDir = $filesystem->normalizePath(\realpath(\realpath($event->getComposer()->getConfig()->get('vendor-dir'))));
238
-        $filesystem->ensureDirectoryExists($vendorDir . '/composer');
238
+        $filesystem->ensureDirectoryExists($vendorDir.'/composer');
239 239
         $pinned = $event->getComposer()->getPackage()->getExtra()['discovery'] ?? [];
240 240
         $candidates = [];
241 241
         $allInterfaces = \array_merge(...\array_values(self::INTERFACE_MAP));
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
                 $candidates[] = \sprintf("case %s: return [['class' => %s]];\n", \var_export($interface, \true), \var_export($class, \true));
252 252
             }
253 253
         }
254
-        $file = $vendorDir . '/composer/GeneratedDiscoveryStrategy.php';
254
+        $file = $vendorDir.'/composer/GeneratedDiscoveryStrategy.php';
255 255
         if (!$candidates) {
256 256
             if (\file_exists($file)) {
257 257
                 \unlink($file);
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
         }
282 282
         $rootPackage = $event->getComposer()->getPackage();
283 283
         $autoload = $rootPackage->getAutoload();
284
-        $autoload['classmap'][] = $vendorDir . '/composer/GeneratedDiscoveryStrategy.php';
284
+        $autoload['classmap'][] = $vendorDir.'/composer/GeneratedDiscoveryStrategy.php';
285 285
         $rootPackage->setAutoload($autoload);
286 286
     }
287 287
     private function updateComposerJson(array $missingRequires, bool $sortPackages)
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
         if (\false === $composer->getConfig()->get('lock')) {
306 306
             return;
307 307
         }
308
-        $lock = \substr(Factory::getComposerFile(), 0, -4) . 'lock';
308
+        $lock = \substr(Factory::getComposerFile(), 0, -4).'lock';
309 309
         $composerJson = \file_get_contents(Factory::getComposerFile());
310 310
         $lockFile = new JsonFile($lock, null, $io);
311 311
         $locker = ClassDiscovery::safeClassExists(RepositorySet::class) ? new Locker($io, $lockFile, $composer->getInstallationManager(), $composerJson) : new Locker($io, $lockFile, $composer->getRepositoryManager(), $composer->getInstallationManager(), $composerJson);
Please login to merge, or discard this patch.
lib/Vendor/GuzzleHttp/Psr7/Query.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare (strict_types=1);
3
+declare(strict_types=1);
4 4
 namespace OCA\FullTextSearch_Elasticsearch\Vendor\GuzzleHttp\Psr7;
5 5
 
6 6
 final class Query
@@ -23,15 +23,15 @@  discard block
 block discarded – undo
23 23
             return $result;
24 24
         }
25 25
         if ($urlEncoding === \true) {
26
-            $decoder = function ($value) {
27
-                return \rawurldecode(\str_replace('+', ' ', (string) $value));
26
+            $decoder = function($value) {
27
+                return \rawurldecode(\str_replace('+', ' ', (string)$value));
28 28
             };
29 29
         } elseif ($urlEncoding === \PHP_QUERY_RFC3986) {
30 30
             $decoder = 'rawurldecode';
31 31
         } elseif ($urlEncoding === \PHP_QUERY_RFC1738) {
32 32
             $decoder = 'urldecode';
33 33
         } else {
34
-            $decoder = function ($str) {
34
+            $decoder = function($str) {
35 35
                 return $str;
36 36
             };
37 37
         }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             return '';
72 72
         }
73 73
         if ($encoding === \false) {
74
-            $encoder = function (string $str) : string {
74
+            $encoder = function(string $str) : string {
75 75
                 return $str;
76 76
             };
77 77
         } elseif ($encoding === \PHP_QUERY_RFC3986) {
@@ -81,19 +81,19 @@  discard block
 block discarded – undo
81 81
         } else {
82 82
             throw new \InvalidArgumentException('Invalid type');
83 83
         }
84
-        $castBool = $treatBoolsAsInts ? static function ($v) {
85
-            return (int) $v;
86
-        } : static function ($v) {
84
+        $castBool = $treatBoolsAsInts ? static function($v) {
85
+            return (int)$v;
86
+        } : static function($v) {
87 87
             return $v ? 'true' : 'false';
88 88
         };
89 89
         $qs = '';
90 90
         foreach ($params as $k => $v) {
91
-            $k = $encoder((string) $k);
91
+            $k = $encoder((string)$k);
92 92
             if (!\is_array($v)) {
93 93
                 $qs .= $k;
94 94
                 $v = \is_bool($v) ? $castBool($v) : $v;
95 95
                 if ($v !== null) {
96
-                    $qs .= '=' . $encoder((string) $v);
96
+                    $qs .= '='.$encoder((string)$v);
97 97
                 }
98 98
                 $qs .= '&';
99 99
             } else {
@@ -101,12 +101,12 @@  discard block
 block discarded – undo
101 101
                     $qs .= $k;
102 102
                     $vv = \is_bool($vv) ? $castBool($vv) : $vv;
103 103
                     if ($vv !== null) {
104
-                        $qs .= '=' . $encoder((string) $vv);
104
+                        $qs .= '='.$encoder((string)$vv);
105 105
                     }
106 106
                     $qs .= '&';
107 107
                 }
108 108
             }
109 109
         }
110
-        return $qs ? (string) \substr($qs, 0, -1) : '';
110
+        return $qs ? (string)\substr($qs, 0, -1) : '';
111 111
     }
112 112
 }
Please login to merge, or discard this patch.
lib/Vendor/GuzzleHttp/Middleware.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public static function cookies() : callable
26 26
     {
27
-        return static function (callable $handler) : callable {
28
-            return static function ($request, array $options) use($handler) {
27
+        return static function(callable $handler) : callable {
28
+            return static function($request, array $options) use($handler) {
29 29
                 if (empty($options['cookies'])) {
30 30
                     return $handler($request, $options);
31 31
                 } elseif (!$options['cookies'] instanceof CookieJarInterface) {
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
                 }
34 34
                 $cookieJar = $options['cookies'];
35 35
                 $request = $cookieJar->withCookieHeader($request);
36
-                return $handler($request, $options)->then(static function (ResponseInterface $response) use($cookieJar, $request) : ResponseInterface {
36
+                return $handler($request, $options)->then(static function(ResponseInterface $response) use($cookieJar, $request) : ResponseInterface {
37 37
                     $cookieJar->extractCookies($request, $response);
38 38
                     return $response;
39 39
                 });
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public static function httpErrors(?BodySummarizerInterface $bodySummarizer = null) : callable
52 52
     {
53
-        return static function (callable $handler) use($bodySummarizer) : callable {
54
-            return static function ($request, array $options) use($handler, $bodySummarizer) {
53
+        return static function(callable $handler) use($bodySummarizer) : callable {
54
+            return static function($request, array $options) use($handler, $bodySummarizer) {
55 55
                 if (empty($options['http_errors'])) {
56 56
                     return $handler($request, $options);
57 57
                 }
58
-                return $handler($request, $options)->then(static function (ResponseInterface $response) use($request, $bodySummarizer) {
58
+                return $handler($request, $options)->then(static function(ResponseInterface $response) use($request, $bodySummarizer) {
59 59
                     $code = $response->getStatusCode();
60 60
                     if ($code < 400) {
61 61
                         return $response;
@@ -79,12 +79,12 @@  discard block
 block discarded – undo
79 79
         if (!\is_array($container) && !$container instanceof \ArrayAccess) {
80 80
             throw new \InvalidArgumentException('history container must be an array or object implementing ArrayAccess');
81 81
         }
82
-        return static function (callable $handler) use(&$container) : callable {
83
-            return static function (RequestInterface $request, array $options) use($handler, &$container) {
84
-                return $handler($request, $options)->then(static function ($value) use($request, &$container, $options) {
82
+        return static function(callable $handler) use(&$container) : callable {
83
+            return static function(RequestInterface $request, array $options) use($handler, &$container) {
84
+                return $handler($request, $options)->then(static function($value) use($request, &$container, $options) {
85 85
                     $container[] = ['request' => $request, 'response' => $value, 'error' => null, 'options' => $options];
86 86
                     return $value;
87
-                }, static function ($reason) use($request, &$container, $options) {
87
+                }, static function($reason) use($request, &$container, $options) {
88 88
                     $container[] = ['request' => $request, 'response' => null, 'error' => $reason, 'options' => $options];
89 89
                     return P\Create::rejectionFor($reason);
90 90
                 });
@@ -106,8 +106,8 @@  discard block
 block discarded – undo
106 106
      */
107 107
     public static function tap(?callable $before = null, ?callable $after = null) : callable
108 108
     {
109
-        return static function (callable $handler) use($before, $after) : callable {
110
-            return static function (RequestInterface $request, array $options) use($handler, $before, $after) {
109
+        return static function(callable $handler) use($before, $after) : callable {
110
+            return static function(RequestInterface $request, array $options) use($handler, $before, $after) {
111 111
                 if ($before) {
112 112
                     $before($request, $options);
113 113
                 }
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      */
127 127
     public static function redirect() : callable
128 128
     {
129
-        return static function (callable $handler) : RedirectMiddleware {
129
+        return static function(callable $handler) : RedirectMiddleware {
130 130
             return new RedirectMiddleware($handler);
131 131
         };
132 132
     }
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      */
148 148
     public static function retry(callable $decider, ?callable $delay = null) : callable
149 149
     {
150
-        return static function (callable $handler) use($decider, $delay) : RetryMiddleware {
150
+        return static function(callable $handler) use($decider, $delay) : RetryMiddleware {
151 151
             return new RetryMiddleware($decider, $handler, $delay);
152 152
         };
153 153
     }
@@ -169,13 +169,13 @@  discard block
 block discarded – undo
169 169
         if (!$formatter instanceof MessageFormatter && !$formatter instanceof MessageFormatterInterface) {
170 170
             throw new \LogicException(\sprintf('Argument 2 to %s::log() must be of type %s', self::class, MessageFormatterInterface::class));
171 171
         }
172
-        return static function (callable $handler) use($logger, $formatter, $logLevel) : callable {
173
-            return static function (RequestInterface $request, array $options = []) use($handler, $logger, $formatter, $logLevel) {
174
-                return $handler($request, $options)->then(static function ($response) use($logger, $request, $formatter, $logLevel) : ResponseInterface {
172
+        return static function(callable $handler) use($logger, $formatter, $logLevel) : callable {
173
+            return static function(RequestInterface $request, array $options = []) use($handler, $logger, $formatter, $logLevel) {
174
+                return $handler($request, $options)->then(static function($response) use($logger, $request, $formatter, $logLevel) : ResponseInterface {
175 175
                     $message = $formatter->format($request, $response);
176 176
                     $logger->log($logLevel, $message);
177 177
                     return $response;
178
-                }, static function ($reason) use($logger, $request, $formatter) : PromiseInterface {
178
+                }, static function($reason) use($logger, $request, $formatter) : PromiseInterface {
179 179
                     $response = $reason instanceof RequestException ? $reason->getResponse() : null;
180 180
                     $message = $formatter->format($request, $response, P\Create::exceptionFor($reason));
181 181
                     $logger->error($message);
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      */
191 191
     public static function prepareBody() : callable
192 192
     {
193
-        return static function (callable $handler) : PrepareBodyMiddleware {
193
+        return static function(callable $handler) : PrepareBodyMiddleware {
194 194
             return new PrepareBodyMiddleware($handler);
195 195
         };
196 196
     }
@@ -203,8 +203,8 @@  discard block
 block discarded – undo
203 203
      */
204 204
     public static function mapRequest(callable $fn) : callable
205 205
     {
206
-        return static function (callable $handler) use($fn) : callable {
207
-            return static function (RequestInterface $request, array $options) use($handler, $fn) {
206
+        return static function(callable $handler) use($fn) : callable {
207
+            return static function(RequestInterface $request, array $options) use($handler, $fn) {
208 208
                 return $handler($fn($request), $options);
209 209
             };
210 210
         };
@@ -218,8 +218,8 @@  discard block
 block discarded – undo
218 218
      */
219 219
     public static function mapResponse(callable $fn) : callable
220 220
     {
221
-        return static function (callable $handler) use($fn) : callable {
222
-            return static function (RequestInterface $request, array $options) use($handler, $fn) {
221
+        return static function(callable $handler) use($fn) : callable {
222
+            return static function(RequestInterface $request, array $options) use($handler, $fn) {
223 223
                 return $handler($request, $options)->then($fn);
224 224
             };
225 225
         };
Please login to merge, or discard this patch.
lib/Vendor/GuzzleHttp/Handler/CurlFactory.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      */
210 210
     private function getDefaultConf(EasyHandle $easy) : array
211 211
     {
212
-        $conf = ['_headers' => $easy->request->getHeaders(), \CURLOPT_CUSTOMREQUEST => $easy->request->getMethod(), \CURLOPT_URL => (string) $easy->request->getUri()->withFragment(''), \CURLOPT_RETURNTRANSFER => \false, \CURLOPT_HEADER => \false, \CURLOPT_CONNECTTIMEOUT => 300];
212
+        $conf = ['_headers' => $easy->request->getHeaders(), \CURLOPT_CUSTOMREQUEST => $easy->request->getMethod(), \CURLOPT_URL => (string)$easy->request->getUri()->withFragment(''), \CURLOPT_RETURNTRANSFER => \false, \CURLOPT_HEADER => \false, \CURLOPT_CONNECTTIMEOUT => 300];
213 213
         if (\defined('CURLOPT_PROTOCOLS')) {
214 214
             $conf[\CURLOPT_PROTOCOLS] = \CURLPROTO_HTTP | \CURLPROTO_HTTPS;
215 215
         }
@@ -244,11 +244,11 @@  discard block
 block discarded – undo
244 244
     }
245 245
     private function applyBody(RequestInterface $request, array $options, array &$conf) : void
246 246
     {
247
-        $size = $request->hasHeader('Content-Length') ? (int) $request->getHeaderLine('Content-Length') : null;
247
+        $size = $request->hasHeader('Content-Length') ? (int)$request->getHeaderLine('Content-Length') : null;
248 248
         // Send the body as a string if the size is less than 1MB OR if the
249 249
         // [curl][body_as_string] request value is set.
250 250
         if ($size !== null && $size < 1000000 || !empty($options['_body_as_string'])) {
251
-            $conf[\CURLOPT_POSTFIELDS] = (string) $request->getBody();
251
+            $conf[\CURLOPT_POSTFIELDS] = (string)$request->getBody();
252 252
             // Don't duplicate the Content-Length header
253 253
             $this->removeHeader('Content-Length', $conf);
254 254
             $this->removeHeader('Transfer-Encoding', $conf);
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
             if ($body->isSeekable()) {
263 263
                 $body->rewind();
264 264
             }
265
-            $conf[\CURLOPT_READFUNCTION] = static function ($ch, $fd, $length) use($body) {
265
+            $conf[\CURLOPT_READFUNCTION] = static function($ch, $fd, $length) use($body) {
266 266
                 return $body->read($length);
267 267
             };
268 268
         }
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
     {
280 280
         foreach ($conf['_headers'] as $name => $values) {
281 281
             foreach ($values as $value) {
282
-                $value = (string) $value;
282
+                $value = (string)$value;
283 283
                 if ($value === '') {
284 284
                     // cURL requires a special format for empty headers.
285 285
                     // See https://github.com/guzzle/guzzle/issues/1882 for more details.
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
             $sink = new LazyOpenStream($sink, 'w+');
365 365
         }
366 366
         $easy->sink = $sink;
367
-        $conf[\CURLOPT_WRITEFUNCTION] = static function ($ch, $write) use($sink) : int {
367
+        $conf[\CURLOPT_WRITEFUNCTION] = static function($ch, $write) use($sink) : int {
368 368
             return $sink->write($write);
369 369
         };
370 370
         $timeoutRequiresNoSignal = \false;
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
                 throw new \InvalidArgumentException('progress client option must be callable');
472 472
             }
473 473
             $conf[\CURLOPT_NOPROGRESS] = \false;
474
-            $conf[\CURLOPT_PROGRESSFUNCTION] = static function ($resource, int $downloadSize, int $downloaded, int $uploadSize, int $uploaded) use($progress) {
474
+            $conf[\CURLOPT_PROGRESSFUNCTION] = static function($resource, int $downloadSize, int $downloaded, int $uploadSize, int $uploaded) use($progress) {
475 475
                 $progress($downloadSize, $downloaded, $uploadSize, $uploaded);
476 476
             };
477 477
         }
@@ -500,14 +500,14 @@  discard block
 block discarded – undo
500 500
                 $body->rewind();
501 501
             }
502 502
         } catch (\RuntimeException $e) {
503
-            $ctx['error'] = 'The connection unexpectedly failed without ' . 'providing an error. The request would have been retried, ' . 'but attempting to rewind the request body failed. ' . 'Exception: ' . $e;
503
+            $ctx['error'] = 'The connection unexpectedly failed without '.'providing an error. The request would have been retried, '.'but attempting to rewind the request body failed. '.'Exception: '.$e;
504 504
             return self::createRejection($easy, $ctx);
505 505
         }
506 506
         // Retry no more than 3 times before giving up.
507 507
         if (!isset($easy->options['_curl_retries'])) {
508 508
             $easy->options['_curl_retries'] = 1;
509 509
         } elseif ($easy->options['_curl_retries'] == 2) {
510
-            $ctx['error'] = 'The cURL request was retried 3 times ' . 'and did not succeed. The most likely reason for the failure ' . 'is that cURL was unable to rewind the body of the request ' . 'and subsequent retries resulted in the same error. Turn on ' . 'the debug option to see what went wrong. See ' . 'https://bugs.php.net/bug.php?id=47204 for more information.';
510
+            $ctx['error'] = 'The cURL request was retried 3 times '.'and did not succeed. The most likely reason for the failure '.'is that cURL was unable to rewind the body of the request '.'and subsequent retries resulted in the same error. Turn on '.'the debug option to see what went wrong. See '.'https://bugs.php.net/bug.php?id=47204 for more information.';
511 511
             return self::createRejection($easy, $ctx);
512 512
         } else {
513 513
             ++$easy->options['_curl_retries'];
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
         } else {
525 525
             $onHeaders = null;
526 526
         }
527
-        return static function ($ch, $h) use($onHeaders, $easy, &$startingResponse) {
527
+        return static function($ch, $h) use($onHeaders, $easy, &$startingResponse) {
528 528
             $value = \trim($h);
529 529
             if ($value === '') {
530 530
                 $startingResponse = \true;
Please login to merge, or discard this patch.
lib/Vendor/GuzzleHttp/Promise/Utils.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare (strict_types=1);
3
+declare(strict_types=1);
4 4
 namespace OCA\FullTextSearch_Elasticsearch\Vendor\GuzzleHttp\Promise;
5 5
 
6 6
 final class Utils
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     {
41 41
         $queue = self::queue();
42 42
         $promise = new Promise([$queue, 'run']);
43
-        $queue->add(function () use($task, $promise) : void {
43
+        $queue->add(function() use($task, $promise) : void {
44 44
             try {
45 45
                 if (Is::pending($promise)) {
46 46
                     $promise->resolve($task());
@@ -124,18 +124,18 @@  discard block
 block discarded – undo
124 124
     public static function all($promises, bool $recursive = \false) : PromiseInterface
125 125
     {
126 126
         $results = [];
127
-        $promise = Each::of($promises, function ($value, $idx) use(&$results) : void {
127
+        $promise = Each::of($promises, function($value, $idx) use(&$results) : void {
128 128
             $results[$idx] = $value;
129
-        }, function ($reason, $idx, Promise $aggregate) : void {
129
+        }, function($reason, $idx, Promise $aggregate) : void {
130 130
             if (Is::pending($aggregate)) {
131 131
                 $aggregate->reject($reason);
132 132
             }
133
-        })->then(function () use(&$results) {
133
+        })->then(function() use(&$results) {
134 134
             \ksort($results);
135 135
             return $results;
136 136
         });
137 137
         if (\true === $recursive) {
138
-            $promise = $promise->then(function ($results) use($recursive, &$promises) {
138
+            $promise = $promise->then(function($results) use($recursive, &$promises) {
139 139
                 foreach ($promises as $promise) {
140 140
                     if (Is::pending($promise)) {
141 141
                         return self::all($promises, $recursive);
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     {
165 165
         $results = [];
166 166
         $rejections = [];
167
-        return Each::of($promises, function ($value, $idx, PromiseInterface $p) use(&$results, $count) : void {
167
+        return Each::of($promises, function($value, $idx, PromiseInterface $p) use(&$results, $count) : void {
168 168
             if (Is::settled($p)) {
169 169
                 return;
170 170
             }
@@ -172,9 +172,9 @@  discard block
 block discarded – undo
172 172
             if (\count($results) >= $count) {
173 173
                 $p->resolve(null);
174 174
             }
175
-        }, function ($reason) use(&$rejections) : void {
175
+        }, function($reason) use(&$rejections) : void {
176 176
             $rejections[] = $reason;
177
-        })->then(function () use(&$results, &$rejections, $count) {
177
+        })->then(function() use(&$results, &$rejections, $count) {
178 178
             if (\count($results) !== $count) {
179 179
                 throw new AggregateException('Not enough promises to fulfill count', $rejections);
180 180
             }
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      */
191 191
     public static function any($promises) : PromiseInterface
192 192
     {
193
-        return self::some(1, $promises)->then(function ($values) {
193
+        return self::some(1, $promises)->then(function($values) {
194 194
             return $values[0];
195 195
         });
196 196
     }
@@ -207,11 +207,11 @@  discard block
 block discarded – undo
207 207
     public static function settle($promises) : PromiseInterface
208 208
     {
209 209
         $results = [];
210
-        return Each::of($promises, function ($value, $idx) use(&$results) : void {
210
+        return Each::of($promises, function($value, $idx) use(&$results) : void {
211 211
             $results[$idx] = ['state' => PromiseInterface::FULFILLED, 'value' => $value];
212
-        }, function ($reason, $idx) use(&$results) : void {
212
+        }, function($reason, $idx) use(&$results) : void {
213 213
             $results[$idx] = ['state' => PromiseInterface::REJECTED, 'reason' => $reason];
214
-        })->then(function () use(&$results) {
214
+        })->then(function() use(&$results) {
215 215
             \ksort($results);
216 216
             return $results;
217 217
         });
Please login to merge, or discard this patch.
lib/Vendor/GuzzleHttp/Promise/Each.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare (strict_types=1);
3
+declare(strict_types=1);
4 4
 namespace OCA\FullTextSearch_Elasticsearch\Vendor\GuzzleHttp\Promise;
5 5
 
6 6
 final class Each
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public static function ofLimitAll($iterable, $concurrency, ?callable $onFulfilled = null) : PromiseInterface
51 51
     {
52
-        return self::ofLimit($iterable, $concurrency, $onFulfilled, function ($reason, $idx, PromiseInterface $aggregate) : void {
52
+        return self::ofLimit($iterable, $concurrency, $onFulfilled, function($reason, $idx, PromiseInterface $aggregate) : void {
53 53
             $aggregate->reject($reason);
54 54
         });
55 55
     }
Please login to merge, or discard this patch.
lib/Vendor/Elastic/Transport/Transport.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
  * Elasticsearch B.V licenses this file to you under the MIT License.
12 12
  * See the LICENSE file in the project root for more information.
13 13
  */
14
-declare (strict_types=1);
14
+declare(strict_types=1);
15 15
 namespace OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Transport;
16 16
 
17 17
 use Composer\InstalledVersions;
@@ -214,11 +214,11 @@  discard block
 block discarded – undo
214 214
     }
215 215
     private function logHeaders(MessageInterface $message) : void
216 216
     {
217
-        $this->logger->debug(sprintf("Headers: %s\nBody: %s", json_encode($message->getHeaders()), (string) $message->getBody()));
217
+        $this->logger->debug(sprintf("Headers: %s\nBody: %s", json_encode($message->getHeaders()), (string)$message->getBody()));
218 218
     }
219 219
     private function logRequest(string $title, RequestInterface $request) : void
220 220
     {
221
-        $this->logger->info(sprintf("%s: %s %s", $title, $request->getMethod(), (string) $request->getUri()), ['request' => $request]);
221
+        $this->logger->info(sprintf("%s: %s %s", $title, $request->getMethod(), (string)$request->getUri()), ['request' => $request]);
222 222
         $this->logHeaders($request);
223 223
     }
224 224
     private function logResponse(string $title, ResponseInterface $response, int $retry) : void
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
         try {
313 313
             $this->asyncClient = HttpAsyncClientDiscovery::find();
314 314
         } catch (Exception $e) {
315
-            throw new NoAsyncClientException(sprintf("I did not find any HTTP library with HttpAsyncClient interface. " . "Make sure to install a package providing \"php-http/async-client-implementation\". " . "You can also set a specific async library using %s::setAsyncClient()", self::class));
315
+            throw new NoAsyncClientException(sprintf("I did not find any HTTP library with HttpAsyncClient interface. "."Make sure to install a package providing \"php-http/async-client-implementation\". "."You can also set a specific async library using %s::setAsyncClient()", self::class));
316 316
         }
317 317
         return $this->asyncClient;
318 318
     }
@@ -357,13 +357,13 @@  discard block
 block discarded – undo
357 357
         $count = 0;
358 358
         $promise = $client->sendAsyncRequest($request);
359 359
         // onFulfilled callable
360
-        $onFulfilled = function (ResponseInterface $response) use(&$count) {
360
+        $onFulfilled = function(ResponseInterface $response) use(&$count) {
361 361
             $this->lastResponse = $response;
362 362
             $this->logResponse("Async Response", $response, $count);
363 363
             return $this->getAsyncOnSuccess()->success($response, $count);
364 364
         };
365 365
         // onRejected callable
366
-        $onRejected = function (Exception $e) use($client, $request, &$count, $node) {
366
+        $onRejected = function(Exception $e) use($client, $request, &$count, $node) {
367 367
             $this->logger->error(sprintf("Retry %d: %s", $count, $e->getMessage()));
368 368
             $this->getAsyncOnFailure()->failure($e, $request, $count, $node ?? null);
369 369
             if (isset($node)) {
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
             $promise = $promise->then($onFulfilled, $onRejected);
380 380
         }
381 381
         // Add the last getRetries()+1 callable for managing the exceeded error
382
-        $promise = $promise->then($onFulfilled, function (Exception $e) use(&$count) {
382
+        $promise = $promise->then($onFulfilled, function(Exception $e) use(&$count) {
383 383
             $exceededMsg = sprintf("Exceeded maximum number of retries (%d)", $this->getRetries());
384 384
             $this->logger->error(sprintf("Retry %d: %s", $count, $e->getMessage()));
385 385
             $this->logger->error($exceededMsg);
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
     private function getOSVersion() : string
395 395
     {
396 396
         if (!isset($this->OSVersion)) {
397
-            $disable_functions = (string) ini_get('disable_functions');
397
+            $disable_functions = (string)ini_get('disable_functions');
398 398
             $this->OSVersion = strpos(strtolower($disable_functions), 'php_uname') !== \false ? '' : php_uname("r");
399 399
         }
400 400
         return $this->OSVersion;
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
         $fullUrl = sprintf("%s://%s:%s%s", $request->getUri()->getScheme(), $request->getUri()->getHost(), $request->getUri()->getPort(), $request->getUri()->getPath());
426 426
         $queryString = $request->getUri()->getQuery();
427 427
         if (!empty($queryString)) {
428
-            $fullUrl .= '?' . $queryString;
428
+            $fullUrl .= '?'.$queryString;
429 429
         }
430 430
         return $fullUrl;
431 431
     }
Please login to merge, or discard this patch.
lib/Vendor/Elastic/Transport/OpenTelemetry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
  * Elasticsearch B.V licenses this file to you under the MIT License.
12 12
  * See the LICENSE file in the project root for more information.
13 13
  */
14
-declare (strict_types=1);
14
+declare(strict_types=1);
15 15
 namespace OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Transport;
16 16
 
17 17
 use OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Transport\Exception\InvalidArgumentException;
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         // Convert the patterns array into a regex
82 82
         $regex = \sprintf('/%s/', \implode('|', $patterns));
83 83
         // Recursively traverse the array and redact the specified keys
84
-        \array_walk_recursive($json, function (&$value, $key) use($regex) {
84
+        \array_walk_recursive($json, function(&$value, $key) use($regex) {
85 85
             if (\preg_match($regex, $key, $matches)) {
86 86
                 $value = self::REDACTED_STRING;
87 87
             }
Please login to merge, or discard this patch.
lib/Vendor/Elastic/Elasticsearch/Endpoints/Ml.php 1 patch
Spacing   +72 added lines, -72 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
  * Elasticsearch B.V licenses this file to you under the MIT License.
12 12
  * See the LICENSE file in the project root for more information.
13 13
  */
14
-declare (strict_types=1);
14
+declare(strict_types=1);
15 15
 namespace OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\Endpoints;
16 16
 
17 17
 use OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\Exception\ClientResponseException;
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     public function clearTrainedModelDeploymentCache(array $params = [])
50 50
     {
51 51
         $this->checkRequiredParameters(['model_id'], $params);
52
-        $url = '/_ml/trained_models/' . $this->encode($params['model_id']) . '/deployment/cache/_clear';
52
+        $url = '/_ml/trained_models/'.$this->encode($params['model_id']).'/deployment/cache/_clear';
53 53
         $method = 'POST';
54 54
         $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
55 55
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     public function closeJob(array $params = [])
86 86
     {
87 87
         $this->checkRequiredParameters(['job_id'], $params);
88
-        $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/_close';
88
+        $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/_close';
89 89
         $method = 'POST';
90 90
         $url = $this->addQueryString($url, $params, ['allow_no_match', 'force', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
91 91
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     public function deleteCalendar(array $params = [])
118 118
     {
119 119
         $this->checkRequiredParameters(['calendar_id'], $params);
120
-        $url = '/_ml/calendars/' . $this->encode($params['calendar_id']);
120
+        $url = '/_ml/calendars/'.$this->encode($params['calendar_id']);
121 121
         $method = 'DELETE';
122 122
         $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
123 123
         $headers = ['Accept' => 'application/json'];
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
     public function deleteCalendarEvent(array $params = [])
151 151
     {
152 152
         $this->checkRequiredParameters(['calendar_id', 'event_id'], $params);
153
-        $url = '/_ml/calendars/' . $this->encode($params['calendar_id']) . '/events/' . $this->encode($params['event_id']);
153
+        $url = '/_ml/calendars/'.$this->encode($params['calendar_id']).'/events/'.$this->encode($params['event_id']);
154 154
         $method = 'DELETE';
155 155
         $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
156 156
         $headers = ['Accept' => 'application/json'];
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
     public function deleteCalendarJob(array $params = [])
184 184
     {
185 185
         $this->checkRequiredParameters(['calendar_id', 'job_id'], $params);
186
-        $url = '/_ml/calendars/' . $this->encode($params['calendar_id']) . '/jobs/' . $this->encode($params['job_id']);
186
+        $url = '/_ml/calendars/'.$this->encode($params['calendar_id']).'/jobs/'.$this->encode($params['job_id']);
187 187
         $method = 'DELETE';
188 188
         $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
189 189
         $headers = ['Accept' => 'application/json'];
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
     public function deleteDataFrameAnalytics(array $params = [])
218 218
     {
219 219
         $this->checkRequiredParameters(['id'], $params);
220
-        $url = '/_ml/data_frame/analytics/' . $this->encode($params['id']);
220
+        $url = '/_ml/data_frame/analytics/'.$this->encode($params['id']);
221 221
         $method = 'DELETE';
222 222
         $url = $this->addQueryString($url, $params, ['force', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
223 223
         $headers = ['Accept' => 'application/json'];
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
     public function deleteDatafeed(array $params = [])
251 251
     {
252 252
         $this->checkRequiredParameters(['datafeed_id'], $params);
253
-        $url = '/_ml/datafeeds/' . $this->encode($params['datafeed_id']);
253
+        $url = '/_ml/datafeeds/'.$this->encode($params['datafeed_id']);
254 254
         $method = 'DELETE';
255 255
         $url = $this->addQueryString($url, $params, ['force', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
256 256
         $headers = ['Accept' => 'application/json'];
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
     public function deleteExpiredData(array $params = [])
285 285
     {
286 286
         if (isset($params['job_id'])) {
287
-            $url = '/_ml/_delete_expired_data/' . $this->encode($params['job_id']);
287
+            $url = '/_ml/_delete_expired_data/'.$this->encode($params['job_id']);
288 288
             $method = 'DELETE';
289 289
         } else {
290 290
             $url = '/_ml/_delete_expired_data';
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
     public function deleteFilter(array $params = [])
321 321
     {
322 322
         $this->checkRequiredParameters(['filter_id'], $params);
323
-        $url = '/_ml/filters/' . $this->encode($params['filter_id']);
323
+        $url = '/_ml/filters/'.$this->encode($params['filter_id']);
324 324
         $method = 'DELETE';
325 325
         $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
326 326
         $headers = ['Accept' => 'application/json'];
@@ -356,10 +356,10 @@  discard block
 block discarded – undo
356 356
     {
357 357
         $this->checkRequiredParameters(['job_id'], $params);
358 358
         if (isset($params['forecast_id'])) {
359
-            $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/_forecast/' . $this->encode($params['forecast_id']);
359
+            $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/_forecast/'.$this->encode($params['forecast_id']);
360 360
             $method = 'DELETE';
361 361
         } else {
362
-            $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/_forecast';
362
+            $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/_forecast';
363 363
             $method = 'DELETE';
364 364
         }
365 365
         $url = $this->addQueryString($url, $params, ['allow_no_forecasts', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
     public function deleteJob(array $params = [])
396 396
     {
397 397
         $this->checkRequiredParameters(['job_id'], $params);
398
-        $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']);
398
+        $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']);
399 399
         $method = 'DELETE';
400 400
         $url = $this->addQueryString($url, $params, ['force', 'wait_for_completion', 'delete_user_annotations', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
401 401
         $headers = ['Accept' => 'application/json'];
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
     public function deleteModelSnapshot(array $params = [])
429 429
     {
430 430
         $this->checkRequiredParameters(['job_id', 'snapshot_id'], $params);
431
-        $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/model_snapshots/' . $this->encode($params['snapshot_id']);
431
+        $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/model_snapshots/'.$this->encode($params['snapshot_id']);
432 432
         $method = 'DELETE';
433 433
         $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
434 434
         $headers = ['Accept' => 'application/json'];
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
     public function deleteTrainedModel(array $params = [])
463 463
     {
464 464
         $this->checkRequiredParameters(['model_id'], $params);
465
-        $url = '/_ml/trained_models/' . $this->encode($params['model_id']);
465
+        $url = '/_ml/trained_models/'.$this->encode($params['model_id']);
466 466
         $method = 'DELETE';
467 467
         $url = $this->addQueryString($url, $params, ['timeout', 'force', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
468 468
         $headers = ['Accept' => 'application/json'];
@@ -495,7 +495,7 @@  discard block
 block discarded – undo
495 495
     public function deleteTrainedModelAlias(array $params = [])
496 496
     {
497 497
         $this->checkRequiredParameters(['model_alias', 'model_id'], $params);
498
-        $url = '/_ml/trained_models/' . $this->encode($params['model_id']) . '/model_aliases/' . $this->encode($params['model_alias']);
498
+        $url = '/_ml/trained_models/'.$this->encode($params['model_id']).'/model_aliases/'.$this->encode($params['model_alias']);
499 499
         $method = 'DELETE';
500 500
         $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
501 501
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -589,7 +589,7 @@  discard block
 block discarded – undo
589 589
     public function explainDataFrameAnalytics(array $params = [])
590 590
     {
591 591
         if (isset($params['id'])) {
592
-            $url = '/_ml/data_frame/analytics/' . $this->encode($params['id']) . '/_explain';
592
+            $url = '/_ml/data_frame/analytics/'.$this->encode($params['id']).'/_explain';
593 593
             $method = empty($params['body']) ? 'GET' : 'POST';
594 594
         } else {
595 595
             $url = '/_ml/data_frame/analytics/_explain';
@@ -631,7 +631,7 @@  discard block
 block discarded – undo
631 631
     public function flushJob(array $params = [])
632 632
     {
633 633
         $this->checkRequiredParameters(['job_id'], $params);
634
-        $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/_flush';
634
+        $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/_flush';
635 635
         $method = 'POST';
636 636
         $url = $this->addQueryString($url, $params, ['calc_interim', 'start', 'end', 'advance_time', 'skip_time', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
637 637
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -667,7 +667,7 @@  discard block
 block discarded – undo
667 667
     public function forecast(array $params = [])
668 668
     {
669 669
         $this->checkRequiredParameters(['job_id'], $params);
670
-        $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/_forecast';
670
+        $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/_forecast';
671 671
         $method = 'POST';
672 672
         $url = $this->addQueryString($url, $params, ['duration', 'expires_in', 'max_model_memory', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
673 673
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -711,10 +711,10 @@  discard block
 block discarded – undo
711 711
     {
712 712
         $this->checkRequiredParameters(['job_id'], $params);
713 713
         if (isset($params['timestamp'])) {
714
-            $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/results/buckets/' . $this->encode($params['timestamp']);
714
+            $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/results/buckets/'.$this->encode($params['timestamp']);
715 715
             $method = empty($params['body']) ? 'GET' : 'POST';
716 716
         } else {
717
-            $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/results/buckets';
717
+            $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/results/buckets';
718 718
             $method = empty($params['body']) ? 'GET' : 'POST';
719 719
         }
720 720
         $url = $this->addQueryString($url, $params, ['expand', 'exclude_interim', 'from', 'size', 'start', 'end', 'anomaly_score', 'sort', 'desc', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
@@ -752,7 +752,7 @@  discard block
 block discarded – undo
752 752
     public function getCalendarEvents(array $params = [])
753 753
     {
754 754
         $this->checkRequiredParameters(['calendar_id'], $params);
755
-        $url = '/_ml/calendars/' . $this->encode($params['calendar_id']) . '/events';
755
+        $url = '/_ml/calendars/'.$this->encode($params['calendar_id']).'/events';
756 756
         $method = 'GET';
757 757
         $url = $this->addQueryString($url, $params, ['job_id', 'start', 'end', 'from', 'size', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
758 758
         $headers = ['Accept' => 'application/json'];
@@ -786,7 +786,7 @@  discard block
 block discarded – undo
786 786
     public function getCalendars(array $params = [])
787 787
     {
788 788
         if (isset($params['calendar_id'])) {
789
-            $url = '/_ml/calendars/' . $this->encode($params['calendar_id']);
789
+            $url = '/_ml/calendars/'.$this->encode($params['calendar_id']);
790 790
             $method = empty($params['body']) ? 'GET' : 'POST';
791 791
         } else {
792 792
             $url = '/_ml/calendars';
@@ -828,10 +828,10 @@  discard block
 block discarded – undo
828 828
     {
829 829
         $this->checkRequiredParameters(['job_id'], $params);
830 830
         if (isset($params['category_id'])) {
831
-            $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/results/categories/' . $this->encode($params['category_id']);
831
+            $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/results/categories/'.$this->encode($params['category_id']);
832 832
             $method = empty($params['body']) ? 'GET' : 'POST';
833 833
         } else {
834
-            $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/results/categories';
834
+            $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/results/categories';
835 835
             $method = empty($params['body']) ? 'GET' : 'POST';
836 836
         }
837 837
         $url = $this->addQueryString($url, $params, ['from', 'size', 'partition_field_value', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
@@ -867,7 +867,7 @@  discard block
 block discarded – undo
867 867
     public function getDataFrameAnalytics(array $params = [])
868 868
     {
869 869
         if (isset($params['id'])) {
870
-            $url = '/_ml/data_frame/analytics/' . $this->encode($params['id']);
870
+            $url = '/_ml/data_frame/analytics/'.$this->encode($params['id']);
871 871
             $method = 'GET';
872 872
         } else {
873 873
             $url = '/_ml/data_frame/analytics';
@@ -906,7 +906,7 @@  discard block
 block discarded – undo
906 906
     public function getDataFrameAnalyticsStats(array $params = [])
907 907
     {
908 908
         if (isset($params['id'])) {
909
-            $url = '/_ml/data_frame/analytics/' . $this->encode($params['id']) . '/_stats';
909
+            $url = '/_ml/data_frame/analytics/'.$this->encode($params['id']).'/_stats';
910 910
             $method = 'GET';
911 911
         } else {
912 912
             $url = '/_ml/data_frame/analytics/_stats';
@@ -942,7 +942,7 @@  discard block
 block discarded – undo
942 942
     public function getDatafeedStats(array $params = [])
943 943
     {
944 944
         if (isset($params['datafeed_id'])) {
945
-            $url = '/_ml/datafeeds/' . $this->encode($params['datafeed_id']) . '/_stats';
945
+            $url = '/_ml/datafeeds/'.$this->encode($params['datafeed_id']).'/_stats';
946 946
             $method = 'GET';
947 947
         } else {
948 948
             $url = '/_ml/datafeeds/_stats';
@@ -979,7 +979,7 @@  discard block
 block discarded – undo
979 979
     public function getDatafeeds(array $params = [])
980 980
     {
981 981
         if (isset($params['datafeed_id'])) {
982
-            $url = '/_ml/datafeeds/' . $this->encode($params['datafeed_id']);
982
+            $url = '/_ml/datafeeds/'.$this->encode($params['datafeed_id']);
983 983
             $method = 'GET';
984 984
         } else {
985 985
             $url = '/_ml/datafeeds';
@@ -1016,7 +1016,7 @@  discard block
 block discarded – undo
1016 1016
     public function getFilters(array $params = [])
1017 1017
     {
1018 1018
         if (isset($params['filter_id'])) {
1019
-            $url = '/_ml/filters/' . $this->encode($params['filter_id']);
1019
+            $url = '/_ml/filters/'.$this->encode($params['filter_id']);
1020 1020
             $method = 'GET';
1021 1021
         } else {
1022 1022
             $url = '/_ml/filters';
@@ -1061,7 +1061,7 @@  discard block
 block discarded – undo
1061 1061
     public function getInfluencers(array $params = [])
1062 1062
     {
1063 1063
         $this->checkRequiredParameters(['job_id'], $params);
1064
-        $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/results/influencers';
1064
+        $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/results/influencers';
1065 1065
         $method = empty($params['body']) ? 'GET' : 'POST';
1066 1066
         $url = $this->addQueryString($url, $params, ['exclude_interim', 'from', 'size', 'start', 'end', 'influencer_score', 'sort', 'desc', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
1067 1067
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -1093,7 +1093,7 @@  discard block
 block discarded – undo
1093 1093
     public function getJobStats(array $params = [])
1094 1094
     {
1095 1095
         if (isset($params['job_id'])) {
1096
-            $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/_stats';
1096
+            $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/_stats';
1097 1097
             $method = 'GET';
1098 1098
         } else {
1099 1099
             $url = '/_ml/anomaly_detectors/_stats';
@@ -1130,7 +1130,7 @@  discard block
 block discarded – undo
1130 1130
     public function getJobs(array $params = [])
1131 1131
     {
1132 1132
         if (isset($params['job_id'])) {
1133
-            $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']);
1133
+            $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']);
1134 1134
             $method = 'GET';
1135 1135
         } else {
1136 1136
             $url = '/_ml/anomaly_detectors';
@@ -1167,7 +1167,7 @@  discard block
 block discarded – undo
1167 1167
     public function getMemoryStats(array $params = [])
1168 1168
     {
1169 1169
         if (isset($params['node_id'])) {
1170
-            $url = '/_ml/memory/' . $this->encode($params['node_id']) . '/_stats';
1170
+            $url = '/_ml/memory/'.$this->encode($params['node_id']).'/_stats';
1171 1171
             $method = 'GET';
1172 1172
         } else {
1173 1173
             $url = '/_ml/memory/_stats';
@@ -1205,7 +1205,7 @@  discard block
 block discarded – undo
1205 1205
     public function getModelSnapshotUpgradeStats(array $params = [])
1206 1206
     {
1207 1207
         $this->checkRequiredParameters(['job_id', 'snapshot_id'], $params);
1208
-        $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/model_snapshots/' . $this->encode($params['snapshot_id']) . '/_upgrade/_stats';
1208
+        $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/model_snapshots/'.$this->encode($params['snapshot_id']).'/_upgrade/_stats';
1209 1209
         $method = 'GET';
1210 1210
         $url = $this->addQueryString($url, $params, ['allow_no_match', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
1211 1211
         $headers = ['Accept' => 'application/json'];
@@ -1246,10 +1246,10 @@  discard block
 block discarded – undo
1246 1246
     {
1247 1247
         $this->checkRequiredParameters(['job_id'], $params);
1248 1248
         if (isset($params['snapshot_id'])) {
1249
-            $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/model_snapshots/' . $this->encode($params['snapshot_id']);
1249
+            $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/model_snapshots/'.$this->encode($params['snapshot_id']);
1250 1250
             $method = empty($params['body']) ? 'GET' : 'POST';
1251 1251
         } else {
1252
-            $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/model_snapshots';
1252
+            $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/model_snapshots';
1253 1253
             $method = empty($params['body']) ? 'GET' : 'POST';
1254 1254
         }
1255 1255
         $url = $this->addQueryString($url, $params, ['from', 'size', 'start', 'end', 'sort', 'desc', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
@@ -1290,7 +1290,7 @@  discard block
 block discarded – undo
1290 1290
     public function getOverallBuckets(array $params = [])
1291 1291
     {
1292 1292
         $this->checkRequiredParameters(['job_id'], $params);
1293
-        $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/results/overall_buckets';
1293
+        $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/results/overall_buckets';
1294 1294
         $method = empty($params['body']) ? 'GET' : 'POST';
1295 1295
         $url = $this->addQueryString($url, $params, ['top_n', 'bucket_span', 'overall_score', 'exclude_interim', 'start', 'end', 'allow_no_match', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
1296 1296
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -1331,7 +1331,7 @@  discard block
 block discarded – undo
1331 1331
     public function getRecords(array $params = [])
1332 1332
     {
1333 1333
         $this->checkRequiredParameters(['job_id'], $params);
1334
-        $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/results/records';
1334
+        $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/results/records';
1335 1335
         $method = empty($params['body']) ? 'GET' : 'POST';
1336 1336
         $url = $this->addQueryString($url, $params, ['exclude_interim', 'from', 'size', 'start', 'end', 'record_score', 'sort', 'desc', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
1337 1337
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -1370,7 +1370,7 @@  discard block
 block discarded – undo
1370 1370
     public function getTrainedModels(array $params = [])
1371 1371
     {
1372 1372
         if (isset($params['model_id'])) {
1373
-            $url = '/_ml/trained_models/' . $this->encode($params['model_id']);
1373
+            $url = '/_ml/trained_models/'.$this->encode($params['model_id']);
1374 1374
             $method = 'GET';
1375 1375
         } else {
1376 1376
             $url = '/_ml/trained_models';
@@ -1408,7 +1408,7 @@  discard block
 block discarded – undo
1408 1408
     public function getTrainedModelsStats(array $params = [])
1409 1409
     {
1410 1410
         if (isset($params['model_id'])) {
1411
-            $url = '/_ml/trained_models/' . $this->encode($params['model_id']) . '/_stats';
1411
+            $url = '/_ml/trained_models/'.$this->encode($params['model_id']).'/_stats';
1412 1412
             $method = 'GET';
1413 1413
         } else {
1414 1414
             $url = '/_ml/trained_models/_stats';
@@ -1446,7 +1446,7 @@  discard block
 block discarded – undo
1446 1446
     public function inferTrainedModel(array $params = [])
1447 1447
     {
1448 1448
         $this->checkRequiredParameters(['model_id', 'body'], $params);
1449
-        $url = '/_ml/trained_models/' . $this->encode($params['model_id']) . '/_infer';
1449
+        $url = '/_ml/trained_models/'.$this->encode($params['model_id']).'/_infer';
1450 1450
         $method = 'POST';
1451 1451
         $url = $this->addQueryString($url, $params, ['timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
1452 1452
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -1508,7 +1508,7 @@  discard block
 block discarded – undo
1508 1508
     public function openJob(array $params = [])
1509 1509
     {
1510 1510
         $this->checkRequiredParameters(['job_id'], $params);
1511
-        $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/_open';
1511
+        $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/_open';
1512 1512
         $method = 'POST';
1513 1513
         $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
1514 1514
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -1541,7 +1541,7 @@  discard block
 block discarded – undo
1541 1541
     public function postCalendarEvents(array $params = [])
1542 1542
     {
1543 1543
         $this->checkRequiredParameters(['calendar_id', 'body'], $params);
1544
-        $url = '/_ml/calendars/' . $this->encode($params['calendar_id']) . '/events';
1544
+        $url = '/_ml/calendars/'.$this->encode($params['calendar_id']).'/events';
1545 1545
         $method = 'POST';
1546 1546
         $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
1547 1547
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -1576,7 +1576,7 @@  discard block
 block discarded – undo
1576 1576
     public function postData(array $params = [])
1577 1577
     {
1578 1578
         $this->checkRequiredParameters(['job_id', 'body'], $params);
1579
-        $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/_data';
1579
+        $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/_data';
1580 1580
         $method = 'POST';
1581 1581
         $url = $this->addQueryString($url, $params, ['reset_start', 'reset_end', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
1582 1582
         $headers = ['Accept' => 'application/json', 'Content-Type' => isset($params['body']) && (\is_string($params['body']) || $this->isAssociativeArray($params['body'])) ? 'application/json' : 'application/x-ndjson'];
@@ -1608,7 +1608,7 @@  discard block
 block discarded – undo
1608 1608
     public function previewDataFrameAnalytics(array $params = [])
1609 1609
     {
1610 1610
         if (isset($params['id'])) {
1611
-            $url = '/_ml/data_frame/analytics/' . $this->encode($params['id']) . '/_preview';
1611
+            $url = '/_ml/data_frame/analytics/'.$this->encode($params['id']).'/_preview';
1612 1612
             $method = empty($params['body']) ? 'GET' : 'POST';
1613 1613
         } else {
1614 1614
             $url = '/_ml/data_frame/analytics/_preview';
@@ -1646,7 +1646,7 @@  discard block
 block discarded – undo
1646 1646
     public function previewDatafeed(array $params = [])
1647 1647
     {
1648 1648
         if (isset($params['datafeed_id'])) {
1649
-            $url = '/_ml/datafeeds/' . $this->encode($params['datafeed_id']) . '/_preview';
1649
+            $url = '/_ml/datafeeds/'.$this->encode($params['datafeed_id']).'/_preview';
1650 1650
             $method = empty($params['body']) ? 'GET' : 'POST';
1651 1651
         } else {
1652 1652
             $url = '/_ml/datafeeds/_preview';
@@ -1683,7 +1683,7 @@  discard block
 block discarded – undo
1683 1683
     public function putCalendar(array $params = [])
1684 1684
     {
1685 1685
         $this->checkRequiredParameters(['calendar_id'], $params);
1686
-        $url = '/_ml/calendars/' . $this->encode($params['calendar_id']);
1686
+        $url = '/_ml/calendars/'.$this->encode($params['calendar_id']);
1687 1687
         $method = 'PUT';
1688 1688
         $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
1689 1689
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -1716,7 +1716,7 @@  discard block
 block discarded – undo
1716 1716
     public function putCalendarJob(array $params = [])
1717 1717
     {
1718 1718
         $this->checkRequiredParameters(['calendar_id', 'job_id'], $params);
1719
-        $url = '/_ml/calendars/' . $this->encode($params['calendar_id']) . '/jobs/' . $this->encode($params['job_id']);
1719
+        $url = '/_ml/calendars/'.$this->encode($params['calendar_id']).'/jobs/'.$this->encode($params['job_id']);
1720 1720
         $method = 'PUT';
1721 1721
         $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
1722 1722
         $headers = ['Accept' => 'application/json'];
@@ -1749,7 +1749,7 @@  discard block
 block discarded – undo
1749 1749
     public function putDataFrameAnalytics(array $params = [])
1750 1750
     {
1751 1751
         $this->checkRequiredParameters(['id', 'body'], $params);
1752
-        $url = '/_ml/data_frame/analytics/' . $this->encode($params['id']);
1752
+        $url = '/_ml/data_frame/analytics/'.$this->encode($params['id']);
1753 1753
         $method = 'PUT';
1754 1754
         $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
1755 1755
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -1786,7 +1786,7 @@  discard block
 block discarded – undo
1786 1786
     public function putDatafeed(array $params = [])
1787 1787
     {
1788 1788
         $this->checkRequiredParameters(['datafeed_id', 'body'], $params);
1789
-        $url = '/_ml/datafeeds/' . $this->encode($params['datafeed_id']);
1789
+        $url = '/_ml/datafeeds/'.$this->encode($params['datafeed_id']);
1790 1790
         $method = 'PUT';
1791 1791
         $url = $this->addQueryString($url, $params, ['ignore_unavailable', 'allow_no_indices', 'ignore_throttled', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
1792 1792
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -1819,7 +1819,7 @@  discard block
 block discarded – undo
1819 1819
     public function putFilter(array $params = [])
1820 1820
     {
1821 1821
         $this->checkRequiredParameters(['filter_id', 'body'], $params);
1822
-        $url = '/_ml/filters/' . $this->encode($params['filter_id']);
1822
+        $url = '/_ml/filters/'.$this->encode($params['filter_id']);
1823 1823
         $method = 'PUT';
1824 1824
         $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
1825 1825
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -1856,7 +1856,7 @@  discard block
 block discarded – undo
1856 1856
     public function putJob(array $params = [])
1857 1857
     {
1858 1858
         $this->checkRequiredParameters(['job_id', 'body'], $params);
1859
-        $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']);
1859
+        $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']);
1860 1860
         $method = 'PUT';
1861 1861
         $url = $this->addQueryString($url, $params, ['ignore_unavailable', 'allow_no_indices', 'ignore_throttled', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
1862 1862
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -1891,7 +1891,7 @@  discard block
 block discarded – undo
1891 1891
     public function putTrainedModel(array $params = [])
1892 1892
     {
1893 1893
         $this->checkRequiredParameters(['model_id', 'body'], $params);
1894
-        $url = '/_ml/trained_models/' . $this->encode($params['model_id']);
1894
+        $url = '/_ml/trained_models/'.$this->encode($params['model_id']);
1895 1895
         $method = 'PUT';
1896 1896
         $url = $this->addQueryString($url, $params, ['defer_definition_decompression', 'wait_for_completion', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
1897 1897
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -1925,7 +1925,7 @@  discard block
 block discarded – undo
1925 1925
     public function putTrainedModelAlias(array $params = [])
1926 1926
     {
1927 1927
         $this->checkRequiredParameters(['model_alias', 'model_id'], $params);
1928
-        $url = '/_ml/trained_models/' . $this->encode($params['model_id']) . '/model_aliases/' . $this->encode($params['model_alias']);
1928
+        $url = '/_ml/trained_models/'.$this->encode($params['model_id']).'/model_aliases/'.$this->encode($params['model_alias']);
1929 1929
         $method = 'PUT';
1930 1930
         $url = $this->addQueryString($url, $params, ['reassign', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
1931 1931
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -1959,7 +1959,7 @@  discard block
 block discarded – undo
1959 1959
     public function putTrainedModelDefinitionPart(array $params = [])
1960 1960
     {
1961 1961
         $this->checkRequiredParameters(['model_id', 'part', 'body'], $params);
1962
-        $url = '/_ml/trained_models/' . $this->encode($params['model_id']) . '/definition/' . $this->encode($params['part']);
1962
+        $url = '/_ml/trained_models/'.$this->encode($params['model_id']).'/definition/'.$this->encode($params['part']);
1963 1963
         $method = 'PUT';
1964 1964
         $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
1965 1965
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -1992,7 +1992,7 @@  discard block
 block discarded – undo
1992 1992
     public function putTrainedModelVocabulary(array $params = [])
1993 1993
     {
1994 1994
         $this->checkRequiredParameters(['model_id', 'body'], $params);
1995
-        $url = '/_ml/trained_models/' . $this->encode($params['model_id']) . '/vocabulary';
1995
+        $url = '/_ml/trained_models/'.$this->encode($params['model_id']).'/vocabulary';
1996 1996
         $method = 'PUT';
1997 1997
         $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
1998 1998
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -2026,7 +2026,7 @@  discard block
 block discarded – undo
2026 2026
     public function resetJob(array $params = [])
2027 2027
     {
2028 2028
         $this->checkRequiredParameters(['job_id'], $params);
2029
-        $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/_reset';
2029
+        $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/_reset';
2030 2030
         $method = 'POST';
2031 2031
         $url = $this->addQueryString($url, $params, ['wait_for_completion', 'delete_user_annotations', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
2032 2032
         $headers = ['Accept' => 'application/json'];
@@ -2061,7 +2061,7 @@  discard block
 block discarded – undo
2061 2061
     public function revertModelSnapshot(array $params = [])
2062 2062
     {
2063 2063
         $this->checkRequiredParameters(['job_id', 'snapshot_id'], $params);
2064
-        $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/model_snapshots/' . $this->encode($params['snapshot_id']) . '/_revert';
2064
+        $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/model_snapshots/'.$this->encode($params['snapshot_id']).'/_revert';
2065 2065
         $method = 'POST';
2066 2066
         $url = $this->addQueryString($url, $params, ['delete_intervening_results', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
2067 2067
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -2126,7 +2126,7 @@  discard block
 block discarded – undo
2126 2126
     public function startDataFrameAnalytics(array $params = [])
2127 2127
     {
2128 2128
         $this->checkRequiredParameters(['id'], $params);
2129
-        $url = '/_ml/data_frame/analytics/' . $this->encode($params['id']) . '/_start';
2129
+        $url = '/_ml/data_frame/analytics/'.$this->encode($params['id']).'/_start';
2130 2130
         $method = 'POST';
2131 2131
         $url = $this->addQueryString($url, $params, ['timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
2132 2132
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -2162,7 +2162,7 @@  discard block
 block discarded – undo
2162 2162
     public function startDatafeed(array $params = [])
2163 2163
     {
2164 2164
         $this->checkRequiredParameters(['datafeed_id'], $params);
2165
-        $url = '/_ml/datafeeds/' . $this->encode($params['datafeed_id']) . '/_start';
2165
+        $url = '/_ml/datafeeds/'.$this->encode($params['datafeed_id']).'/_start';
2166 2166
         $method = 'POST';
2167 2167
         $url = $this->addQueryString($url, $params, ['start', 'end', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
2168 2168
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -2202,7 +2202,7 @@  discard block
 block discarded – undo
2202 2202
     public function startTrainedModelDeployment(array $params = [])
2203 2203
     {
2204 2204
         $this->checkRequiredParameters(['model_id'], $params);
2205
-        $url = '/_ml/trained_models/' . $this->encode($params['model_id']) . '/deployment/_start';
2205
+        $url = '/_ml/trained_models/'.$this->encode($params['model_id']).'/deployment/_start';
2206 2206
         $method = 'POST';
2207 2207
         $url = $this->addQueryString($url, $params, ['cache_size', 'deployment_id', 'number_of_allocations', 'threads_per_allocation', 'priority', 'queue_capacity', 'timeout', 'wait_for', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
2208 2208
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -2238,7 +2238,7 @@  discard block
 block discarded – undo
2238 2238
     public function stopDataFrameAnalytics(array $params = [])
2239 2239
     {
2240 2240
         $this->checkRequiredParameters(['id'], $params);
2241
-        $url = '/_ml/data_frame/analytics/' . $this->encode($params['id']) . '/_stop';
2241
+        $url = '/_ml/data_frame/analytics/'.$this->encode($params['id']).'/_stop';
2242 2242
         $method = 'POST';
2243 2243
         $url = $this->addQueryString($url, $params, ['allow_no_match', 'force', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
2244 2244
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -2275,7 +2275,7 @@  discard block
 block discarded – undo
2275 2275
     public function stopDatafeed(array $params = [])
2276 2276
     {
2277 2277
         $this->checkRequiredParameters(['datafeed_id'], $params);
2278
-        $url = '/_ml/datafeeds/' . $this->encode($params['datafeed_id']) . '/_stop';
2278
+        $url = '/_ml/datafeeds/'.$this->encode($params['datafeed_id']).'/_stop';
2279 2279
         $method = 'POST';
2280 2280
         $url = $this->addQueryString($url, $params, ['allow_no_match', 'allow_no_datafeeds', 'force', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
2281 2281
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -2310,7 +2310,7 @@  discard block
 block discarded – undo
2310 2310
     public function stopTrainedModelDeployment(array $params = [])
2311 2311
     {
2312 2312
         $this->checkRequiredParameters(['model_id'], $params);
2313
-        $url = '/_ml/trained_models/' . $this->encode($params['model_id']) . '/deployment/_stop';
2313
+        $url = '/_ml/trained_models/'.$this->encode($params['model_id']).'/deployment/_stop';
2314 2314
         $method = 'POST';
2315 2315
         $url = $this->addQueryString($url, $params, ['allow_no_match', 'force', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
2316 2316
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -2343,7 +2343,7 @@  discard block
 block discarded – undo
2343 2343
     public function updateDataFrameAnalytics(array $params = [])
2344 2344
     {
2345 2345
         $this->checkRequiredParameters(['id', 'body'], $params);
2346
-        $url = '/_ml/data_frame/analytics/' . $this->encode($params['id']) . '/_update';
2346
+        $url = '/_ml/data_frame/analytics/'.$this->encode($params['id']).'/_update';
2347 2347
         $method = 'POST';
2348 2348
         $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
2349 2349
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -2380,7 +2380,7 @@  discard block
 block discarded – undo
2380 2380
     public function updateDatafeed(array $params = [])
2381 2381
     {
2382 2382
         $this->checkRequiredParameters(['datafeed_id', 'body'], $params);
2383
-        $url = '/_ml/datafeeds/' . $this->encode($params['datafeed_id']) . '/_update';
2383
+        $url = '/_ml/datafeeds/'.$this->encode($params['datafeed_id']).'/_update';
2384 2384
         $method = 'POST';
2385 2385
         $url = $this->addQueryString($url, $params, ['ignore_unavailable', 'allow_no_indices', 'ignore_throttled', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
2386 2386
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -2413,7 +2413,7 @@  discard block
 block discarded – undo
2413 2413
     public function updateFilter(array $params = [])
2414 2414
     {
2415 2415
         $this->checkRequiredParameters(['filter_id', 'body'], $params);
2416
-        $url = '/_ml/filters/' . $this->encode($params['filter_id']) . '/_update';
2416
+        $url = '/_ml/filters/'.$this->encode($params['filter_id']).'/_update';
2417 2417
         $method = 'POST';
2418 2418
         $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
2419 2419
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -2446,7 +2446,7 @@  discard block
 block discarded – undo
2446 2446
     public function updateJob(array $params = [])
2447 2447
     {
2448 2448
         $this->checkRequiredParameters(['job_id', 'body'], $params);
2449
-        $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/_update';
2449
+        $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/_update';
2450 2450
         $method = 'POST';
2451 2451
         $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
2452 2452
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -2480,7 +2480,7 @@  discard block
 block discarded – undo
2480 2480
     public function updateModelSnapshot(array $params = [])
2481 2481
     {
2482 2482
         $this->checkRequiredParameters(['job_id', 'snapshot_id', 'body'], $params);
2483
-        $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/model_snapshots/' . $this->encode($params['snapshot_id']) . '/_update';
2483
+        $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/model_snapshots/'.$this->encode($params['snapshot_id']).'/_update';
2484 2484
         $method = 'POST';
2485 2485
         $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
2486 2486
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -2514,7 +2514,7 @@  discard block
 block discarded – undo
2514 2514
     public function updateTrainedModelDeployment(array $params = [])
2515 2515
     {
2516 2516
         $this->checkRequiredParameters(['model_id'], $params);
2517
-        $url = '/_ml/trained_models/' . $this->encode($params['model_id']) . '/deployment/_update';
2517
+        $url = '/_ml/trained_models/'.$this->encode($params['model_id']).'/deployment/_update';
2518 2518
         $method = 'POST';
2519 2519
         $url = $this->addQueryString($url, $params, ['number_of_allocations', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
2520 2520
         $headers = ['Accept' => 'application/json', 'Content-Type' => 'application/json'];
@@ -2549,7 +2549,7 @@  discard block
 block discarded – undo
2549 2549
     public function upgradeJobSnapshot(array $params = [])
2550 2550
     {
2551 2551
         $this->checkRequiredParameters(['job_id', 'snapshot_id'], $params);
2552
-        $url = '/_ml/anomaly_detectors/' . $this->encode($params['job_id']) . '/model_snapshots/' . $this->encode($params['snapshot_id']) . '/_upgrade';
2552
+        $url = '/_ml/anomaly_detectors/'.$this->encode($params['job_id']).'/model_snapshots/'.$this->encode($params['snapshot_id']).'/_upgrade';
2553 2553
         $method = 'POST';
2554 2554
         $url = $this->addQueryString($url, $params, ['timeout', 'wait_for_completion', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
2555 2555
         $headers = ['Accept' => 'application/json'];
Please login to merge, or discard this patch.