Skip to content

Commit 79c6181

Browse files
committed
Break promoted constructors to multiple lines.
1 parent c0d878e commit 79c6181

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

src/V2V/Value/V2V_Value_CallSingleParam.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ class V2V_Value_CallSingleParam implements V2V_ValueInterface {
1313
*
1414
* @param string $fqn
1515
*/
16-
public function __construct(private readonly string $fqn) {}
16+
public function __construct(
17+
private readonly string $fqn,
18+
) {}
1719

1820
/**
1921
* {@inheritdoc}

tests/src/Fixture/IntOp/IntOp_Add.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ public static function formula(): FormulaInterface {
2727
*
2828
* @param int $increment
2929
*/
30-
public function __construct(private readonly int $increment) {
31-
}
30+
public function __construct(
31+
private readonly int $increment,
32+
) {}
3233

3334
/**
3435
* {@inheritdoc}

tests/src/Fixture/IntOp/IntOp_Sequence.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ public static function formula(): FormulaInterface {
3131
*
3232
* @param \Ock\Ock\Tests\Fixture\IntOp\IntOpInterface[] $operations
3333
*/
34-
public function __construct(private readonly array $operations) {
35-
}
34+
public function __construct(
35+
private readonly array $operations,
36+
) {}
3637

3738
/**
3839
* {@inheritdoc}

tests/src/Fixture/NumberFormat/NumberFormat_Native.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,11 @@ public static function create(
6363
* @param string $thousandsSeparator
6464
* Thousands separator.
6565
*/
66-
public function __construct(private readonly int $decimals = 0, private readonly string $decimalSeparator = '.', private readonly string $thousandsSeparator = ',') {
67-
}
66+
public function __construct(
67+
private readonly int $decimals = 0,
68+
private readonly string $decimalSeparator = '.',
69+
private readonly string $thousandsSeparator = ',',
70+
) {}
6871

6972
/**
7073
* @param int|float $number

0 commit comments

Comments
 (0)