@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | { |
| 66 | 66 | static $availableMethods; |
| 67 | 67 | |
| 68 | - $availableMethods ??= ['HEAD', 'GET', 'DELETE', 'OPTIONS', 'PATCH', 'POST', 'PUT',]; |
|
| 68 | + $availableMethods ??= ['HEAD', 'GET', 'DELETE', 'OPTIONS', 'PATCH', 'POST', 'PUT', ]; |
|
| 69 | 69 | |
| 70 | 70 | // Check for a valid method |
| 71 | 71 | if (!in_array($method, $availableMethods, true)) { |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | |
| 123 | 123 | $invalidOptions = []; |
| 124 | 124 | |
| 125 | - array_filter($options, static function ($value, int|string $key) use (&$invalidOptions, $validOptions): bool { |
|
| 125 | + array_filter($options, static function($value, int | string $key) use (&$invalidOptions, $validOptions): bool { |
|
| 126 | 126 | if (!in_array($key, $validOptions, true)) { |
| 127 | 127 | $invalidOptions[] = $key; |
| 128 | 128 | |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | $handlerStack->push(Middleware::retry($this->retryDecider(), $this->retryDelay())); |
| 301 | 301 | } |
| 302 | 302 | |
| 303 | - $defaultOptions += ['handler' => $handlerStack,]; |
|
| 303 | + $defaultOptions += ['handler' => $handlerStack, ]; |
|
| 304 | 304 | |
| 305 | 305 | // Attempt instantiating the client. Generally we should only run into issues if any options |
| 306 | 306 | // passed to Guzzle are incorrectly defined/configured. |
@@ -409,7 +409,7 @@ discard block |
||
| 409 | 409 | */ |
| 410 | 410 | private function retryDecider(): Closure |
| 411 | 411 | { |
| 412 | - return function ( |
|
| 412 | + return function( |
|
| 413 | 413 | $retries, |
| 414 | 414 | RequestInterface $request, |
| 415 | 415 | ?ResponseInterface $response = null, |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | use Rector\Set\ValueObject\LevelSetList; |
| 11 | 11 | use Rector\Set\ValueObject\SetList; |
| 12 | 12 | |
| 13 | -return static function (RectorConfig $rectorConfig): void { |
|
| 13 | +return static function(RectorConfig $rectorConfig): void { |
|
| 14 | 14 | $rectorConfig->paths([ |
| 15 | 15 | __DIR__ . '/src', |
| 16 | 16 | __DIR__ . '/tests/src', |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | SetList::STRICT_BOOLEANS, |
| 29 | 29 | //SetList::PRIVATIZATION, |
| 30 | 30 | //SetList::EARLY_RETURN, |
| 31 | - SetList::INSTANCEOF, |
|
| 31 | + SetList::instanceof, |
|
| 32 | 32 | LevelSetList::UP_TO_PHP_82, |
| 33 | 33 | PHPUnitSetList::PHPUNIT_100, |
| 34 | 34 | PHPUnitSetList::PHPUNIT_CODE_QUALITY, |