Skip to content

Commit bc203d8

Browse files
authored
Reformat multi-line constructors (#167)
1 parent 095da66 commit bc203d8

File tree

5 files changed

+23
-20
lines changed

5 files changed

+23
-20
lines changed

src/Exceptions/TaskExceptionResult.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ public function __construct(
1111
protected string $file,
1212
protected int $line,
1313
) {
14-
//
1514
}
1615

1716
/**

src/Swoole/Actions/EnsureRequestsDontExceedMaxExecutionTime.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66

77
class EnsureRequestsDontExceedMaxExecutionTime
88
{
9-
public function __construct(protected SwooleExtension $extension,
10-
protected $timerTable,
11-
protected $maxExecutionTime)
12-
{
9+
public function __construct(
10+
protected SwooleExtension $extension,
11+
protected $timerTable,
12+
protected $maxExecutionTime
13+
) {
1314
}
1415

1516
/**

src/Swoole/Handlers/OnWorkerStart.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212

1313
class OnWorkerStart
1414
{
15-
public function __construct(protected $basePath,
16-
protected array $serverState,
17-
protected WorkerState $workerState)
18-
{
15+
public function __construct(
16+
protected $basePath,
17+
protected array $serverState,
18+
protected WorkerState $workerState
19+
) {
1920
}
2021

2122
/**

src/Swoole/InvokeTickCallable.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88

99
class InvokeTickCallable
1010
{
11-
public function __construct(protected string $key,
12-
protected $callback,
13-
protected int $seconds,
14-
protected bool $immediate,
15-
protected $cache,
16-
protected ExceptionHandler $exceptionHandler)
17-
{
11+
public function __construct(
12+
protected string $key,
13+
protected $callback,
14+
protected int $seconds,
15+
protected bool $immediate,
16+
protected $cache,
17+
protected ExceptionHandler $exceptionHandler
18+
) {
1819
}
1920

2021
/**

src/Swoole/SwooleHttpTaskDispatcher.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414

1515
class SwooleHttpTaskDispatcher implements DispatchesTasks
1616
{
17-
public function __construct(protected string $host,
18-
protected string $port,
19-
protected DispatchesTasks $fallbackDispatcher)
20-
{
17+
public function __construct(
18+
protected string $host,
19+
protected string $port,
20+
protected DispatchesTasks $fallbackDispatcher
21+
) {
2122
}
2223

2324
/**

0 commit comments

Comments
 (0)