Skip to content

Commit f6575ea

Browse files
committed
Fix PHP syntax
1 parent 6811033 commit f6575ea

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/Models/Crypt/Key.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
* @license http://www.opensource.org/licenses/mit-license.html MIT License
1212
* @author Andrew Svirin
1313
*/
14-
readonly final class Key
14+
final readonly class Key
1515
{
1616
/**
1717
* @param mixed|string $key
1818
*/
1919
public function __construct(
20-
private readonly mixed $key,
21-
private readonly int $type
20+
private mixed $key,
21+
private int $type
2222
) {
2323
}
2424

src/Models/Crypt/KeyPair.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
* @license http://www.opensource.org/licenses/mit-license.html MIT License
1212
* @author Andrew Svirin
1313
*/
14-
readonly final class KeyPair
14+
final readonly class KeyPair
1515
{
1616
public function __construct(
17-
private readonly Key $publicKey,
18-
private readonly Key $privateKey,
19-
private readonly string $password
17+
private Key $publicKey,
18+
private Key $privateKey,
19+
private string $password
2020
) {
2121
}
2222

src/Models/User.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @license http://www.opensource.org/licenses/mit-license.html MIT License
99
* @author Andrew Svirin
1010
*/
11-
readonly final class User
11+
final readonly class User
1212
{
1313
/**
1414
* Constructor.
@@ -17,8 +17,8 @@
1717
* @param string $userId
1818
*/
1919
public function __construct(
20-
private readonly string $partnerId,
21-
private readonly string $userId
20+
private string $partnerId,
21+
private string $userId
2222
) {
2323
}
2424

0 commit comments

Comments
 (0)