felixarntz/wpdlib

View on GitHub

Showing 160 of 160 total issues

Avoid too many return statements within this method.
Open

                return new UtilError( 'no_valid_slug_component', sprintf( __( 'A component of class %1$s with slug %2$s already exists.', 'wpdlib' ), $component_class, $component->slug ), '', self::$current_scope );
Severity: Major
Found in inc/WPDLib/Components/Manager.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                        return self::format_int( $value, $mode, $args );
    Severity: Major
    Found in inc/WPDLib/FieldTypes/Manager.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return $formatted;
      Severity: Major
      Found in inc/WPDLib/FieldTypes/Manager.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                                return 'themes.php';
        Severity: Major
        Found in inc/WPDLib/Components/Menu.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                              return self::format_byte( $value, $mode, $args );
          Severity: Major
          Found in inc/WPDLib/FieldTypes/Manager.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return self::merge_components( self::$components[ $component_class ][ $component->slug ], $component );
            Severity: Major
            Found in inc/WPDLib/Components/Manager.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                                  return wp_basename( get_attached_file( $id ) );
              Severity: Major
              Found in inc/WPDLib/FieldTypes/Media.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                    return $this->get_attachment_path( $id, $field );
                Severity: Major
                Found in inc/WPDLib/FieldTypes/Media.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return $info;
                  Severity: Major
                  Found in inc/WPDLib/Components/Manager.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                        return get_attachment_link( $id );
                    Severity: Major
                    Found in inc/WPDLib/FieldTypes/Media.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                          return self::format_float( $value, $mode, $args );
                      Severity: Major
                      Found in inc/WPDLib/FieldTypes/Manager.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                                    return 'users.php';
                        Severity: Major
                        Found in inc/WPDLib/Components/Menu.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                                  return 'tools.php';
                          Severity: Major
                          Found in inc/WPDLib/Components/Menu.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                        return false;
                            Severity: Major
                            Found in inc/WPDLib/FieldTypes/Media.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                                  return $this->get_post_field( $id, 'post_content' );
                              Severity: Major
                              Found in inc/WPDLib/FieldTypes/Media.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                return false;
                                Severity: Major
                                Found in inc/WPDLib/FieldTypes/Manager.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                              return $term;
                                  Severity: Major
                                  Found in inc/WPDLib/FieldTypes/Datetime.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                                return 'profile.php';
                                    Severity: Major
                                    Found in inc/WPDLib/Components/Menu.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                          return $this->get_attachment_mime_type( $id, $field );
                                      Severity: Major
                                      Found in inc/WPDLib/FieldTypes/Media.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                                return 'edit-comments.php';
                                        Severity: Major
                                        Found in inc/WPDLib/Components/Menu.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language