CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Method wp_newCategory has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function wp_newCategory($args) {
        $this->escape($args);

        $blog_id                = (int) $args[0];
        $username                = $args[1];
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 1 hr to fix

    Method wp_getRevisions has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function wp_getRevisions( $args ) {
            if ( ! $this->minimum_args( $args, 4 ) )
                return $this->error;
    
            $this->escape( $args );
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 1 hr to fix

      Method ASF_WMpicture has 33 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function ASF_WMpicture(&$data) {
              //typedef struct _WMPicture{
              //  LPWSTR  pwszMIMEType;
              //  BYTE  bPictureType;
              //  LPWSTR  pwszDescription;
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio-video.asf.php - About 1 hr to fix

        Method multi_resize has 33 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function multi_resize( $sizes ) {
                $metadata = array();
                $orig_size = $this->size;
                $orig_image = $this->image->getImage();
        
        

          Method wp_register_widget_control has 33 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function wp_register_widget_control($id, $name, $control_callback, $options = array()) {
              global $wp_registered_widget_controls, $wp_registered_widget_updates, $wp_registered_widgets, $_wp_deprecated_widgets_callbacks;
          
              $id = strtolower($id);
              $id_base = _get_widget_id_base($id);
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/widgets.php - About 1 hr to fix

            Method get_element has 33 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public static function get_element($realname, $string)
                {
                    $return = array();
                    $name = preg_quote($realname, '/');
                    if (preg_match_all("/<($name)" . SIMPLEPIE_PCRE_HTML_ATTRIBUTE . "(>(.*)<\/$name>|(\/)?>)/siU", $string, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE))
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php - About 1 hr to fix

              Method get_updated_date has 33 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function get_updated_date($date_format = 'j F Y, g:i a')
                  {
                      if (!isset($this->data['updated']))
                      {
                          if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'updated'))
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php - About 1 hr to fix

                Method error has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public static function error($message, $level, $file, $line)
                    {
                        if ((ini_get('error_reporting') & $level) > 0)
                        {
                            switch ($level)
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php - About 1 hr to fix

                  Method __construct has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function __construct($dbuser, $dbpassword, $dbname, $dbhost) {
                          register_shutdown_function(array(&$this, "__destruct"));
                  
                          if ( WP_DEBUG )
                              $this->show_errors();
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/wp-db.php - About 1 hr to fix

                    Method get_element has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function get_element($realname, $string)
                        {
                            $return = array();
                            $name = preg_quote($realname, '/');
                            if (preg_match_all("/<($name)" . SIMPLEPIE_PCRE_HTML_ATTRIBUTE . "(>(.*)<\/$name>|(\/)?>)/siU", $string, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE))
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 1 hr to fix

                      Method SimplePie_Enclosure has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function SimplePie_Enclosure($link = null, $type = null, $length = null, $javascript = null, $bitrate = null, $captions = null, $categories = null, $channels = null, $copyright = null, $credits = null, $description = null, $duration = null, $expression = null, $framerate = null, $hashes = null, $height = null, $keywords = null, $lang = null, $medium = null, $player = null, $ratings = null, $restrictions = null, $samplingrate = null, $thumbnails = null, $title = null, $width = null)
                          {
                              $this->bitrate = $bitrate;
                              $this->captions = $captions;
                              $this->categories = $categories;
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 1 hr to fix

                        Method serve has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function serve($data = false) {
                                if (!$data) {
                                    global $HTTP_RAW_POST_DATA;
                                    if (!$HTTP_RAW_POST_DATA) {
                                       header( 'Content-Type: text/plain' );
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/class-IXR.php - About 1 hr to fix

                          Method get_option has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function get_option( $setting, $default = false ) {
                              global $wpdb;
                          
                              // Allow plugins to short-circuit options.
                              $pre = apply_filters( 'pre_option_' . $setting, false );
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/functions.php - About 1 hr to fix

                            Method wp_link_query has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public static function wp_link_query( $args = array() ) {
                                    $pts = get_post_types( array( 'public' => true ), 'objects' );
                                    $pt_names = array_keys( $pts );
                            
                                    $query = array(
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-includes/class-wp-editor.php - About 1 hr to fix

                              Method wpmu_welcome_notification has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function wpmu_welcome_notification( $blog_id, $user_id, $password, $title, $meta = array() ) {
                                  $current_site = get_current_site();
                              
                                  /**
                                   * Filter whether to bypass the welcome email after site activation.
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-includes/ms-functions.php - About 1 hr to fix

                                Method wp_fix_server_vars has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function wp_fix_server_vars() {
                                    global $PHP_SELF;
                                
                                    $default_server_values = array(
                                        'SERVER_SOFTWARE' => '',
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-includes/load.php - About 1 hr to fix

                                  Method wp_specialchars_decode has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function wp_specialchars_decode( $string, $quote_style = ENT_NOQUOTES ) {
                                      $string = (string) $string;
                                  
                                      if ( 0 === strlen( $string ) ) {
                                          return '';
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-includes/formatting.php - About 1 hr to fix

                                    Method add_node has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function add_node( $args ) {
                                            // Shim for old method signature: add_node( $parent_id, $menu_obj, $args )
                                            if ( func_num_args() >= 3 && is_string( func_get_arg(0) ) )
                                                $args = array_merge( array( 'parent' => func_get_arg(0) ), func_get_arg(2) );
                                    
                                    
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-includes/class-wp-admin-bar.php - About 1 hr to fix

                                      Method Handle has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              public void Handle(TravelPlansChanged e)
                                              {
                                                  var tournament = GetTournamentFromContingentId(e.Id);
                                      
                                                  var travelPlans = e.TravelPlans.Select(travelPlan => new TravelPlan
                                      Severity: Minor
                                      Found in ReadModels/ContingentTravelPlanQueries.cs - About 1 hr to fix

                                        Method Handle has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                public void Handle(TeamGameCompleted e)
                                                {
                                                    var isPOASingles = e.IsPOA && e.Division.Contains("Single");
                                                    Guid actualTeamId = isPOASingles ? Singles[e.TeamId] : e.TeamId;
                                        
                                        
                                        Severity: Minor
                                        Found in ReadModels/StandingQueries.cs - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language