Passed
Branch master (1a0423)
by jelmer
02:33
created
src/General/SerializeToString.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     /**
17 17
      * {@inheritdoc}
18 18
      */
19
-    public function jsonSerialize()
19
+    public function jsonSerialize ()
20 20
     {
21 21
         return (string) $this;
22 22
     }
Please login to merge, or discard this patch.
src/General/Url.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     /**
20 20
      * @param string $url
21 21
      */
22
-    public function __construct($url)
22
+    public function __construct ($url)
23 23
     {
24 24
         $this->setUrl($url);
25 25
     }
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      *
32 32
      * @return $this
33 33
      */
34
-    private function setUrl($url)
34
+    private function setUrl ($url)
35 35
     {
36 36
         // remove the whitespace
37 37
         $url = trim($url);
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     /**
50 50
      * @return string
51 51
      */
52
-    public function getUrl()
52
+    public function getUrl ()
53 53
     {
54 54
         return $this->url;
55 55
     }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     /**
58 58
      * {@inheritdoc}
59 59
      */
60
-    public function __toString()
60
+    public function __toString ()
61 61
     {
62 62
         return $this->getUrl();
63 63
     }
Please login to merge, or discard this patch.
src/Monolog/Config.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      * @param int $level
30 30
      * @param bool $doesBubble
31 31
      */
32
-    public function __construct($level, $doesBubble = true)
32
+    public function __construct ($level, $doesBubble = true)
33 33
     {
34 34
         $this->setLevel($level);
35 35
         $this->doesBubble = $doesBubble;
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      *
41 41
      * @return self
42 42
      */
43
-    private function setLevel($level)
43
+    private function setLevel ($level)
44 44
     {
45 45
         $availableLevels = array_flip(Logger::getLevels());
46 46
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * {@inheritdoc}
64 64
      */
65
-    public function getLevel()
65
+    public function getLevel ()
66 66
     {
67 67
         return $this->level;
68 68
     }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     /**
71 71
      * {@inheritdoc}
72 72
      */
73
-    public function doesBubble()
73
+    public function doesBubble ()
74 74
     {
75 75
         return $this->doesBubble;
76 76
     }
Please login to merge, or discard this patch.
src/Monolog/Error.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @param array|null $trace
46 46
      * @param array|null $parameters
47 47
      */
48
-    public function __construct($message, $line, $file, array $trace = null, array $parameters = null)
48
+    public function __construct ($message, $line, $file, array $trace = null, array $parameters = null)
49 49
     {
50 50
         $this->setMessage($message);
51 51
         $this->setLine($line);
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     /**
58 58
      * @param string $file
59 59
      */
60
-    private function setFile($file)
60
+    private function setFile ($file)
61 61
     {
62 62
         $this->file = $file;
63 63
     }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     /**
66 66
      * @return string
67 67
      */
68
-    public function getFile()
68
+    public function getFile ()
69 69
     {
70 70
         return $this->file;
71 71
     }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     /**
74 74
      * @param int $line
75 75
      */
76
-    private function setLine($line)
76
+    private function setLine ($line)
77 77
     {
78 78
         $this->line = $line;
79 79
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     /**
82 82
      * @return int
83 83
      */
84
-    public function getLine()
84
+    public function getLine ()
85 85
     {
86 86
         return $this->line;
87 87
     }
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     /**
90 90
      * @param string $message
91 91
      */
92
-    private function setMessage($message)
92
+    private function setMessage ($message)
93 93
     {
94 94
         $this->message = $message;
95 95
     }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     /**
98 98
      * @return string
99 99
      */
100
-    public function getMessage()
100
+    public function getMessage ()
101 101
     {
102 102
         return $this->message;
103 103
     }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     /**
106 106
      * @param array|null $parameters
107 107
      */
108
-    private function setParameters(array $parameters = null)
108
+    private function setParameters (array $parameters = null)
109 109
     {
110 110
         $this->parameters = (array) $parameters;
111 111
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      * @param string $name
125 125
      * @param mixed $fallbackData
126 126
      */
127
-    private function addParameterFallback($name, $fallbackData = null)
127
+    private function addParameterFallback ($name, $fallbackData = null)
128 128
     {
129 129
         if (!isset($this->parameters[$name]) && !empty($fallbackData)) {
130 130
             $this->parameters[$name] = $fallbackData;
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     /**
135 135
      * @return array
136 136
      */
137
-    public function getParameters()
137
+    public function getParameters ()
138 138
     {
139 139
         return $this->parameters;
140 140
     }
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     /**
143 143
      * @param array|null $trace
144 144
      */
145
-    private function setTrace(array $trace = null)
145
+    private function setTrace (array $trace = null)
146 146
     {
147 147
         if ($trace === null) {
148 148
             $trace = [
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     /**
160 160
      * @return array
161 161
      */
162
-    public function getTrace()
162
+    public function getTrace ()
163 163
     {
164 164
         return $this->trace;
165 165
     }
Please login to merge, or discard this patch.
src/Monolog/Interfaces/ConfigInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,12 +14,12 @@
 block discarded – undo
14 14
      *
15 15
      * @return int
16 16
      */
17
-    public function getLevel();
17
+    public function getLevel ();
18 18
 
19 19
     /**
20 20
      * Whether the messages that are handled can bubble up the stack or not.
21 21
      *
22 22
      * @return bool
23 23
      */
24
-    public function doesBubble();
24
+    public function doesBubble ();
25 25
 }
Please login to merge, or discard this patch.
src/Monolog/Interfaces/ErrorInterface.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,33 +14,33 @@
 block discarded – undo
14 14
      *
15 15
      * @return string
16 16
      */
17
-    public function getFile();
17
+    public function getFile ();
18 18
 
19 19
     /**
20 20
      * The line number the error was raised at.
21 21
      *
22 22
      * @return int
23 23
      */
24
-    public function getLine();
24
+    public function getLine ();
25 25
 
26 26
     /**
27 27
      * The error message.
28 28
      *
29 29
      * @return string
30 30
      */
31
-    public function getMessage();
31
+    public function getMessage ();
32 32
 
33 33
     /**
34 34
      * Contains an array of variables that existed in the scope the error was triggered in.
35 35
      *
36 36
      * @return array
37 37
      */
38
-    public function getParameters();
38
+    public function getParameters ();
39 39
 
40 40
     /**
41 41
      * Contents of debug_backtrace().
42 42
      *
43 43
      * @return array
44 44
      */
45
-    public function getTrace();
45
+    public function getTrace ();
46 46
 }
Please login to merge, or discard this patch.
src/Monolog/SlackWebhookHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      *
40 40
      * @throws MissingExtensionException When the curl extension is not activated
41 41
      */
42
-    public function __construct(SlackConfig $slackConfig, MonologConfig $monologConfig, Curl\Util $curlUtil)
42
+    public function __construct (SlackConfig $slackConfig, MonologConfig $monologConfig, Curl\Util $curlUtil)
43 43
     {
44 44
         parent::__construct($monologConfig->getLevel(), $monologConfig->doesBubble());
45 45
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     /**
52 52
      * {@inheritdoc}
53 53
      */
54
-    public function write(array $record)
54
+    public function write (array $record)
55 55
     {
56 56
         $curlUtil = $this->curlUtil;
57 57
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      *
73 73
      * @return array
74 74
      */
75
-    private function getPayload($record)
75
+    private function getPayload ($record)
76 76
     {
77 77
         return [
78 78
             'payload' => new Payload($record, $this->slackConfig),
Please login to merge, or discard this patch.
src/Slack/Attachment/Attachment.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      *
30 30
      * @param string $fallback A plain-text summary of the attachment.
31 31
      */
32
-    public function __construct($fallback)
32
+    public function __construct ($fallback)
33 33
     {
34 34
         if (empty($fallback)) {
35 35
             throw new \InvalidArgumentException('The fallback is required');
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      *
46 46
      * @return self
47 47
      */
48
-    public function setText($text)
48
+    public function setText ($text)
49 49
     {
50 50
         $this->attachment['text'] = $text;
51 51
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      *
60 60
      * @return self
61 61
      */
62
-    public function setColour(Colour $colour)
62
+    public function setColour (Colour $colour)
63 63
     {
64 64
         $this->attachment['color'] = $colour;
65 65
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      *
74 74
      * @return self
75 75
      */
76
-    public function setPretext($pretext)
76
+    public function setPretext ($pretext)
77 77
     {
78 78
         $this->attachment['pretext'] = $pretext;
79 79
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      *
88 88
      * @return self
89 89
      */
90
-    public function setAuthor(Author $author)
90
+    public function setAuthor (Author $author)
91 91
     {
92 92
         $this->attachment['author_name'] = $author;
93 93
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      *
110 110
      * @return self
111 111
      */
112
-    public function setTitle(Title $title)
112
+    public function setTitle (Title $title)
113 113
     {
114 114
         $this->attachment['title'] = $title;
115 115
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      *
128 128
      * @return self
129 129
      */
130
-    public function addField(Field $field)
130
+    public function addField (Field $field)
131 131
     {
132 132
         if (!isset($this->attachment['fields'])) {
133 133
             $this->attachment['fields'] = [];
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      *
146 146
      * @return self
147 147
      */
148
-    public function addFields(array $fields)
148
+    public function addFields (array $fields)
149 149
     {
150 150
         foreach ($fields as $field) {
151 151
             $this->addField($field);
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
      *
162 162
      * @return self
163 163
      */
164
-    public function setImage(Url $image)
164
+    public function setImage (Url $image)
165 165
     {
166 166
         $this->attachment['image_url'] = $image;
167 167
 
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      *
176 176
      * @return self
177 177
      */
178
-    public function setThumbnail(Url $thumbnail)
178
+    public function setThumbnail (Url $thumbnail)
179 179
     {
180 180
         $this->attachment['thumb_url'] = $thumbnail;
181 181
 
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
     /**
186 186
      * @inheritDoc
187 187
      */
188
-    public function jsonSerialize()
188
+    public function jsonSerialize ()
189 189
     {
190 190
         return $this->get();
191 191
     }
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      *
196 196
      * @return array
197 197
      */
198
-    public function get()
198
+    public function get ()
199 199
     {
200 200
         return $this->attachment;
201 201
     }
Please login to merge, or discard this patch.
src/Slack/Attachment/Author.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      * @param Url|null $link
43 43
      * @param Url|null $icon
44 44
      */
45
-    public function __construct($name, Url $link = null, Url $icon = null)
45
+    public function __construct ($name, Url $link = null, Url $icon = null)
46 46
     {
47 47
         $this->name = $name;
48 48
         $this->link = $link;
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     /**
53 53
      * @return string
54 54
      */
55
-    public function getName()
55
+    public function getName ()
56 56
     {
57 57
         return $this->name;
58 58
     }
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     /**
61 61
      * @return Url|null
62 62
      */
63
-    public function getLink()
63
+    public function getLink ()
64 64
     {
65 65
         return $this->link;
66 66
     }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     /**
69 69
      * @return bool
70 70
      */
71
-    public function hasLink()
71
+    public function hasLink ()
72 72
     {
73 73
         return $this->link !== null;
74 74
     }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     /**
77 77
      * @return Url|null
78 78
      */
79
-    public function getIcon()
79
+    public function getIcon ()
80 80
     {
81 81
         return $this->icon;
82 82
     }
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     /**
85 85
      * @return bool
86 86
      */
87
-    public function hasIcon()
87
+    public function hasIcon ()
88 88
     {
89 89
         return $this->icon !== null;
90 90
     }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     /**
93 93
      * {@inheritdoc}
94 94
      */
95
-    public function __toString()
95
+    public function __toString ()
96 96
     {
97 97
         return $this->getName();
98 98
     }
Please login to merge, or discard this patch.