@@ -8,8 +8,7 @@ |
||
8 | 8 | * |
9 | 9 | * @author Jakub Konečný |
10 | 10 | */ |
11 | -final class ChatCommandsProcessor implements ChatMessageProcessor |
|
12 | -{ |
|
11 | +final class ChatCommandsProcessor implements ChatMessageProcessor { |
|
13 | 12 | /** @var IChatCommand[] */ |
14 | 13 | private array $commands = []; |
15 | 14 |
@@ -8,8 +8,7 @@ |
||
8 | 8 | * |
9 | 9 | * @author Jakub Konečný |
10 | 10 | */ |
11 | -interface DatabaseAdapter |
|
12 | -{ |
|
11 | +interface DatabaseAdapter { |
|
13 | 12 | /** |
14 | 13 | * @param mixed $value |
15 | 14 | */ |
@@ -10,8 +10,7 @@ |
||
10 | 10 | * @author Jakub Konečný |
11 | 11 | * @internal |
12 | 12 | */ |
13 | -final class Config |
|
14 | -{ |
|
13 | +final class Config { |
|
15 | 14 | /** |
16 | 15 | * @var class-string[] |
17 | 16 | */ |
@@ -6,8 +6,7 @@ |
||
6 | 6 | |
7 | 7 | if (false) { |
8 | 8 | /** @deprecated use ChatMessageProcessor */ |
9 | - interface IChatMessageProcessor extends ChatMessageProcessor |
|
10 | - { |
|
9 | + interface IChatMessageProcessor extends ChatMessageProcessor { |
|
11 | 10 | } |
12 | 11 | |
13 | 12 | } else { |
@@ -6,8 +6,7 @@ |
||
6 | 6 | |
7 | 7 | if (false) { |
8 | 8 | /** @deprecated use BaseChatCommand */ |
9 | - abstract class ChatCommand extends BaseChatCommand |
|
10 | - { |
|
9 | + abstract class ChatCommand extends BaseChatCommand { |
|
11 | 10 | } |
12 | 11 | |
13 | 12 | } else { |
@@ -9,8 +9,7 @@ |
||
9 | 9 | * @author Jakub Konečný |
10 | 10 | * @property string $name |
11 | 11 | */ |
12 | -abstract class BaseChatCommand implements IChatCommand |
|
13 | -{ |
|
12 | +abstract class BaseChatCommand implements IChatCommand { |
|
14 | 13 | use \Nette\SmartObject; |
15 | 14 | |
16 | 15 | protected string $name = ""; |
@@ -8,8 +8,7 @@ |
||
8 | 8 | * |
9 | 9 | * @author Jakub Konečný |
10 | 10 | */ |
11 | -interface IChatCommand |
|
12 | -{ |
|
11 | +interface IChatCommand { |
|
13 | 12 | public function getName(): string; |
14 | 13 | public function setName(string $name): void; |
15 | 14 | public function execute(): string; |
@@ -8,8 +8,7 @@ discard block |
||
8 | 8 | * |
9 | 9 | * @author Jakub Konečný |
10 | 10 | */ |
11 | -class ChatCharacter |
|
12 | -{ |
|
11 | +class ChatCharacter { |
|
13 | 12 | use \Nette\SmartObject; |
14 | 13 | |
15 | 14 | /** @var int|string */ |
@@ -18,8 +17,7 @@ discard block |
||
18 | 17 | /** |
19 | 18 | * @param int|string $id |
20 | 19 | */ |
21 | - public function __construct($id, public string $name) |
|
22 | - { |
|
20 | + public function __construct($id, public string $name) { |
|
23 | 21 | $this->id = $id; |
24 | 22 | } |
25 | 23 | |
@@ -27,8 +25,7 @@ discard block |
||
27 | 25 | * @return int|string |
28 | 26 | * @deprecated Access the property directly |
29 | 27 | */ |
30 | - public function getId() |
|
31 | - { |
|
28 | + public function getId() { |
|
32 | 29 | return $this->id; |
33 | 30 | } |
34 | 31 |
@@ -11,10 +11,8 @@ |
||
11 | 11 | * |
12 | 12 | * @author Jakub Konečný |
13 | 13 | */ |
14 | -final class NewChatMessageFormFactory |
|
15 | -{ |
|
16 | - public function __construct(private readonly Translator $translator) |
|
17 | - { |
|
14 | +final class NewChatMessageFormFactory { |
|
15 | + public function __construct(private readonly Translator $translator) { |
|
18 | 16 | } |
19 | 17 | |
20 | 18 | public function create(ChatControl $chatControl): Form |