j84reginato/my-eval

View on GitHub

Showing 147 of 154 total issues

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

                            Avoid too many return statements within this method.
                            Open

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

                              Avoid too many return statements within this method.
                              Open

                                              return 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 '{' . $text . '}';
                                Severity: Major
                                Found in src/Solving/LaTeXPrinter.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

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

                                    Avoid too many return statements within this method.
                                    Open

                                                    return $this->nodeFactory->multiplication($node, $factor2);
                                    Severity: Major
                                    Found in src/Solving/Differentiator.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                      return Complex::cosh($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 RationalNode($p, $q);
                                        Severity: Major
                                        Found in src/Solving/RationalEvaluator.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language