Passed
Push — master ( 539e01...5548cd )
by Jeroen
01:43
created
src/Messages/IrcMessage.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     /** @var string */
27 27
     protected $source;
28 28
 
29
-    public function __construct(string $command)
29
+    public function __construct (string $command)
30 30
     {
31 31
         $this->handled = false;
32 32
         $this->parse($command);
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      *  @param IrcClient $client A reference to the irc client object
40 40
      *  @param bool $force Force handling this message even if already handled.
41 41
      */
42
-    public function handle(IrcClient $client, bool $force = false): void
42
+    public function handle (IrcClient $client, bool $force = false): void
43 43
     {
44 44
         if ($this->handled && !$force) {
45 45
             return;
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      *
52 52
      *  @return Event[]
53 53
      */
54
-    public function getEvents()
54
+    public function getEvents ()
55 55
     {
56 56
         return [];
57 57
     }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      *
63 63
      *  @param IrcChannel[] $channels The list of irc channels in the IrcClient.
64 64
      */
65
-    public function injectChannel(array $channels): void
65
+    public function injectChannel (array $channels): void
66 66
     {
67 67
         //
68 68
     }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      *
73 73
      *  @param string $command
74 74
      */
75
-    private function parse(string $command): void
75
+    private function parse (string $command): void
76 76
     {
77 77
         $command = trim($command);
78 78
         $this->rawMessage = $command;
Please login to merge, or discard this patch.
src/Messages/MOTDMessage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,12 +6,12 @@
 block discarded – undo
6 6
 
7 7
 class MOTDMessage extends IrcMessage
8 8
 {
9
-    public function __construct(string $message)
9
+    public function __construct (string $message)
10 10
     {
11 11
         parent::__construct($message);
12 12
     }
13 13
 
14
-    public function getEvents(): array
14
+    public function getEvents (): array
15 15
     {
16 16
         return [
17 17
             new Event('motd', [$this->payload]),
Please login to merge, or discard this patch.
src/Messages/PingMessage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 
8 8
 class PingMessage extends IrcMessage
9 9
 {
10
-    public function __construct(string $message)
10
+    public function __construct (string $message)
11 11
     {
12 12
         parent::__construct($message);
13 13
     }
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     /**
16 16
      *  Reply the ping message with a pong response.
17 17
      */
18
-    public function handle(IrcClient $client, bool $force = false): void
18
+    public function handle (IrcClient $client, bool $force = false): void
19 19
     {
20 20
         if ($this->handled && !$force) {
21 21
             return;
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         $client->send("PONG :$this->payload");
25 25
     }
26 26
 
27
-    public function getEvents(): array
27
+    public function getEvents (): array
28 28
     {
29 29
         return [
30 30
             new Event('ping'),
Please login to merge, or discard this patch.
src/Messages/TopicChangeMessage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     /** @var string */
17 17
     public $user;
18 18
 
19
-    public function __construct(string $message)
19
+    public function __construct (string $message)
20 20
     {
21 21
         parent::__construct($message);
22 22
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     /**
28 28
      *  Change the topic for the referenced channel.
29 29
      */
30
-    public function handle(IrcClient $client, bool $force = false): void
30
+    public function handle (IrcClient $client, bool $force = false): void
31 31
     {
32 32
         if ($this->handled && !$force) {
33 33
             return;
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         $client->getChannel($this->channel)->setTopic($this->topic);
37 37
     }
38 38
 
39
-    public function getEvents(): array
39
+    public function getEvents (): array
40 40
     {
41 41
         return [
42 42
             new Event('topic', [$this->channel, $this->topic]),
Please login to merge, or discard this patch.
src/Messages/PrivmsgMessage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     /** @var string */
20 20
     public $user;
21 21
 
22
-    public function __construct(string $message)
22
+    public function __construct (string $message)
23 23
     {
24 24
         parent::__construct($message);
25 25
         $this->user = strstr($this->source, '!', true);
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         $this->message = $this->payload;
28 28
     }
29 29
 
30
-    public function getEvents(): array
30
+    public function getEvents (): array
31 31
     {
32 32
         $events = [];
33 33
         if ($this->target[0] === '#') {
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         return $events;
45 45
     }
46 46
 
47
-    public function injectChannel(array $channels): void
47
+    public function injectChannel (array $channels): void
48 48
     {
49 49
         if (array_key_exists($this->target, $channels)) {
50 50
             $this->channel = $channels[$this->target];
Please login to merge, or discard this patch.
src/Messages/WelcomeMessage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 
8 8
 class WelcomeMessage extends IrcMessage
9 9
 {
10
-    public function __construct(string $message)
10
+    public function __construct (string $message)
11 11
     {
12 12
         parent::__construct($message);
13 13
     }
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     /**
16 16
      *  On welcome message, join the selected channels.
17 17
      */
18
-    public function handle(IrcClient $client, bool $force = false): void
18
+    public function handle (IrcClient $client, bool $force = false): void
19 19
     {
20 20
         if ($this->handled && !$force) {
21 21
             return;
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         }
27 27
     }
28 28
 
29
-    public function getEvents(): array
29
+    public function getEvents (): array
30 30
     {
31 31
         return [
32 32
             new Event('registered'),
Please login to merge, or discard this patch.
src/Messages/NameReplyMessage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     /** @var string[] */
14 14
     public $names;
15 15
 
16
-    public function __construct(string $message)
16
+    public function __construct (string $message)
17 17
     {
18 18
         parent::__construct($message);
19 19
 
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         $this->names = explode(' ', $this->payload);
22 22
     }
23 23
 
24
-    public function handle(IrcClient $client, bool $force = false): void
24
+    public function handle (IrcClient $client, bool $force = false): void
25 25
     {
26 26
         if ($this->handled && !$force) {
27 27
             return;
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         }
33 33
     }
34 34
 
35
-    public function getEvents(): array
35
+    public function getEvents (): array
36 36
     {
37 37
         return [
38 38
             new Event('names', [$this->channel, $this->names]),
Please login to merge, or discard this patch.
src/IrcUser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
     /** @var string */
8 8
     public $nickname;
9 9
 
10
-    public function __construct(string $nickname)
10
+    public function __construct (string $nickname)
11 11
     {
12 12
         $this->nickname = $nickname;
13 13
     }
Please login to merge, or discard this patch.
src/Options/ConnectionOptions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
     /** @var int */
8 8
     public $floodProtectionDelay;
9 9
 
10
-    public function __construct()
10
+    public function __construct ()
11 11
     {
12 12
         $this->floodProtectionDelay = 0;
13 13
     }
Please login to merge, or discard this patch.