改名
This commit is contained in:
@@ -54,8 +54,8 @@ class Websocket extends Annotation
|
|||||||
*/
|
*/
|
||||||
public function getName($events, $comment = [])
|
public function getName($events, $comment = [])
|
||||||
{
|
{
|
||||||
$prefix = rtrim('WEBSOCKET:ANNOTATION:' . $events, ':');
|
$prefix = 'WEBSOCKET:ANNOTATION:' . ltrim($events, ':');
|
||||||
if (isset($comment[2])) {
|
if (isset($comment[2]) && !empty($comment[2])) {
|
||||||
return $prefix . ':' . $comment[2];
|
return $prefix . ':' . $comment[2];
|
||||||
}
|
}
|
||||||
return $prefix;
|
return $prefix;
|
||||||
|
|||||||
Reference in New Issue
Block a user