Skip to content

Commit c5932eb

Browse files
authored
style: run cs fix (#1290)
1 parent ff7419b commit c5932eb

File tree

8 files changed

+21
-11
lines changed

8 files changed

+21
-11
lines changed

benchmarks/BuildSchemaBench.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@
66

77
/**
88
* @BeforeMethods({"makeSchemaString"})
9+
*
910
* @OutputTimeUnit("milliseconds", precision=3)
11+
*
1012
* @Warmup(2)
13+
*
1114
* @Revs(10)
15+
*
1216
* @Iterations(2)
1317
*/
1418
class BuildSchemaBench

benchmarks/HugeSchemaBench.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@
1111

1212
/**
1313
* @BeforeMethods({"setUp"})
14+
*
1415
* @OutputTimeUnit("milliseconds", precision=3)
16+
*
1517
* @Warmup(1)
18+
*
1619
* @Revs(5)
20+
*
1721
* @Iterations(1)
1822
*/
1923
class HugeSchemaBench

benchmarks/LexerBench.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
/**
1111
* @BeforeMethods({"setUp"})
12+
*
1213
* @OutputTimeUnit("milliseconds", precision=3)
1314
*/
1415
class LexerBench
@@ -22,7 +23,9 @@ public function setUp(): void
2223

2324
/**
2425
* @Warmup(2)
26+
*
2527
* @Revs(100)
28+
*
2629
* @Iterations(5)
2730
*/
2831
public function benchIntrospectionQuery(): void

benchmarks/StarWarsBench.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@
88

99
/**
1010
* @BeforeMethods({"setIntroQuery"})
11+
*
1112
* @OutputTimeUnit("milliseconds", precision=3)
13+
*
1214
* @Warmup(2)
15+
*
1316
* @Revs(10)
17+
*
1418
* @Iterations(2)
1519
*/
1620
class StarWarsBench

src/Executor/Promise/Adapter/AmpPromiseAdapter.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44

55
use Amp\Deferred;
66
use Amp\Failure;
7-
8-
use function Amp\Promise\all;
9-
107
use Amp\Promise as AmpPromise;
118
use Amp\Success;
129
use GraphQL\Executor\Promise\Promise;
1310
use GraphQL\Executor\Promise\PromiseAdapter;
1411

12+
use function Amp\Promise\all;
13+
1514
class AmpPromiseAdapter implements PromiseAdapter
1615
{
1716
public function isThenable($value): bool

src/Executor/Promise/Adapter/ReactPromiseAdapter.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44

55
use GraphQL\Executor\Promise\Promise;
66
use GraphQL\Executor\Promise\PromiseAdapter;
7-
8-
use function React\Promise\all;
9-
107
use React\Promise\Promise as ReactPromise;
118
use React\Promise\PromiseInterface as ReactPromiseInterface;
129

10+
use function React\Promise\all;
1311
use function React\Promise\reject;
1412
use function React\Promise\resolve;
1513

tests/Executor/Promise/AmpPromiseAdapterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace GraphQL\Tests\Executor\Promise;
44

5-
use function Amp\call;
6-
75
use Amp\Deferred;
86
use Amp\Delayed;
97
use Amp\Failure;
@@ -13,6 +11,8 @@
1311
use GraphQL\Executor\Promise\Adapter\AmpPromiseAdapter;
1412
use PHPUnit\Framework\TestCase;
1513

14+
use function Amp\call;
15+
1616
/**
1717
* @group AmpPromise
1818
*/

tests/Executor/Promise/ReactPromiseAdapterTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
use React\Promise\FulfilledPromise;
99
use React\Promise\Promise;
1010
use React\Promise\Promise as ReactPromise;
11-
12-
use function React\Promise\reject;
13-
1411
use React\Promise\RejectedPromise;
1512

13+
use function React\Promise\reject;
1614
use function React\Promise\resolve;
1715

1816
/**

0 commit comments

Comments
 (0)