mossadal/math-parser

View on GitHub

Showing 188 of 188 total issues

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

                      Avoid too many return statements within this method.
                      Open

                                  return true;
                      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 RationalNode($p, $q);
                        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 false;
                          Severity: Major
                          Found in src/MathParser/Parsing/Nodes/ExpressionNode.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                    return 1000;
                            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 false;
                              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 null;
                                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 new NumberNode($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 8 + $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 SubExpressionNode($token->getValue());
                                        Severity: Major
                                        Found in src/MathParser/Parsing/Nodes/Node.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language