Passed
Push — master ( e33c1e...7c486e )
by Jeroen
01:46
created
src/IrcChannel.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
         $name = trim($name);
19 19
         if (empty($name)) {
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      *
33 33
      *  @return string
34 34
      */
35
-    public function getName(): string
35
+    public function getName (): string
36 36
     {
37 37
         return $this->name;
38 38
     }
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      *
43 43
      *  @return null|string
44 44
      */
45
-    public function getTopic()
45
+    public function getTopic ()
46 46
     {
47 47
         return $this->topic;
48 48
     }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      *
53 53
      *  @return string[]
54 54
      */
55
-    public function getUsers(): array
55
+    public function getUsers (): array
56 56
     {
57 57
         return $this->users;
58 58
     }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      *
63 63
      *  @param string $topic The topic
64 64
      */
65
-    public function setTopic(string $topic): void
65
+    public function setTopic (string $topic): void
66 66
     {
67 67
         $this->topic = $topic;
68 68
     }
@@ -73,9 +73,9 @@  discard block
 block discarded – undo
73 73
      *
74 74
      *  @param string[] $users An array of user names.
75 75
      */
76
-    public function setUsers(array $users): void
76
+    public function setUsers (array $users): void
77 77
     {
78
-        $this->users = array_map(function ($user) {
78
+        $this->users = array_map(function($user) {
79 79
             if (in_array($user[0], ['+', '@'])) {
80 80
                 $user = substr($user, 1);
81 81
             }
Please login to merge, or discard this patch.