Passed
Push — master ( 6959b9...e4cb94 )
by Jakub
13:06
created
tests/HeroesofAbenez/Chat/DI/IFakeFactory.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
  *
9 9
  * @author Jakub Konečný
10 10
  */
11
-interface IFakeFactory
12
-{
11
+interface IFakeFactory {
13 12
     public function create(): \stdClass;
14 13
 }
Please login to merge, or discard this patch.
tests/HeroesofAbenez/Chat/IExampleChatControlFactory.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
  *
9 9
  * @author Jakub Konečný
10 10
  */
11
-interface IExampleChatControlFactory
12
-{
11
+interface IExampleChatControlFactory {
13 12
     public function create(): ExampleChatControl;
14 13
 }
Please login to merge, or discard this patch.
tests/HeroesofAbenez/Chat/TestCommand.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,7 @@
 block discarded – undo
3 3
 
4 4
 namespace HeroesofAbenez\Chat;
5 5
 
6
-final class TestCommand extends BaseChatCommand
7
-{
6
+final class TestCommand extends BaseChatCommand {
8 7
     /** @var string */
9 8
     protected string $name = "test1";
10 9
 
Please login to merge, or discard this patch.
tests/HeroesofAbenez/Chat/FakeDatabaseAdapter.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 FakeDatabaseAdapter implements DatabaseAdapter
12
-{
11
+final class FakeDatabaseAdapter implements DatabaseAdapter {
13 12
     protected function getFakeCharacter(): ChatCharacter
14 13
     {
15 14
         return new ChatCharacter(1, "fake");
Please login to merge, or discard this patch.
tests/HeroesofAbenez/Chat/ExampleChatControl.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,10 +8,8 @@
 block discarded – undo
8 8
  *
9 9
  * @author Jakub Konečný
10 10
  */
11
-final class ExampleChatControl extends ChatControl
12
-{
13
-    public function __construct(DatabaseAdapter $databaseAdapter)
14
-    {
11
+final class ExampleChatControl extends ChatControl {
12
+    public function __construct(DatabaseAdapter $databaseAdapter) {
15 13
         parent::__construct($databaseAdapter, "example", 1);
16 14
     }
17 15
 }
Please login to merge, or discard this patch.
tests/HeroesofAbenez/Chat/Test2Command.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,7 @@
 block discarded – undo
3 3
 
4 4
 namespace HeroesofAbenez\Chat;
5 5
 
6
-final class Test2Command extends BaseChatCommand
7
-{
6
+final class Test2Command extends BaseChatCommand {
8 7
     public const NAME = "test2";
9 8
 
10 9
     public function execute(): string
Please login to merge, or discard this patch.
tests/HeroesofAbenez/Chat/ChatCommandsProcessorTest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@
 block discarded – undo
20 20
 
21 21
     protected ChatCommandsProcessor $model;
22 22
 
23
-    public function __construct()
24
-    {
23
+    public function __construct() {
25 24
         $this->model = $this->getService(ChatCommandsProcessor::class); // @phpstan-ignore assign.propertyType
26 25
         $this->model->addCommand(new TestCommand());
27 26
     }
Please login to merge, or discard this patch.
src/ChatMessageProcessor.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 ChatMessageProcessor
12
-{
11
+interface ChatMessageProcessor {
13 12
     /**
14 13
      * @return null|string The result/null if the processor is not applicable
15 14
      */
Please login to merge, or discard this patch.
src/IDatabaseAdapter.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 DatabaseAdapter */
9
-    interface IDatabaseAdapter extends DatabaseAdapter
10
-    {
9
+    interface IDatabaseAdapter extends DatabaseAdapter {
11 10
     }
12 11
 
13 12
 } else {
Please login to merge, or discard this patch.