Skip to content

Commit 541a1d9

Browse files
committed
Merge branch 'cleanup'
2 parents 0c22ecb + c7a59f2 commit 541a1d9

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

Datagram/Buffer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function handleWrite()
6565
public function close()
6666
{
6767
if ($this->socket === false) {
68-
return false;
68+
return;
6969
}
7070

7171
$this->emit('close', array($this));

Datagram/Socket.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ public function send($data, $remoteAddress = null)
5353
$this->buffer->send($data, $remoteAddress);
5454
}
5555

56-
5756
public function pause()
5857
{
5958
$this->loop->removeReadStream($this->socket);
@@ -85,7 +84,7 @@ public function onReceive($message)
8584

8685
public function close()
8786
{
88-
if ($this->socket === false) {
87+
if ($this->socket === false) {
8988
return;
9089
}
9190

@@ -119,9 +118,4 @@ private function sanitizeAddress($address)
119118
}
120119
return $address;
121120
}
122-
123-
public function __toString()
124-
{
125-
return $this->getAddress() . ' (' . $this->socket . ')';
126-
}
127121
}

0 commit comments

Comments
 (0)