Skip to content

EvangelistStatus.php #4

Description

@unicodeveloper
     * Constructor.
     *
     * @param string $username of the request. the ID of this action
    */
    public function __construct($username)
    {
        $this->username = $username;
    }
    /**
     * Returns the status of the request.
     *
     * @return string the ranked output of the requested account.
     */
    public function getStatus()
    {
        $evangelist = new EvangelistRanker();
        $output = $evangelist->rankEvangelist($this->username);
        return $output;
    }

There is no space between the functions, it looks like they were sandwiched. Please fix.

For performance purposes, you can just do return $evangelist->rankEvangelist($this->username); instead of assigning it to a variable first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions