Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Nov 17, 2017
1 parent 8a0914c commit dd2b4bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/SMTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ public function turn()
/**
* Send raw data to the server.
*
* @param string $data The data to send
* @param string $data The data to send
* @param string $command Optionally, the command this is part of, used only for controlling debug output
*
* @return int|bool The number of bytes sent to the server or false on error
Expand All @@ -1014,8 +1014,7 @@ public function client_send($data, $command = '')
//If SMTP transcripts are left enabled, or debug output is posted online
//it can leak credentials, so hide credentials in all but lowest level
if (self::DEBUG_LOWLEVEL > $this->do_debug and
in_array($command, ['User & Password', 'Username', 'Password'], true))
{
in_array($command, ['User & Password', 'Username', 'Password'], true)) {
$this->edebug('CLIENT -> SERVER: <credentials hidden>', self::DEBUG_CLIENT);
} else {
$this->edebug('CLIENT -> SERVER: ' . $data, self::DEBUG_CLIENT);
Expand Down

0 comments on commit dd2b4bc

Please sign in to comment.