@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | /** @var string[] */ |
14 | 14 | private $users; |
15 | 15 | |
16 | - public function __construct(string $name) |
|
16 | + public function __construct (string $name) |
|
17 | 17 | { |
18 | 18 | if ($name[0] !== '#') { |
19 | 19 | $name = "#$name"; |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * |
28 | 28 | * @return string |
29 | 29 | */ |
30 | - public function getName(): string |
|
30 | + public function getName (): string |
|
31 | 31 | { |
32 | 32 | return $this->name; |
33 | 33 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * |
38 | 38 | * @return null|string |
39 | 39 | */ |
40 | - public function getTopic() |
|
40 | + public function getTopic () |
|
41 | 41 | { |
42 | 42 | return $this->topic; |
43 | 43 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * |
48 | 48 | * @return string[] |
49 | 49 | */ |
50 | - public function getUsers(): array |
|
50 | + public function getUsers (): array |
|
51 | 51 | { |
52 | 52 | return $this->users; |
53 | 53 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * |
58 | 58 | * @param string $topic The topic |
59 | 59 | */ |
60 | - public function setTopic(string $topic): void |
|
60 | + public function setTopic (string $topic): void |
|
61 | 61 | { |
62 | 62 | $this->topic = $topic; |
63 | 63 | } |
@@ -68,9 +68,9 @@ discard block |
||
68 | 68 | * |
69 | 69 | * @param string[] $users An array of user names. |
70 | 70 | */ |
71 | - public function setUsers(array $users): void |
|
71 | + public function setUsers (array $users): void |
|
72 | 72 | { |
73 | - $this->users = array_map(function ($user) { |
|
73 | + $this->users = array_map(function($user) { |
|
74 | 74 | if (in_array($user[0], ['+', '@'])) { |
75 | 75 | $user = substr($user, 1); |
76 | 76 | } |