felixarntz/wp-encrypt

View on GitHub

Showing 86 of 92 total issues

Avoid too many return statements within this method.
Open

            return true;
Severity: Major
Found in inc/WPENC/Core/Challenge.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                        return $result;
    Severity: Major
    Found in inc/WPENC/Core/CertificateManager.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                                  return $result;
      Severity: Major
      Found in inc/WPENC/Core/CertificateManager.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                            return $this->parse_wp_error( $result, 'new_cert_invalid_response_code', __( 'Invalid response code for new certificate request.', 'wp-encrypt' ) );
        Severity: Major
        Found in inc/WPENC/Core/CertificateManager.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                              return new WP_Error( 'private_key_cannot_create_dir', sprintf( __( 'Could not create directory <code>%s</code> for private key. Please check your filesystem permissions.', 'wp-encrypt' ), $this->path ) );
          Severity: Major
          Found in inc/WPENC/Core/KeyPair.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return $result;
            Severity: Major
            Found in inc/WPENC/Core/CertificateManager.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return new WP_Error( 'private_key_cannot_write', sprintf( __( 'Could not write private key into file <code>%s</code>. Please check your filesystem permissions.', 'wp-encrypt' ), $this->path . '/' . self::PRIVATE_NAME ) );
              Severity: Major
              Found in inc/WPENC/Core/KeyPair.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                            return $this->request( $endpoint, 'POST', array(
                                'header'    => $header,
                                'protected'    => $protected64,
                                'payload'    => $data64,
                                'signature'    => $signature64,
                Severity: Major
                Found in inc/WPENC/Core/Client.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return true;
                  Severity: Major
                  Found in inc/WPENC/ActionHandler.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                        return (bool) $options[ $field ];
                    Severity: Major
                    Found in inc/WPENC/Util.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                  return true;
                      Severity: Major
                      Found in inc/WPENC/Core/CertificateManager.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return false;
                        Severity: Major
                        Found in inc/WPENC/Core/Challenge.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                      return true;
                          Severity: Major
                          Found in inc/WPENC/Core/Certificate.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                                    return '';
                            Severity: Major
                            Found in inc/WPENC/Util.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return new WP_Error( 'challenge_cannot_create_dir', sprintf( __( 'Could not create challenge directory <code>%s</code>. Please check your filesystem permissions.', 'wp-encrypt' ), $directory ) );
                              Severity: Major
                              Found in inc/WPENC/Core/Challenge.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                return new WP_Error( 'challenge_request_failed', sprintf( __( 'Challenge request failed for domain %s.', 'wp-encrypt' ), $domain ) );
                                Severity: Major
                                Found in inc/WPENC/Core/Challenge.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                  return new WP_Error( 'new_cert_fail', __( 'No certificates generated.', 'wp-encrypt' ) );
                                  Severity: Major
                                  Found in inc/WPENC/Core/CertificateManager.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                        return new WP_Error( 'challenge_remote_check_failed', sprintf( __( 'Challenge remote check failed for domain %s.', 'wp-encrypt' ), $domain ) );
                                    Severity: Major
                                    Found in inc/WPENC/Core/Challenge.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                      return $status;
                                      Severity: Major
                                      Found in inc/WPENC/Core/CertificateManager.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return $csr;
                                        Severity: Major
                                        Found in inc/WPENC/Core/CertificateManager.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language