Showing 3,272 of 4,939 total issues

Avoid too many return statements within this method.
Open

                return $this->analyzeAndUpdateToBeCompared($node->children['left'], $node->children['right'], $flags);
Severity: Major
Found in src/Phan/Analysis/ConditionVisitor.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

            return $context;
    Severity: Major
    Found in src/Phan/Analysis/ConditionVisitor.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return $context;
      Severity: Major
      Found in src/Phan/Analysis/NegatedConditionVisitor.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return [$type->asNonTruthyType()];
        Severity: Major
        Found in src/Phan/Analysis/NegatedConditionVisitor.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return;
          Severity: Major
          Found in src/Phan/Analysis/ReferenceCountsAnalyzer.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return;
            Severity: Major
            Found in src/Phan/Analysis/ReferenceCountsAnalyzer.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return null;
              Severity: Major
              Found in src/Phan/Analysis/ReferenceCountsAnalyzer.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                            return true;
                Severity: Major
                Found in src/Phan/Analysis/AssignmentVisitor.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return $this->modifyComplexExpression($first_arg, $type_modification_callback, $this->context, $args);
                  Severity: Major
                  Found in src/Phan/Analysis/ConditionVisitor.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return $this->analyzeAndUpdateToBeCompared($node->children['left'], $node->children['right'], flags\BINARY_IS_SMALLER);
                    Severity: Major
                    Found in src/Phan/Analysis/NegatedConditionVisitor.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return $this->analyzeAndUpdateToBeCompared($node->children['left'], $node->children['right'], flags\BINARY_IS_GREATER);
                      Severity: Major
                      Found in src/Phan/Analysis/NegatedConditionVisitor.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                            return [];
                        Severity: Major
                        Found in src/Phan/Analysis/NegatedConditionVisitor.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                  return [
                                      'count' => $zero_count_callback,
                                      'is_null' => $remove_null_cb,
                                      'is_array' => $remove_array_callback,
                                      'is_bool' => $remove_bool_callback,
                          Severity: Major
                          Found in src/Phan/Analysis/NegatedConditionVisitor.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                                return $code_base->getGlobalConstantByFQSEN($fqsen);
                            Severity: Major
                            Found in src/Phan/Analysis/ReferenceCountsAnalyzer.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return $this->context;
                              Severity: Major
                              Found in src/Phan/Analysis/AssignmentVisitor.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                            return $context->withScopeVariable(new Variable(
                                                $context->withLineNumberStart($node->lineno ?? 0),
                                                $var_name,
                                                $new_type,  // can be array or (unlikely) ArrayAccess
                                                0
                                Severity: Major
                                Found in src/Phan/Analysis/ConditionVisitor.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                          return $union_type;
                                  Severity: Major
                                  Found in src/Phan/Analysis/ConditionVisitor.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                        return [];
                                    Severity: Major
                                    Found in src/Phan/Analysis/NegatedConditionVisitor.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                      return null;  // $old_fqsen was not an alternative
                                      Severity: Major
                                      Found in src/Phan/Analysis/ReferenceCountsAnalyzer.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return null;
                                        Severity: Major
                                        Found in src/Phan/Analysis/ReferenceCountsAnalyzer.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language