Skip to content

Commit

Permalink
Change method name, clean dead code
Browse files Browse the repository at this point in the history
Signed-off-by: Johan Cwiklinski <[email protected]>
  • Loading branch information
trasher authored and weierophinney committed Jul 28, 2020
1 parent 4320d19 commit 5c66122
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Protocol/Imap.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function connect($host, $port = null, $ssl = false)
}
}

$this->setSocket($host, $port);
$this->setupSocket($host, $port);

if (! $this->assumedNextLine('* OK')) {
throw new Exception\RuntimeException('host doesn\'t allow connection');
Expand Down
2 changes: 1 addition & 1 deletion src/Protocol/Pop3.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function connect($host, $port = null, $ssl = false)
}
}

$this->setSocket($host, $port);
$this->setupSocket($host, $port);

$welcome = $this->readResponse();

Expand Down
4 changes: 1 addition & 3 deletions src/Protocol/ProtocolTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,8 @@ private function prepareSocketOptions()
*
* @return void
*/
protected function setSocket($host, $port)
protected function setupSocket($host, $port)
{
$socketOptions = [];

ErrorHandler::start();
$this->socket = stream_socket_client(
$host . ":" . $port,
Expand Down

0 comments on commit 5c66122

Please sign in to comment.