Passed
Branch master (1a0423)
by jelmer
02:33
created
src/Slack/Attachment/Colour.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     /**
28 28
      * @param string $colour
29 29
      */
30
-    public function __construct($colour)
30
+    public function __construct ($colour)
31 31
     {
32 32
         $this->setColour($colour);
33 33
     }
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      *
38 38
      * @param $colour
39 39
      */
40
-    private function setColour($colour)
40
+    private function setColour ($colour)
41 41
     {
42 42
         if (!in_array($colour, $this->getDefaultColours()) &&
43 43
             !preg_match(
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     /**
61 61
      * @return string
62 62
      */
63
-    public function getColour()
63
+    public function getColour ()
64 64
     {
65 65
         return $this->colour;
66 66
     }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     /**
69 69
      * {@inheritdoc}
70 70
      */
71
-    public function __toString()
71
+    public function __toString ()
72 72
     {
73 73
         return $this->getColour();
74 74
     }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      *
78 78
      * @return array
79 79
      */
80
-    private function getDefaultColours()
80
+    private function getDefaultColours ()
81 81
     {
82 82
         return [
83 83
             self::COLOUR_GOOD,
Please login to merge, or discard this patch.
src/Slack/Attachment/Field.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      * @param string $value
45 45
      * @param bool $short
46 46
      */
47
-    public function __construct($title, $value, $short = false)
47
+    public function __construct ($title, $value, $short = false)
48 48
     {
49 49
         $this->title = $title;
50 50
         $this->value = $value;
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     /**
55 55
      * {@inheritdoc}
56 56
      */
57
-    public function jsonSerialize()
57
+    public function jsonSerialize ()
58 58
     {
59 59
         return [
60 60
             'title' => $this->title,
Please login to merge, or discard this patch.
src/Slack/Attachment/Title.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      * @param string $title
34 34
      * @param Url|null $link
35 35
      */
36
-    public function __construct($title, Url $link = null)
36
+    public function __construct ($title, Url $link = null)
37 37
     {
38 38
         $this->title = $title;
39 39
         $this->link = $link;
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     /**
43 43
      * @return string
44 44
      */
45
-    public function getTitle()
45
+    public function getTitle ()
46 46
     {
47 47
         return $this->title;
48 48
     }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     /**
51 51
      * @return bool
52 52
      */
53
-    public function hasLink()
53
+    public function hasLink ()
54 54
     {
55 55
         return $this->link !== null;
56 56
     }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     /**
59 59
      * @return Url|null
60 60
      */
61
-    public function getLink()
61
+    public function getLink ()
62 62
     {
63 63
         return $this->link;
64 64
     }
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     /**
67 67
      * {@inheritdoc}
68 68
      */
69
-    public function __toString()
69
+    public function __toString ()
70 70
     {
71 71
         return $this->getTitle();
72 72
     }
Please login to merge, or discard this patch.
src/Slack/Attachment/TraceAttachment.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      * @param ErrorInterface $error
36 36
      * @param StringFormat $formatter
37 37
      */
38
-    public function __construct(ErrorInterface $error, StringFormat $formatter)
38
+    public function __construct (ErrorInterface $error, StringFormat $formatter)
39 39
     {
40 40
         $this->error = $error;
41 41
         $this->formatter = $formatter;
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         );
54 54
     }
55 55
 
56
-    private function parseTraceItem(array $traceItem)
56
+    private function parseTraceItem (array $traceItem)
57 57
     {
58 58
         $text = '';
59 59
         $info = [
Please login to merge, or discard this patch.
src/Slack/Channel.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      *
21 21
      * @param string $name
22 22
      */
23
-    public function __construct($name)
23
+    public function __construct ($name)
24 24
     {
25 25
         $this->setName($name);
26 26
     }
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      *
31 31
      * @return self
32 32
      */
33
-    private function setName($name)
33
+    private function setName ($name)
34 34
     {
35 35
         // names should be lowercase so we just enforce this without further validation
36 36
         $name = trim(mb_strtolower($name, 'UTF8'));
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     /**
51 51
      * {@inheritdoc}
52 52
      */
53
-    public function getChannel()
53
+    public function getChannel ()
54 54
     {
55 55
         return $this->name;
56 56
     }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     /**
59 59
      * {@inheritdoc}
60 60
      */
61
-    public function __toString()
61
+    public function __toString ()
62 62
     {
63 63
         return $this->getChannel();
64 64
     }
Please login to merge, or discard this patch.
src/Slack/Config.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      * @param WebhookInterface $webhook
32 32
      * @param UserInterface|null $customUser
33 33
      */
34
-    public function __construct(WebhookInterface $webhook, UserInterface $customUser = null)
34
+    public function __construct (WebhookInterface $webhook, UserInterface $customUser = null)
35 35
     {
36 36
         $this->webhook = $webhook;
37 37
         $this->customUser = $customUser;
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     /**
41 41
      * {@inheritdoc}
42 42
      */
43
-    public function getWebhook()
43
+    public function getWebhook ()
44 44
     {
45 45
         return $this->webhook;
46 46
     }
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     /**
49 49
      * {@inheritdoc}
50 50
      */
51
-    public function getCustomUser()
51
+    public function getCustomUser ()
52 52
     {
53 53
         return $this->customUser;
54 54
     }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     /**
57 57
      * {@inheritdoc}
58 58
      */
59
-    public function hasCustomUser()
59
+    public function hasCustomUser ()
60 60
     {
61 61
         return $this->customUser !== null;
62 62
     }
Please login to merge, or discard this patch.
src/Slack/EmojiIcon.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      *
24 24
      * @param string $emoji
25 25
      */
26
-    public function __construct($emoji)
26
+    public function __construct ($emoji)
27 27
     {
28 28
         $this->setEmoji($emoji);
29 29
     }
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      *
38 38
      * @return $this
39 39
      */
40
-    private function setEmoji($emoji)
40
+    private function setEmoji ($emoji)
41 41
     {
42 42
         // remove the whitespace
43 43
         $emoji = trim($emoji);
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     /**
62 62
      * {@inheritdoc}
63 63
      */
64
-    public function getIcon()
64
+    public function getIcon ()
65 65
     {
66 66
         return $this->emoji;
67 67
     }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     /**
70 70
      * {@inheritdoc}
71 71
      */
72
-    public function __toString()
72
+    public function __toString ()
73 73
     {
74 74
         return $this->getIcon();
75 75
     }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     /**
78 78
      * {@inheritdoc}
79 79
      */
80
-    public function getType()
80
+    public function getType ()
81 81
     {
82 82
         return 'emoji';
83 83
     }
Please login to merge, or discard this patch.
src/Slack/Interfaces/ChannelInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@
 block discarded – undo
16 16
      *
17 17
      * @return string
18 18
      */
19
-    public function getChannel();
19
+    public function getChannel ();
20 20
 
21 21
     /**
22 22
      * The string representation of the Channel class should match the channel.
23 23
      *
24 24
      * @return string
25 25
      */
26
-    public function __toString();
26
+    public function __toString ();
27 27
 }
Please login to merge, or discard this patch.
src/Slack/Interfaces/ConfigInterface.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,19 +12,19 @@
 block discarded – undo
12 12
     /**
13 13
      * @return WebhookInterface
14 14
      */
15
-    public function getWebhook();
15
+    public function getWebhook ();
16 16
 
17 17
     /**
18 18
      * If there is a user this will override the default configuration from Slack.
19 19
      *
20 20
      * @return UserInterface|null
21 21
      */
22
-    public function getCustomUser();
22
+    public function getCustomUser ();
23 23
 
24 24
     /**
25 25
      * This will return true if there is a user.
26 26
      *
27 27
      * @return bool
28 28
      */
29
-    public function hasCustomUser();
29
+    public function hasCustomUser ();
30 30
 }
Please login to merge, or discard this patch.