mirror of
https://github.com/furyfire/trueskill.git
synced 2025-01-16 01:47:39 +00:00
Removing unnecessary check for __toString()
This commit is contained in:
@ -19,7 +19,7 @@ abstract class Factor
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return The log-normalization constant of that factor
|
* @return mixed The log-normalization constant of that factor
|
||||||
*/
|
*/
|
||||||
public function getLogNormalization()
|
public function getLogNormalization()
|
||||||
{
|
{
|
||||||
@ -27,7 +27,7 @@ abstract class Factor
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return The number of messages that the factor has
|
* @return int The number of messages that the factor has
|
||||||
*/
|
*/
|
||||||
public function getNumberOfMessages()
|
public function getNumberOfMessages()
|
||||||
{
|
{
|
||||||
@ -102,6 +102,6 @@ abstract class Factor
|
|||||||
|
|
||||||
public function __toString()
|
public function __toString()
|
||||||
{
|
{
|
||||||
return ($this->_name != null) ? $this->_name : null;
|
return $this->_name;
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user