Passed
Push — develop ( c34963...58e492 )
by nguereza
02:34
created
src/Transport/SMTP.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@  discard block
 block discarded – undo
57 57
  * Class SMTP
58 58
  * @package Platine\Mail\Transport
59 59
  */
60
-class SMTP implements TransportInterface
61
-{
60
+class SMTP implements TransportInterface {
62 61
 
63 62
     /**
64 63
      * End of line char
@@ -130,8 +129,7 @@  discard block
 block discarded – undo
130 129
      * @param string $host
131 130
      * @param int $port
132 131
      */
133
-    public function __construct(string $host, int $port = 25)
134
-    {
132
+    public function __construct(string $host, int $port = 25) {
135 133
         $this->host = $host;
136 134
         $this->port = $port;
137 135
     }
Please login to merge, or discard this patch.
src/Transport/File.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
             ));
87 87
         }
88 88
 
89
-        $content = (string)$message;
89
+        $content = (string) $message;
90 90
         $file = $this->path . date('YmdHis') . '-' . md5(uniqid()) . '.txt';
91 91
         if (!file_put_contents($file, $content)) {
92 92
             throw new FileTransportException(sprintf(
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@  discard block
 block discarded – undo
55 55
  * Class File
56 56
  * @package Platine\Mail\Transport
57 57
  */
58
-class File implements TransportInterface
59
-{
58
+class File implements TransportInterface {
60 59
 
61 60
     /**
62 61
      *
@@ -68,8 +67,7 @@  discard block
 block discarded – undo
68 67
      * Create new instance
69 68
      * @param string $path
70 69
      */
71
-    public function __construct(string $path)
72
-    {
70
+    public function __construct(string $path) {
73 71
         $this->path = rtrim($path, '/\\') . DIRECTORY_SEPARATOR;
74 72
     }
75 73
 
Please login to merge, or discard this patch.
src/Transport/Sendmail.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
      */
79 79
     public function send(MessageInterface $message): bool
80 80
     {
81
-        $content = (string)$message;
81
+        $content = (string) $message;
82 82
 
83 83
         $from = $message->getFrom();
84 84
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@  discard block
 block discarded – undo
55 55
  * Class Sendmail
56 56
  * @package Platine\Mail\Transport
57 57
  */
58
-class Sendmail implements TransportInterface
59
-{
58
+class Sendmail implements TransportInterface {
60 59
 
61 60
     /**
62 61
      *
@@ -68,8 +67,7 @@  discard block
 block discarded – undo
68 67
      * Create new instance
69 68
      * @param string $path
70 69
      */
71
-    public function __construct(string $path = '/usr/sbin/sendmail')
72
-    {
70
+    public function __construct(string $path = '/usr/sbin/sendmail') {
73 71
         $this->path = $path;
74 72
     }
75 73
 
Please login to merge, or discard this patch.
src/Message.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         $this->body = '';
152 152
         $this->attachments = [];
153 153
         $this->headers = [];
154
-        $this->uid = md5(uniqid((string)time()));
154
+        $this->uid = md5(uniqid((string) time()));
155 155
         $this->wrap = 78;
156 156
         $this->priority = 3;
157 157
 
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
      */
635 635
     protected function encodeUtf8(?string $value): string
636 636
     {
637
-        $value = trim((string)$value);
637
+        $value = trim((string) $value);
638 638
         if (preg_match('/(\s)/', $value)) {
639 639
             return $this->encodeUtf8Words($value);
640 640
         }
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@  discard block
 block discarded – undo
54 54
  * Class Message
55 55
  * @package Platine\Mail
56 56
  */
57
-class Message implements MessageInterface
58
-{
57
+class Message implements MessageInterface {
59 58
 
60 59
     /**
61 60
      *
@@ -132,8 +131,7 @@  discard block
 block discarded – undo
132 131
     /**
133 132
      * Create new instance
134 133
      */
135
-    public function __construct()
136
-    {
134
+    public function __construct() {
137 135
         $this->reset();
138 136
     }
139 137
 
@@ -357,8 +355,7 @@  discard block
 block discarded – undo
357 355
     /**
358 356
      * {@inheritedoc}
359 357
      */
360
-    public function getHeader(string $name, $default = null)
361
-    {
358
+    public function getHeader(string $name, $default = null) {
362 359
         $this->prepareHeaders();
363 360
 
364 361
         return array_key_exists($name, $this->headers)
Please login to merge, or discard this patch.
src/MessageInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
  * Class MessageInterface
54 54
  * @package Platine\Mail
55 55
  */
56
-interface MessageInterface
57
-{
56
+interface MessageInterface {
58 57
 
59 58
     /**
60 59
      * Set sender
Please login to merge, or discard this patch.