Skip to content
This repository was archived by the owner on Jun 11, 2020. It is now read-only.

Commit 2e0b081

Browse files
committed
run code inspection check
1 parent 520854a commit 2e0b081

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/StrBuffer.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,15 @@ public function prepend(string $content): void
4949
}
5050

5151
/**
52-
* clear
52+
* clear data
5353
*/
54-
public function clear(): void
54+
public function clear(): string
5555
{
56+
$string = $this->body;
57+
// clear
5658
$this->body = '';
59+
60+
return $string;
5761
}
5862

5963
/**

0 commit comments

Comments
 (0)