CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Function exports has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function (config) {
  config.set({
    basePath: '',
    frameworks: ['jasmine', '@angular-devkit/build-angular'],
    plugins: [
Severity: Minor
Found in Website/karma.conf.js - About 1 hr to fix

    Method privWriteCentralFileHeader has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function privWriteCentralFileHeader(&$p_header)
      {
        $v_result=1;
    
        // TBC
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 1 hr to fix

      Method delete has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function delete()
        {
          $v_result=1;
      
          // ----- Reset the error handler
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 1 hr to fix

        Function lazyLoadChunks has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            lazyLoadChunks: function( size, delay ) {
        
                var len = this.getDataLength(),
                    i = 0,
                    n = 0,
        Severity: Minor
        Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 1 hr to fix

          Method privDuplicate has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function privDuplicate($p_archive_filename)
            {
              $v_result=1;
          
              // ----- Look if the $p_archive_filename exists
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 1 hr to fix

            Method upgrade has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function upgrade($theme) {
            
                    $this->init();
                    $this->upgrade_strings();
            
            
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-admin/includes/class-wp-upgrader.php - About 1 hr to fix

              Method upgrade_210 has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function upgrade_210() {
                  global $wpdb, $wp_current_db_version;
              
                  if ( $wp_current_db_version < 3506 ) {
                      // Update status and type.
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-admin/includes/upgrade.php - About 1 hr to fix

                Method make_site_theme has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function make_site_theme() {
                    // Name the theme after the blog.
                    $theme_name = __get_option('blogname');
                    $template = sanitize_title($theme_name);
                    $site_dir = WP_CONTENT_DIR . "/themes/$template";
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-admin/includes/upgrade.php - About 1 hr to fix

                  Method get_columns has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function get_columns() {
                          $posts_columns = array();
                          $posts_columns['cb'] = '<input type="checkbox" />';
                          $posts_columns['icon'] = '';
                          /* translators: column name */

                    Method prepare_items has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function prepare_items() {
                            global $role, $usersearch;
                    
                            $usersearch = isset( $_REQUEST['s'] ) ? wp_unslash( trim( $_REQUEST['s'] ) ) : '';
                    
                    

                      Method wp_ajax_add_link_category has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function wp_ajax_add_link_category( $action ) {
                          if ( empty( $action ) )
                              $action = 'add-link-category';
                          check_ajax_referer( $action );
                          if ( !current_user_can( 'manage_categories' ) )
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 1 hr to fix

                        Method wp_ajax_query_themes has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function wp_ajax_query_themes() {
                            global $themes_allowedtags, $theme_field_defaults;
                        
                            if ( ! current_user_can( 'install_themes' ) ) {
                                wp_send_json_error();
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 1 hr to fix

                          Method wp_ajax_dim_comment has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function wp_ajax_dim_comment() {
                              $id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0;
                          
                              if ( !$comment = get_comment( $id ) ) {
                                  $x = new WP_Ajax_Response( array(
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 1 hr to fix

                            Method wp_ajax_wp_fullscreen_save_post has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function wp_ajax_wp_fullscreen_save_post() {
                                $post_id = isset( $_POST['post_ID'] ) ? (int) $_POST['post_ID'] : 0;
                            
                                $post = $post_type = null;
                            
                            
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 1 hr to fix

                              Method wp_doc_link_parse has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function wp_doc_link_parse( $content ) {
                                  if ( !is_string( $content ) || empty( $content ) )
                                      return array();
                              
                                  if ( !function_exists('token_get_all') )
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-admin/includes/misc.php - About 1 hr to fix

                                Method add_submenu_page has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function add_submenu_page( $parent, $page_title, $menu_title, $access_level, $file, $function = '' ) {
                                    global $submenu;
                                    global $menu;
                                    global $_wp_real_parent_file;
                                    global $_wp_submenu_nopriv;
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-admin/includes/plugin.php - About 1 hr to fix

                                  Method step_3 has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function step_3() {
                                          check_admin_referer('custom-header');
                                          if ( $_POST['oitar'] > 1 ) {
                                              $_POST['x1'] = $_POST['x1'] * $_POST['oitar'];
                                              $_POST['y1'] = $_POST['y1'] * $_POST['oitar'];
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-admin/custom-header.php - About 1 hr to fix

                                    Method akismet_rightnow has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function akismet_rightnow() {
                                        global $submenu, $wp_db_version;
                                    
                                        if ( 8645 < $wp_db_version  ) // 2.7
                                            $link = 'edit-comments.php?comment_status=spam';
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-content/plugins/akismet/akismet.php - About 1 hr to fix

                                      Method twentytwelve_widgets_init has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function twentytwelve_widgets_init() {
                                          register_sidebar( array(
                                              'name' => __( 'Main Sidebar', 'twentytwelve' ),
                                              'id' => 'sidebar-1',
                                              'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'twentytwelve' ),

                                        Method http_post has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public static function http_post( $request, $path, $ip=null ) {
                                        
                                                $akismet_ua = sprintf( 'WordPress/%s | Akismet/%s', $GLOBALS['wp_version'], constant( 'AKISMET_VERSION' ) );
                                                $akismet_ua = apply_filters( 'akismet_ua', $akismet_ua );
                                        
                                        
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language