@@ -122,7 +122,7 @@ public function __wakeup(): void
122122 public function connect (): void
123123 {
124124 if (!$ this ->connected ()) {
125- $ this ->_connect ();
125+ $ this ->connectSmtp ();
126126 $ this ->auth ();
127127 }
128128 }
@@ -151,7 +151,7 @@ public function disconnect(): void
151151 return ;
152152 }
153153
154- $ this ->_disconnect ();
154+ $ this ->disconnectSmtp ();
155155 }
156156
157157 /**
@@ -196,7 +196,7 @@ public function send(Message $message): array
196196 $ this ->checkRecipient ($ message );
197197
198198 if (!$ this ->connected ()) {
199- $ this ->_connect ();
199+ $ this ->connectSmtp ();
200200 $ this ->auth ();
201201 } else {
202202 $ this ->smtpSend ('RSET ' );
@@ -206,7 +206,7 @@ public function send(Message $message): array
206206 $ this ->sendData ($ message );
207207
208208 if (!$ this ->_config ['keepAlive ' ]) {
209- $ this ->_disconnect ();
209+ $ this ->disconnectSmtp ();
210210 }
211211
212212 /** @var array{headers: string, message: string} */
@@ -286,7 +286,7 @@ protected function parseAuthType(): void
286286 * @return void
287287 * @throws \Cake\Network\Exception\SocketException
288288 */
289- protected function _connect (): void
289+ protected function connectSmtp (): void
290290 {
291291 $ this ->generateSocket ();
292292 if (!$ this ->_socket ->connect ()) {
@@ -565,7 +565,7 @@ protected function sendData(Message $message): void
565565 * @return void
566566 * @throws \Cake\Network\Exception\SocketException
567567 */
568- protected function _disconnect (): void
568+ protected function disconnectSmtp (): void
569569 {
570570 $ this ->smtpSend ('QUIT ' , false );
571571 $ this ->_socket ->disconnect ();
0 commit comments