Passed
Push — master ( 6959b9...e4cb94 )
by Jakub
13:06
created
src/ChatCommandsProcessor.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/DatabaseAdapter.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/DI/Config.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/IChatMessageProcessor.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,7 @@
 block discarded – undo
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 {
Please login to merge, or discard this patch.
src/ChatCommand.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,7 @@
 block discarded – undo
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 {
Please login to merge, or discard this patch.
src/BaseChatCommand.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,7 @@
 block discarded – undo
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 = "";
Please login to merge, or discard this patch.
src/IChatCommand.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/ChatCharacter.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/NewChatMessageFormFactory.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,10 +11,8 @@
 block discarded – undo
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
Please login to merge, or discard this patch.