mossadal/math-parser

View on GitHub

Showing 178 of 188 total issues

Avoid too many return statements within this method.
Open

                    return "$leftValue$operator$rightValue";
Severity: Major
Found in src/MathParser/Interpreting/LaTeXPrinter.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

            return "\\$functionName($operand)";
    Severity: Major
    Found in src/MathParser/Interpreting/LaTeXPrinter.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 new Complex($z->r(), 0);
        Severity: Major
        Found in src/MathParser/Interpreting/ComplexEvaluator.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/LaTeXPrinter.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/MathParser/Interpreting/RationalEvaluator.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return sqrt($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 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 round($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 Rational($p, $q, $normalize);
                    Severity: Major
                    Found in src/MathParser/Extensions/Rational.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                              return false;
                      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 ExpressionNode($operand, '-', null);
                        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 true;
                          Severity: Major
                          Found in src/MathParser/Lexing/Token.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 pow($leftValue, $rightValue);
                              Severity: Major
                              Found in src/MathParser/Interpreting/Evaluator.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 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 cosh($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 $z;
                                      Severity: Major
                                      Found in src/MathParser/Extensions/Complex.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                    case '^': return $this->exponentiation($node->getLeft(), $node->getRight());
                                        Severity: Major
                                        Found in src/MathParser/Parsing/Nodes/Factories/NodeFactory.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language