bcit-ci/CodeIgniter

View on GitHub

Showing 728 of 865 total issues

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

    public function receive()
    {
        foreach (array('url', 'title', 'blog_name', 'excerpt') as $val)
        {
            if (empty($_POST[$val]))
Severity: Minor
Found in system/libraries/Trackback.php - About 1 hr to fix

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

        public function add_field($field)
        {
            if (is_string($field))
            {
                if ($field === 'id')
    Severity: Minor
    Found in system/database/DB_forge.php - About 1 hr to fix

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

          protected function _alter_table($alter_type, $table, $field)
          {
              if ($alter_type === 'DROP')
              {
                  return parent::_alter_table($alter_type, $table, $field);
      Severity: Minor
      Found in system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php - About 1 hr to fix

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

            public function field_data($table)
            {
                $sql = 'SELECT "rfields"."RDB$FIELD_NAME" AS "name",
                        CASE "fields"."RDB$FIELD_TYPE"
                            WHEN 7 THEN \'SMALLINT\'
        Severity: Minor
        Found in system/database/drivers/pdo/subdrivers/pdo_firebird_driver.php - About 1 hr to fix

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

              public function set_update_batch($key, $index = '', $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 _limit has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                protected function _limit($sql)
                {
                    $limit = $this->qb_offset + $this->qb_limit;
            
                    // As of SQL Server 2005 (9.0.*) ROW_NUMBER() is supported,
            Severity: Minor
            Found in system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php - About 1 hr to fix

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

                  public function initialize()
                  {
                      /* If an established connection is available, then there's
                       * no need to connect and select the database.
                       *
              Severity: Minor
              Found in system/database/DB_driver.php - About 1 hr to fix

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

                    protected function _alter_table($alter_type, $table, $field)
                    {
                        if ($alter_type === 'DROP')
                        {
                            return parent::_alter_table($alter_type, $table, $field);
                Severity: Minor
                Found in system/database/drivers/mysql/mysql_forge.php - About 1 hr to fix

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

                      public function field_data($table)
                      {
                          $sql = 'SELECT "rfields"."RDB$FIELD_NAME" AS "name",
                                  CASE "fields"."RDB$FIELD_TYPE"
                                      WHEN 7 THEN \'SMALLINT\'
                  Severity: Minor
                  Found in system/database/drivers/ibase/ibase_driver.php - About 1 hr to fix

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

                        protected function _limit($sql)
                        {
                            $limit = $this->qb_offset + $this->qb_limit;
                    
                            // As of SQL Server 2005 (9.0.*) ROW_NUMBER() is supported,
                    Severity: Minor
                    Found in system/database/drivers/mssql/mssql_driver.php - About 1 hr to fix

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

                          protected function _alter_table($alter_type, $table, $field)
                          {
                              if ($alter_type === 'DROP')
                              {
                                  return parent::_alter_table($alter_type, $table, $field);
                      Severity: Minor
                      Found in system/database/drivers/mysqli/mysqli_forge.php - About 1 hr to fix

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

                            public function dbforge($db = NULL, $return = FALSE)
                            {
                                $CI =& get_instance();
                                if ( ! is_object($db) OR ! ($db instanceof CI_DB))
                                {
                        Severity: Minor
                        Found in system/core/Loader.php - About 1 hr to fix

                          Method default_template has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function default_template()
                              {
                                  return array(
                                      'table_open'                => '<table border="0" cellpadding="4" cellspacing="0">',
                                      'heading_row_start'            => '<tr>',
                          Severity: Minor
                          Found in system/libraries/Calendar.php - About 1 hr to fix

                            Method decode has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function decode($array = NULL)
                                {
                                    $CI =& get_instance();
                            
                                    if (is_array($array))
                            Severity: Minor
                            Found in system/libraries/Xmlrpc.php - About 1 hr to fix

                              Method decode_message has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function decode_message($param)
                                  {
                                      $kind = $param->kindOf();
                              
                                      if ($kind === 'scalar')
                              Severity: Minor
                              Found in system/libraries/Xmlrpc.php - About 1 hr to fix

                                Method mirror has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function mirror($locpath, $rempath)
                                    {
                                        if ( ! $this->_is_conn())
                                        {
                                            return FALSE;
                                Severity: Minor
                                Found in system/libraries/Ftp.php - About 1 hr to fix

                                  Method run has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function run($test, $expected = TRUE, $test_name = 'undefined', $notes = '')
                                      {
                                          if ($this->active === FALSE)
                                          {
                                              return FALSE;
                                  Severity: Minor
                                  Found in system/libraries/Unit_test.php - About 1 hr to fix

                                    Method _reset_data_array has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        protected function _reset_data_array(&$data)
                                        {
                                            foreach ($this->_field_data as $field => $row)
                                            {
                                                if ($row['postdata'] !== NULL)
                                    Severity: Minor
                                    Found in system/libraries/Form_validation.php - About 1 hr to fix

                                      Method xmlrpc_decoder has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function xmlrpc_decoder($xmlrpc_val)
                                          {
                                              $kind = $xmlrpc_val->kindOf();
                                      
                                              if ($kind === 'scalar')
                                      Severity: Minor
                                      Found in system/libraries/Xmlrpc.php - About 1 hr to fix

                                        Method gc has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function gc($maxlifetime)
                                            {
                                                if ( ! is_dir($this->_config['save_path']) OR ($directory = opendir($this->_config['save_path'])) === FALSE)
                                                {
                                                    log_message('debug', "Session: Garbage collector couldn't list files under directory '".$this->_config['save_path']."'.");
                                        Severity: Minor
                                        Found in system/libraries/Session/drivers/Session_files_driver.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language