Skip to content

Commit fda35ec

Browse files
committed
CS fixes
1 parent b2bbf43 commit fda35ec

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

src/WaitingClient.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
namespace PHPDIDefinitions\Clue\Redis\Client;
44

@@ -26,14 +26,9 @@ final class WaitingClient implements Client
2626
*/
2727
private $callQueue;
2828

29-
public static function create(LoopInterface $loop, string $dsn, LoggerInterface $logger = null): self
30-
{
31-
return new self(new Factory($loop), $dsn, $logger ?? new NullLogger());
32-
}
33-
3429
/**
35-
* @param Factory $factory
36-
* @param string $dsn
30+
* @param Factory $factory
31+
* @param string $dsn
3732
* @param LoggerInterface $logger
3833
*
3934
* @internal
@@ -74,6 +69,11 @@ public function __call($name, $args)
7469
return $deferred->promise();
7570
}
7671

72+
public static function create(LoopInterface $loop, string $dsn, LoggerInterface $logger = null): self
73+
{
74+
return new self(new Factory($loop), $dsn, $logger ?? new NullLogger());
75+
}
76+
7777
public function end()
7878
{
7979
// TODO: Implement end() method.

tests/RedisClient.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
namespace PHPDIDefinitions\Tests\Clue\Redis\Client;
44

@@ -9,14 +9,13 @@ class RedisClient implements Client
99
{
1010
use EventEmitterTrait;
1111

12-
public function incr(...$args)
12+
public function __call($name, $args)
1313
{
14-
14+
// TODO: Implement __call() method.
1515
}
1616

17-
public function __call($name, $args)
17+
public function incr(...$args)
1818
{
19-
// TODO: Implement __call() method.
2019
}
2120

2221
public function end()

tests/WaitingClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
namespace PHPDIDefinitions\Tests\Clue\Redis\Client;
44

0 commit comments

Comments
 (0)