j84reginato/my-eval

View on GitHub

Showing 154 of 154 total issues

Avoid too many return statements within this method.
Open

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

    Avoid too many return statements within this method.
    Open

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

      Avoid too many return statements within this method.
      Open

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

            Avoid too many return statements within this method.
            Open

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

              Avoid too many return statements within this method.
              Open

                              return Complex::pow($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 new RationalNode(Math::semiFactorial($inner->getNumerator()), 1);
                Severity: Major
                Found in src/Solving/RationalEvaluator.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return $this->processNumericNodeType($leftOperand, $rightOperand);
                  Severity: Major
                  Found in src/Parsing/Operations/Math/MultiplicationOperation.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

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

                      Avoid too many return statements within this method.
                      Open

                                      return floor($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 $this->nodeFactory->division($inner, new FunctionNode('sqrt', $temp));
                          Severity: Major
                          Found in src/Solving/Differentiator.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

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

                              Avoid too many return statements within this method.
                              Open

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

                                Avoid too many return statements within this method.
                                Open

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

                                  Avoid too many return statements within this method.
                                  Open

                                                  return Complex::exp($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(Math::factorial($inner->getNumerator()), 1);
                                    Severity: Major
                                    Found in src/Solving/RationalEvaluator.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                  return $other->getLeft() === null && $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 $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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language