j84reginato/my-eval

View on GitHub

Showing 154 of 154 total issues

Avoid too many return statements within this method.
Open

                    return $this->nodeFactory->multiplication(
                        new IntegerNode($exponent->value),
                        $this->nodeFactory->multiplication($fpow, $base->accept($this))
                    );
Severity: Major
Found in src/Solving/Differentiator.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return Complex::arccot($z);
    Severity: Major
    Found in src/Solving/ComplexEvaluator.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return "$prepend$text";
      Severity: Major
      Found in src/Solving/LaTeXPrinter.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return log($inner);
        Severity: Major
        Found in src/Solving/StdMathEvaluator.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return "$leftValue>=$rightValue";
          Severity: Major
          Found in src/Solving/ASCIIPrinter.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return "$leftValue<=$rightValue";
            Severity: Major
            Found in src/Solving/ASCIIPrinter.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return Complex::div($left->accept($this), $right->accept($this));
              Severity: Major
              Found in src/Solving/ComplexEvaluator.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return $this->rpow($a, $b);
                Severity: Major
                Found in src/Solving/RationalEvaluator.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return $other->getRight() === null && $this->left->compareTo($other->getLeft());
                  Severity: Major
                  Found in src/Parsing/Nodes/Operator/AbstractExpressionNode.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                return $this->getCondition()?->compareTo($other->getCondition()) &&
                                    $this->left->compareTo($other->getLeft()) &&
                                    $this->right->compareTo($other->getRight());
                    Severity: Major
                    Found in src/Parsing/Nodes/Operator/AbstractExpressionNode.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return sqrt($inner);
                      Severity: Major
                      Found in src/Solving/StdMathEvaluator.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                            return NAN;
                        Severity: Major
                        Found in src/Solving/StdMathEvaluator.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return $inner >= 0 ? 1 : -1;
                          Severity: Major
                          Found in src/Solving/StdMathEvaluator.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                            return "$leftValue=$rightValue";
                            Severity: Major
                            Found in src/Solving/ASCIIPrinter.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return "$leftValue AND $rightValue";
                              Severity: Major
                              Found in src/Solving/ASCIIPrinter.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/Solving/ComplexEvaluator.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

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

                                    Avoid too many return statements within this method.
                                    Open

                                            return "\\$functionName($operand)";
                                    Severity: Major
                                    Found in src/Solving/LaTeXPrinter.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                              return false;
                                      Severity: Major
                                      Found in src/Parsing/Parser.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return acos($inner);
                                        Severity: Major
                                        Found in src/Solving/StdMathEvaluator.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language