mossadal/math-parser

View on GitHub

Showing 178 of 188 total issues

Avoid too many return statements within this method.
Open

        return $this->nodeFactory->multiplication($inner, $df);
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::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 sin(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 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 log10($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 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 acosh($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 abs($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 floor($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 new PostfixOperatorNode($token->getValue());
                      Severity: Major
                      Found in src/MathParser/Parsing/Nodes/Node.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/MultiplicationNodeFactory.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/Node.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                            return new FunctionNode($token->getValue(), null);
                            Severity: Major
                            Found in src/MathParser/Parsing/Nodes/Node.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return new ExpressionNode(null, $token->getValue(), null);
                              Severity: Major
                              Found in src/MathParser/Parsing/Nodes/Node.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                return new ExpressionNode(null, $token->getValue(), null);
                                Severity: Major
                                Found in src/MathParser/Parsing/Nodes/Node.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                      return 3 + $left->complexity() + (($right === null) ? 0 : $right->complexity());
                                  Severity: Major
                                  Found in src/MathParser/Parsing/Nodes/Node.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                    return new PostfixOperatorNode($token->getValue(), null);
                                    Severity: Major
                                    Found in src/MathParser/Parsing/Nodes/Node.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                      return new FunctionNode($token->getValue(), null);
                                      Severity: Major
                                      Found in src/MathParser/Parsing/Nodes/Node.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                    return $otherRight=== null && $thisLeft->compareTo($otherLeft);
                                        Severity: Major
                                        Found in src/MathParser/Parsing/Nodes/ExpressionNode.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language