felixarntz/wpdlib

View on GitHub

Showing 160 of 160 total issues

Avoid too many return statements within this method.
Open

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

    Avoid too many return statements within this method.
    Open

                    return (string) $val[0] . '|' . (string) $val[1];
    Severity: Major
    Found in inc/WPDLib/FieldTypes/Map.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 'His';
        Severity: Major
        Found in inc/WPDLib/FieldTypes/Manager.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 '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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language