Skip to content

Commit 1c90646

Browse files
committed
adjust to new cs rules
1 parent 45db684 commit 1c90646

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/PluginChain.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
namespace Http\Client\Common;
66

7-
use function array_reverse;
8-
97
use Http\Client\Common\Exception\LoopException;
108
use Http\Promise\Promise;
119
use Psr\Http\Message\RequestInterface;
@@ -39,7 +37,7 @@ public function __construct(array $plugins, callable $clientCallable, array $opt
3937
private function createChain(): callable
4038
{
4139
$lastCallable = $this->clientCallable;
42-
$reversedPlugins = array_reverse($this->plugins);
40+
$reversedPlugins = \array_reverse($this->plugins);
4341

4442
foreach ($reversedPlugins as $plugin) {
4543
$lastCallable = function (RequestInterface $request) use ($plugin, $lastCallable) {

tests/PluginClientBuilderTest.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace tests\Http\Client\Common;
66

7-
use Closure;
87
use Http\Client\Common\Plugin;
98
use Http\Client\Common\PluginClient;
109
use Http\Client\Common\PluginClientBuilder;
@@ -32,7 +31,7 @@ public function testPriority(string $client): void
3231
$client = $this->prophesize($client)->reveal();
3332
$client = $builder->createClient($client);
3433

35-
$closure = Closure::bind(
34+
$closure = \Closure::bind(
3635
function (): array {
3736
return $this->plugins;
3837
},
@@ -58,7 +57,7 @@ public function testOptions(string $client): void
5857
$client = $this->prophesize($client)->reveal();
5958
$client = $builder->createClient($client);
6059

61-
$closure = Closure::bind(
60+
$closure = \Closure::bind(
6261
function (): array {
6362
return $this->options;
6463
},

0 commit comments

Comments
 (0)