mambax7/xnewsletter

View on GitHub

Showing 283 of 379 total issues

Avoid too many return statements within this method.
Open

                    return $this->mailSend($this->MIMEHeader, $this->MIMEBody);
Severity: Major
Found in include/phpmailer/class.phpmailer.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return $this->sendCommand('Username', base64_encode($response), 235);
    Severity: Major
    Found in include/phpmailer/class.smtp.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return $protocolObj->getHtmlErrors();
      Severity: Major
      Found in include/mailinglist.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                return false;
        Severity: Major
        Found in include/functions.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                              return false;
          Severity: Major
          Found in include/phpmailer/class.smtp.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                                return false;
            Severity: Major
            Found in include/phpmailer/class.smtp.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                                  return false;
              Severity: Major
              Found in include/phpmailer/class.smtp.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                            return null;
                Severity: Major
                Found in include/task.inc.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return $this->sendCommand('Username', base64_encode($msg3), 235);
                  Severity: Major
                  Found in include/phpmailer/class.smtp.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                return true;
                    Severity: Major
                    Found in include/mailinglist.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                              return null;
                      Severity: Major
                      Found in include/phpmailer_bmh/class.phpmailer-bmh.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                    return $task_letters->getErrors();
                        Severity: Major
                        Found in include/task.inc.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return $ret;
                          Severity: Major
                          Found in include/phpmailer/class.phpmailer.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                    return $this->server_caps[$name];
                            Severity: Major
                            Found in include/phpmailer/class.smtp.php - About 30 mins to fix

                              Function punyencodeAddress has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  public function punyencodeAddress($address)
                                  {
                                      // Verify we have required functions, CharSet, and at-sign.
                                      if ($this->idnSupported() and !empty($this->CharSet) and false !== ($pos = mb_strrpos($address, '@'))) {
                                          $domain = mb_substr($address, ++$pos);
                              Severity: Minor
                              Found in include/phpmailer/class.phpmailer.php - About 25 mins to fix

                              Cognitive Complexity

                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                              A method's cognitive complexity is based on a few simple rules:

                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                              • Code is considered more complex for each "break in the linear flow of the code"
                              • Code is considered more complex when "flow breaking structures are nested"

                              Further reading

                              Function prev_child_name has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                              Open

                              function prev_child_name($node)
                              {
                                  // get the previous child
                                  $nextNode = $node->previousSibling;
                                  while (null !== $nextNode) {
                              Severity: Minor
                              Found in include/html2text/html2text.php - About 25 mins to fix

                              Cognitive Complexity

                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                              A method's cognitive complexity is based on a few simple rules:

                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                              • Code is considered more complex for each "break in the linear flow of the code"
                              • Code is considered more complex when "flow breaking structures are nested"

                              Further reading

                              Function addAttachment has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  public function addAttachment($path, $name = '', $encoding = 'base64', $type = '', $disposition = 'attachment')
                                  {
                                      try {
                                          if (!@is_file($path)) {
                                              throw new phpmailerException($this->lang('file_access') . $path, self::STOP_CONTINUE);
                              Severity: Minor
                              Found in include/phpmailer/class.phpmailer.php - About 25 mins to fix

                              Cognitive Complexity

                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                              A method's cognitive complexity is based on a few simple rules:

                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                              • Code is considered more complex for each "break in the linear flow of the code"
                              • Code is considered more complex when "flow breaking structures are nested"

                              Further reading

                              Function login has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  public function login($username = '', $password = '')
                                  {
                                      if (!$this->connected) {
                                          $this->setError('Not connected to POP3 server');
                                      }
                              Severity: Minor
                              Found in include/phpmailer/class.pop3.php - About 25 mins to fix

                              Cognitive Complexity

                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                              A method's cognitive complexity is based on a few simple rules:

                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                              • Code is considered more complex for each "break in the linear flow of the code"
                              • Code is considered more complex when "flow breaking structures are nested"

                              Further reading

                              Function setFrom has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  public function setFrom($address, $name = '', $auto = true)
                                  {
                                      $address = trim($address);
                                      $name    = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim
                                      // Don't validate now addresses with IDN. Will be done in send().
                              Severity: Minor
                              Found in include/phpmailer/class.phpmailer.php - About 25 mins to fix

                              Cognitive Complexity

                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                              A method's cognitive complexity is based on a few simple rules:

                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                              • Code is considered more complex for each "break in the linear flow of the code"
                              • Code is considered more complex when "flow breaking structures are nested"

                              Further reading

                              Function next_child_name has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                              Open

                              function next_child_name($node)
                              {
                                  // get the next child
                                  $nextNode = $node->nextSibling;
                                  while (null !== $nextNode) {
                              Severity: Minor
                              Found in include/html2text/html2text.php - About 25 mins to fix

                              Cognitive Complexity

                              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                              A method's cognitive complexity is based on a few simple rules:

                              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                              • Code is considered more complex for each "break in the linear flow of the code"
                              • Code is considered more complex when "flow breaking structures are nested"

                              Further reading

                              Severity
                              Category
                              Status
                              Source
                              Language