mossadal/math-parser

View on GitHub

Showing 188 of 188 total issues

Avoid too many return statements within this method.
Open

        return 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 'INF';
    Severity: Major
    Found in src/MathParser/Interpreting/ASCIIPrinter.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return "($text)";
      Severity: Major
      Found in src/MathParser/Interpreting/ASCIIPrinter.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return Complex::div(Complex::log($z), M_LN10);
        Severity: Major
        Found in src/MathParser/Interpreting/ComplexEvaluator.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 "$leftValue$operator$rightValue";
            Severity: Major
            Found in src/MathParser/Interpreting/ASCIIPrinter.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return "($text)";
              Severity: Major
              Found in src/MathParser/Interpreting/ASCIIPrinter.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                    return $this->nodeFactory->multiplication($power, $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 Complex::arctan($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 Complex::div(1, Complex::tanh($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 NAN;
                      Severity: Major
                      Found in src/MathParser/Interpreting/Evaluator.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return atanh($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 $this->nodeFactory->simplify($node);
                          Severity: Major
                          Found in src/MathParser/Parsing/Parser.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                            return Complex::arccot($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 Complex::log($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 new RationalNode(Math::Factorial($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 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 1 / $tan_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 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

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