bcit-ci/CodeIgniter

View on GitHub

Showing 728 of 865 total issues

Method _smtp_connect has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function _smtp_connect()
    {
        if (is_resource($this->_smtp_connect))
        {
            return TRUE;
Severity: Minor
Found in system/libraries/Email.php - About 1 hr to fix

    Method _parse_request_uri has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        protected function _parse_request_uri()
        {
            if ( ! isset($_SERVER['REQUEST_URI'], $_SERVER['SCRIPT_NAME']))
            {
                return '';
    Severity: Minor
    Found in system/core/URI.php - About 1 hr to fix

      Method remove_package_path has 34 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function remove_package_path($path = '')
          {
              $config =& $this->_ci_get_component('config');
      
              if ($path === '')
      Severity: Minor
      Found in system/core/Loader.php - About 1 hr to fix

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

            public function image_reproportion()
            {
                if (($this->width === 0 && $this->height === 0) OR $this->orig_width === 0 OR $this->orig_height === 0
                    OR ( ! ctype_digit((string) $this->width) && ! ctype_digit((string) $this->height))
                    OR ! ctype_digit((string) $this->orig_width) OR ! ctype_digit((string) $this->orig_height))
        Severity: Minor
        Found in system/libraries/Image_lib.php - About 1 hr to fix

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

              public function get_image_properties($path = '', $return = FALSE)
              {
                  // For now we require GD but we should
                  // find a way to determine this using IM or NetPBM
          
          
          Severity: Minor
          Found in system/libraries/Image_lib.php - About 1 hr to fix

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

                public function process($url, $data)
                {
                    $target = parse_url($url);
            
                    // Open the socket
            Severity: Minor
            Found in system/libraries/Trackback.php - About 1 hr to fix

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

                  public function decrypt($data, array $params = NULL)
                  {
                      if (($params = $this->_get_params($params)) === FALSE)
                      {
                          return FALSE;
              Severity: Minor
              Found in system/libraries/Encryption.php - About 1 hr to fix

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

                    public function send($auto_clear = TRUE)
                    {
                        if ( ! isset($this->_headers['From']))
                        {
                            $this->_set_error_message('lang:email_no_from');
                Severity: Minor
                Found in system/libraries/Email.php - About 1 hr to fix

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

                      public function insert_batch($table, $set = NULL, $escape = NULL, $batch_size = 100)
                      {
                          if ($set === NULL)
                          {
                              if (empty($this->qb_set))
                  Severity: Minor
                  Found in system/database/DB_query_builder.php - About 1 hr to fix

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

                        function anchor_popup($uri = '', $title = '', $attributes = FALSE)
                        {
                            $title = (string) $title;
                            $site_url = preg_match('#^(\w+:)?//#i', $uri) ? $uri : site_url($uri);
                    
                    
                    Severity: Minor
                    Found in system/helpers/url_helper.php - About 1 hr to fix

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

                          function word_censor($str, $censored, $replacement = '')
                          {
                              if ( ! is_array($censored))
                              {
                                  return $str;
                      Severity: Minor
                      Found in system/helpers/text_helper.php - About 1 hr to fix

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

                            public function set_insert_batch($key, $value = '', $escape = NULL)
                            {
                                $key = $this->_object_to_array_batch($key);
                        
                                if ( ! is_array($key))
                        Severity: Minor
                        Found in system/database/DB_query_builder.php - About 1 hr to fix

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

                              public function delete_cache($uri = '')
                              {
                                  $CI =& get_instance();
                                  $cache_path = $CI->config->item('cache_path');
                                  if ($cache_path === '')
                          Severity: Minor
                          Found in system/core/Output.php - About 1 hr to fix

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

                                protected function _parse_routes()
                                {
                                    // Turn the segment array into a URI string
                                    $uri = implode('/', $this->uri->segments);
                            
                            
                            Severity: Minor
                            Found in system/core/Router.php - About 1 hr to fix

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

                                  public function show_php_error($severity, $message, $filepath, $line)
                                  {
                                      $templates_path = config_item('error_views_path');
                                      if (empty($templates_path))
                                      {
                              Severity: Minor
                              Found in system/core/Exceptions.php - About 1 hr to fix

                                Method write has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function write($session_id, $session_data)
                                    {
                                        if ( ! isset($this->_memcached, $this->_lock_key))
                                        {
                                            return $this->_failure;
                                Severity: Minor
                                Found in system/libraries/Session/drivers/Session_memcached_driver.php - About 1 hr to fix

                                  Method mark_as_temp has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function mark_as_temp($key, $ttl = 300)
                                      {
                                          $ttl += time();
                                  
                                          if (is_array($key))
                                  Severity: Minor
                                  Found in system/libraries/Session/Session.php - About 1 hr to fix

                                    Method entities_to_ascii has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function entities_to_ascii($str, $all = TRUE)
                                        {
                                            if (preg_match_all('/\&#(\d+)\;/', $str, $matches))
                                            {
                                                for ($i = 0, $s = count($matches[0]); $i < $s; $i++)
                                    Severity: Minor
                                    Found in system/helpers/text_helper.php - About 1 hr to fix

                                      Method _limit has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          protected function _limit($sql)
                                          {
                                              // As of SQL Server 2012 (11.0.*) OFFSET is supported
                                              if (version_compare($this->version(), '11', '>='))
                                              {
                                      Severity: Minor
                                      Found in system/database/drivers/sqlsrv/sqlsrv_driver.php - About 1 hr to fix

                                        Method _limit has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            protected function _limit($sql)
                                            {
                                                // As of SQL Server 2012 (11.0.*) OFFSET is supported
                                                if (version_compare($this->version(), '11', '>='))
                                                {
                                        Severity: Minor
                                        Found in system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language