* 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.
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.