CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Method export_to_file has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function export_to_file($filename) {
        $fh = fopen($filename, 'wb');
        if ( !$fh ) return false;
        $entries = array_filter($this->entries, create_function('$e', 'return !empty($e->translations);'));
        ksort($entries);
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-includes/pomo/mo.php - About 1 hr to fix

    Method init has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function init () {
        if ( defined('MAGPIE_INITALIZED') ) {
            return;
        }
        else {
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-includes/rss.php - About 1 hr to fix

      Method build_time_query has 37 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function build_time_query( $column, $compare, $hour = null, $minute = null, $second = null ) {
              global $wpdb;
      
              // Have to have at least one
              if ( ! isset( $hour ) && ! isset( $minute ) && ! isset( $second ) )
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/date.php - About 1 hr to fix

        Method feed_end_element has 37 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function feed_end_element ($p, $el) {
                $el = strtolower($el);
        
                if ( $el == 'item' or $el == 'entry' )
                {
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/rss.php - About 1 hr to fix

          Method sanitize_email has 37 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function sanitize_email( $email ) {
              // Test for the minimum length the email can be
              if ( strlen( $email ) < 3 ) {
                  return apply_filters( 'sanitize_email', '', $email, 'email_too_short' );
              }
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/formatting.php - About 1 hr to fix

            Method wp_sprintf has 37 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function wp_sprintf( $pattern ) {
                $args = func_get_args( );
                $len = strlen($pattern);
                $start = 0;
                $result = '';
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-includes/formatting.php - About 1 hr to fix

              Method comments_popup_link has 37 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function comments_popup_link( $zero = false, $one = false, $more = false, $css_class = '', $none = false ) {
                  global $id, $wpcommentspopupfile, $wpcommentsjavascript, $post;
              
                  if ( false === $zero ) $zero = __( 'No Comments' );
                  if ( false === $one ) $one = __( '1 Comment' );
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-includes/comment-template.php - About 1 hr to fix

                Method sanitize_header has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    private function sanitize_header( $header, $value ) {
                        switch ( $header ) {
                            case 'Status' :
                                if ( ! $value ) {
                                    $value = 'publish';
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-includes/class-wp-theme.php - About 1 hr to fix

                  Method update_option has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function update_option( $option, $value ) {
                      global $wpdb;
                  
                      $option = trim($option);
                      if ( empty($option) )
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/option.php - About 1 hr to fix

                    Method add_option has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function add_option( $option, $value = '', $deprecated = '', $autoload = 'yes' ) {
                        global $wpdb;
                    
                        if ( !empty( $deprecated ) )
                            _deprecated_argument( __FUNCTION__, '2.3' );
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/option.php - About 1 hr to fix

                      Method wp_get_sites has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function wp_get_sites( $args = array() ) {
                          global $wpdb;
                      
                          if ( wp_is_large_network() )
                              return array();
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/ms-functions.php - About 1 hr to fix

                        Method update_blog_status has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function update_blog_status( $blog_id, $pref, $value, $deprecated = null ) {
                            global $wpdb;
                        
                            if ( null !== $deprecated  )
                                _deprecated_argument( __FUNCTION__, '3.1' );
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-includes/ms-blogs.php - About 1 hr to fix

                          Method getXml has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function getXml() {
                                  /* Return XML for this value */
                                  switch ($this->type) {
                                      case 'boolean':
                                          return '<boolean>'.(($this->data) ? '1' : '0').'</boolean>';
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/class-IXR.php - About 1 hr to fix

                            Method processHeaders has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public static function processHeaders( $headers, $url = '' ) {
                                    // split headers, one per array element
                                    if ( is_string($headers) ) {
                                        // tolerate line terminator: CRLF = LF (RFC 2616 19.3)
                                        $headers = str_replace("\r\n", "\n", $headers);
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-includes/class-http.php - About 1 hr to fix

                              Method SmtpConnect has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                function SmtpConnect() {
                                  if($this->smtp == NULL) {
                                    $this->smtp = new SMTP();
                                  }
                              
                              
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-includes/class-phpmailer.php - About 1 hr to fix

                                Method get_pagenum_link has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function get_pagenum_link($pagenum = 1) {
                                    global $wp_rewrite;
                                
                                    $pagenum = (int) $pagenum;
                                
                                
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-includes/link-template.php - About 1 hr to fix

                                  Method EncodeQP has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    function EncodeQP( $input = '', $line_max = 76, $space_conv = false ) {
                                      $hex = array('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F');
                                      $lines = preg_split('/(?:\r\n|\r|\n)/', $input);
                                      $eol = "\r\n";
                                      $escape = '=';
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-includes/class-phpmailer.php - About 1 hr to fix

                                    Method AttachAll has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      function AttachAll() {
                                        /* Return text of body */
                                        $mime = array();
                                    
                                        /* Add all attachments */
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-includes/class-phpmailer.php - About 1 hr to fix

                                      Function inject has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        window.inject = angular.mock.inject = function() {
                                          var blockFns = Array.prototype.slice.call(arguments, 0);
                                          var errorForStack = new Error('Declaration Location');
                                          return isSpecRunning() ? workFn.call(currentSpec) : workFn;
                                          /////////////////////
                                      Severity: Minor
                                      Found in Web.Admin/z-scripts/angular-mocks.js - About 1 hr to fix

                                        Function enter has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                enter: function( callback ) {
                                        
                                                    fullscreen.beforeEnter(function() {
                                        
                                                        callback = fullscreen.parseCallback( callback, true );
                                        Severity: Minor
                                        Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language