Test Setup Failed
Pull Request — master (#3)
by Sebastien
03:11
created
src/Connection.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -172,6 +172,9 @@
 block discarded – undo
172 172
 
173 173
     }
174 174
 
175
+    /**
176
+     * @param integer $code
177
+     */
175 178
     protected function sendReply($code, $message, $close = false)
176 179
     {
177 180
         $out = '';
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,11 +2,9 @@
 block discarded – undo
2 2
 namespace SamIT\React\Smtp;
3 3
 
4 4
 
5
-use React\Dns\Query\TimeoutException;
6 5
 use React\EventLoop\LoopInterface;
7 6
 use React\EventLoop\Timer\TimerInterface;
8 7
 use React\Socket\ConnectionInterface;
9
-use React\Stream\WritableStream;
10 8
 
11 9
 class Connection extends \React\Socket\Connection{
12 10
     const STATUS_NEW = 0;
Please login to merge, or discard this patch.
src/MessageInterface.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,18 +25,21 @@  discard block
 block discarded – undo
25 25
     /**
26 26
      * This function will throw an exception since replacing headers is will mangle SMTP messages.
27 27
      * @throws \Exception
28
+     * @return \GuzzleHttp\Psr7\MessageTrait
28 29
      */
29 30
     public function withHeader($name, $value);
30 31
 
31 32
     /**
32 33
      * This function will throw an exception since removing headers is will mangle SMTP messages.
33 34
      * @throws \Exception
35
+     * @return \GuzzleHttp\Psr7\MessageTrait
34 36
      */
35 37
     public function withoutHeader($name);
36 38
 
37 39
     /**
38 40
      * This function will throw an exception since removing headers is will mangle SMTP messages.
39 41
      * @throws \Exception
42
+     * @return string
40 43
      */
41 44
     public function getHeaderLine($name);
42 45
 
@@ -96,7 +99,6 @@  discard block
 block discarded – undo
96 99
      * new and/or updated header and value.
97 100
      *
98 101
      * @return self
99
-     * @param array $recipients Array of email => name pairs.
100 102
      * @throws \InvalidArgumentException for invalid email.
101 103
      */
102 104
     public function withAddedRecipient($email, $name = null);
Please login to merge, or discard this patch.
src/MessageTrait.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -11,6 +11,10 @@
 block discarded – undo
11 11
         throw new \Exception('SMTP Message does not support replacing headers.');
12 12
     }
13 13
 
14
+    /**
15
+     * @param string $name
16
+     * @param string $value
17
+     */
14 18
     public function withAddedHeader($name, $value)
15 19
     {
16 20
         $new = clone $this;
Please login to merge, or discard this patch.
src/RequestInterface.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,6 @@
 block discarded – undo
38 38
      * new and/or updated header and value.
39 39
      *
40 40
      * @return self
41
-     * @param array $recipients Array of email => name pairs.
42 41
      * @throws \InvalidArgumentException for invalid email.
43 42
      */
44 43
     public function withAddedRecipient($email, $name = null);
Please login to merge, or discard this patch.
src/Server.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -2,11 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace SamIT\React\Smtp;
4 4
 
5
-use Evenement\EventEmitter;
6 5
 use React\EventLoop\LoopInterface;
7
-use React\Http\ServerInterface;
8
-use React\Socket\ServerInterface as SocketServerInterface;
9
-use React\Socket\ConnectionInterface;
10 6
 
11 7
 /** @event request */
12 8
 class Server extends \React\Socket\Server
Please login to merge, or discard this patch.