mossadal/math-parser

View on GitHub

Showing 178 of 188 total issues

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 Complex::sqrt($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 '\frac{' . $left->accept($this) . '}{' . $right->accept($this) . '}';
      Severity: Major
      Found in src/MathParser/Interpreting/LaTeXPrinter.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return cos(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 new IntegerNode(pow($leftOperand->getValue(), $rightOperand->getValue()));
          Severity: Major
          Found in src/MathParser/Parsing/Nodes/Factories/ExponentiationNodeFactory.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                        return new IntegerNode($leftOperand->getValue() - $rightOperand->getValue());
            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 null;
              Severity: Major
              Found in src/MathParser/Parsing/Nodes/Factories/MultiplicationNodeFactory.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 sinh($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 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 new RationalNode($p, $q);
                          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 "($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 "$prepend$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::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 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 exp($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->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 '{' . $text . '}';
                                        Severity: Major
                                        Found in src/MathParser/Interpreting/LaTeXPrinter.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language