src/PHPDish/Component/Mention/MentionParser.php
public function parse($body)
    {
        $this->parsedBody = $body;
        $this->mentionedNames = static::extractUserNames($body);
        if ($this->mentionedNames) {
            $this->mentionedUsers = $this->adapter->findUsers($this->mentionedNames);
            foreach ($this->mentionedUsers as $user) {
                $search = '@'.$user->getUsername();
                $replace = $this->adapter->createUserLink($user);
                $this->parsedBody = str_replace($search, $replace, $this->parsedBody);
            }
        }

        return $this;
    }
public function parse($body)
    {
        $this->parsedBody = $body;
        $this->mentionedNames = static::extractUserNames($body);
        if ($this->mentionedNames) {
            $this->mentionedUsers = $this->adapter->findUsers($this->mentionedNames);
            foreach ($this->mentionedUsers as $user) {
                $search = '@'.$user->getUsername();
                $replace = $this->adapter->createUserLink($user);
                $this->parsedBody = str_replace($search, $replace, $this->parsedBody);
            }
        }

        return $this;
    }
{@inheritdoc}