felixarntz/wpdlib

View on GitHub

Showing 156 of 160 total issues

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 'edit.php?post_type=page';
    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_path( $id, 'url', substr( $field, 0, -4 ) );
      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/Components/Menu.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return ( $a->$sort_by < $b->$sort_by ? -1 : 1 );
          Severity: Major
          Found in inc/WPDLib/Util/Util.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

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

              Avoid too many return statements within this method.
              Open

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

                Avoid too many return statements within this method.
                Open

                            return $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 'plugins.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 new WPError( 'invalid_number_step', sprintf( __( 'The number %1$s is invalid since it is not divisible by %2$s.', 'wpdlib' ), FieldManager::format( $val, $format, 'output' ), FieldManager::format( $this->args['step'], $format, 'output' ) ) );
                    Severity: Major
                    Found in inc/WPDLib/FieldTypes/Number.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                              return 'options-general.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_field( $id, $args['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 'YmdHis';
                          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::format_datetime( $value, $mode, $type, $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 0;
                              Severity: Major
                              Found in inc/WPDLib/FieldTypes/Manager.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

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

                                  Avoid too many return statements within this method.
                                  Open

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

                                    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' ), get_class( $component ), $component->slug ), '', ComponentManager::get_scope() );
                                    Severity: Major
                                    Found in inc/WPDLib/Components/Base.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                  return FieldManager::format( $val, 'string', 'input' );
                                      Severity: Major
                                      Found in inc/WPDLib/FieldTypes/Map.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return new WPError( 'invalid_media_mime_type', sprintf( __( 'The media item with ID %1$s is neither of the valid formats (%2$s).', 'wpdlib' ), $val, $valid_formats ) );
                                        Severity: Major
                                        Found in inc/WPDLib/FieldTypes/Media.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language