This commit is contained in:
2020-09-01 04:15:23 +08:00
parent cdce8f088c
commit d8141c21db
+2 -2
View File
@@ -54,9 +54,9 @@ class Websocket extends Annotation
*/ */
public function getName($events, $comment) public function getName($events, $comment)
{ {
$prefix = 'WEBSOCKET:ANNOTATION:' . $events; $prefix = rtrim('WEBSOCKET:ANNOTATION:' . $events, ':');
if (isset($comment[2])) { if (isset($comment[2])) {
return rtrim($prefix, ':') . ':' . $comment[2]; return $prefix . ':' . $comment[2];
} }
return $prefix; return $prefix;
} }