src/MathParser/Interpreting/ComplexEvaluator.php
Method visitFunctionNode
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function visitFunctionNode(FunctionNode $node)
{
$z = $node->getOperand()->accept($this);
$a = $z->r();
$b = $z->i();
Avoid too many return
statements within this method. Open
Open
return Complex::div($a, $b);
Avoid too many return
statements within this method. Open
Open
return Complex::tanh($z);
Avoid too many return
statements within this method. Open
Open
return new Complex($z->arg(), 0);
Avoid too many return
statements within this method. Open
Open
return Complex::log($z);
Avoid too many return
statements within this method. Open
Open
return Complex::log($z);
Avoid too many return
statements within this method. Open
Open
return new Complex($z->i(), 0);
Avoid too many return
statements within this method. Open
Open
return Complex::arccos($z);
Avoid too many return
statements within this method. Open
Open
return new Complex($z->r(), 0);
Avoid too many return
statements within this method. Open
Open
return Complex::arctan($z);
Avoid too many return
statements within this method. Open
Open
return Complex::sinh($z);
Avoid too many return
statements within this method. Open
Open
return Complex::div(1, Complex::tanh($z));
Avoid too many return
statements within this method. Open
Open
return Complex::sqrt($z);
Avoid too many return
statements within this method. Open
Open
return Complex::div(Complex::log($z), M_LN10);
Avoid too many return
statements within this method. Open
Open
return Complex::arccot($z);
Avoid too many return
statements within this method. Open
Open
return Complex::arsinh($z);
Avoid too many return
statements within this method. Open
Open
return new Complex($z->abs(), 0);
Avoid too many return
statements within this method. Open
Open
return Complex::pow($a, $b);
Avoid too many return
statements within this method. Open
Open
return Complex::div(1, Complex::artanh($z));
Avoid too many return
statements within this method. Open
Open
return Complex::arcsin($z);
Avoid too many return
statements within this method. Open
Open
return new Complex($z->r(), -$z->i());
Avoid too many return
statements within this method. Open
Open
return Complex::cosh($z);
Avoid too many return
statements within this method. Open
Open
return Complex::arcosh($z);
Avoid too many return
statements within this method. Open
Open
return Complex::exp($z);
Avoid too many return
statements within this method. Open
Open
return Complex::artanh($z);