mossadal/math-parser

View on GitHub

Showing 188 of 188 total issues

Avoid too many return statements within this method.
Open

        return "$real${imag}i";
Severity: Major
Found in src/MathParser/Extensions/Complex.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

            return new Rational($p, $q, $normalize);
    Severity: Major
    Found in src/MathParser/Extensions/Rational.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                          return $this->nodeFactory->multiplication($exponent, $this->nodeFactory->multiplication($fpow, $leftValue));
      Severity: Major
      Found in src/MathParser/Interpreting/Differentiator.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return $this->nodeFactory->division($inner, $denominator);
        Severity: Major
        Found in src/MathParser/Interpreting/Differentiator.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return new Complex($z->abs(), 0);
          Severity: Major
          Found in src/MathParser/Interpreting/ComplexEvaluator.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                                return new RationalNode(Math::SemiFactorial($inner->getNumerator()), 1);
            Severity: Major
            Found in src/MathParser/Interpreting/RationalEvaluator.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return tan(deg2rad($inner));
              Severity: Major
              Found in src/MathParser/Interpreting/Evaluator.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return ceil($inner);
                Severity: Major
                Found in src/MathParser/Interpreting/Evaluator.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return null;
                  Severity: Major
                  Found in src/MathParser/Parsing/Nodes/Factories/DivisionNodeFactory.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return $this->nodeFactory->division($inner, new FunctionNode('sqrt', $temp));
                    Severity: Major
                    Found in src/MathParser/Interpreting/Differentiator.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return new RationalNode($p, $q);
                      Severity: Major
                      Found in src/MathParser/Interpreting/RationalEvaluator.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return pi() / 2 - atan($inner);
                        Severity: Major
                        Found in src/MathParser/Interpreting/Evaluator.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return Math::SemiFactorial($inner);
                          Severity: Major
                          Found in src/MathParser/Interpreting/Evaluator.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                    return new ExpressionNode($operand, '-', null);
                            Severity: Major
                            Found in src/MathParser/Parsing/Nodes/Factories/SubtractionNodeFactory.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return Complex::pow($a, $b);
                              Severity: Major
                              Found in src/MathParser/Interpreting/ComplexEvaluator.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                            return new RationalNode($p, $q);
                                Severity: Major
                                Found in src/MathParser/Parsing/Nodes/Factories/AdditionNodeFactory.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                  return Complex::div(1, Complex::artanh($z));
                                  Severity: Major
                                  Found in src/MathParser/Interpreting/ComplexEvaluator.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                    return acos($inner);
                                    Severity: Major
                                    Found in src/MathParser/Interpreting/Evaluator.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                  case '^': return $this->exponentiation($node->getLeft(), $node->getRight());
                                      Severity: Major
                                      Found in src/MathParser/Parsing/Nodes/Factories/NodeFactory.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return $this->nodeFactory->division($inner, $denom);
                                        Severity: Major
                                        Found in src/MathParser/Interpreting/Differentiator.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language