Vote Details for "Math_Polynomial" by arnaud

» Details
» Comment
CS issues.

if (is_string($mixed_poly)) // Parse from string
$this -> _parsePolynomial(trim($mixed_poly));
else if (is_object($mixed_poly) and get_class($mixed_poly) == get_class($this)) // Load from another Polynomail
{


should be
if () {
$this->_parse
} else {
}

In short, there should be curly braces after the if statement and there should not be spaces when calling an object's method ($this->myMethod()).

You should also use strtolower(get_class()) as get_class returns a case-sensitive class name.