bcit-ci/CodeIgniter

View on GitHub

Showing 728 of 865 total issues

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

    public function initialize(array $params)
    {
        if ( ! empty($params['driver']))
        {
            if (isset($this->_drivers[$params['driver']]))
Severity: Minor
Found in system/libraries/Encryption.php - About 1 hr to fix

    Method convert_ascii has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function convert_ascii($str)
        {
            $count    = 1;
            $out    = '';
            $temp    = array();
    Severity: Minor
    Found in system/libraries/Trackback.php - About 1 hr to fix

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

          public function __construct(&$params)
          {
              parent::__construct($params);
      
              $CI =& get_instance();
      Severity: Minor
      Found in system/libraries/Session/drivers/Session_database_driver.php - About 1 hr to fix

        Method _get_field_type has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private static function _get_field_type($type)
            {
                static $map;
                isset($map) OR $map = array(
                    MYSQLI_TYPE_DECIMAL     => 'decimal',
        Severity: Minor
        Found in system/database/drivers/mysqli/mysqli_result.php - About 1 hr to fix

          Method random_string has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function random_string($type = 'alnum', $len = 8)
              {
                  switch ($type)
                  {
                      case 'basic':
          Severity: Minor
          Found in system/helpers/string_helper.php - About 1 hr to fix

            Method from has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function from($from)
                {
                    foreach ((array) $from as $val)
                    {
                        if (strpos($val, ',') !== FALSE)
            Severity: Minor
            Found in system/database/DB_query_builder.php - About 1 hr to fix

              Method _parse_form_attributes has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function _parse_form_attributes($attributes, $default)
                  {
                      if (is_array($attributes))
                      {
                          foreach ($default as $key => $val)
              Severity: Minor
              Found in system/helpers/form_helper.php - About 1 hr to fix

                Method insert_id has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function insert_id()
                    {
                        $v = $this->version();
                
                        $table    = (func_num_args() > 0) ? func_get_arg(0) : NULL;
                Severity: Minor
                Found in system/database/drivers/postgre/postgre_driver.php - About 1 hr to fix

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

                      public function __construct(CI_Config $config)
                      {
                          $this->config = $config;
                  
                          // If it's a CLI request, ignore the configuration
                  Severity: Minor
                  Found in system/core/URI.php - About 1 hr to fix

                    Method show_error has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function show_error($heading, $message, $template = 'error_general', $status_code = 500)
                        {
                            $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 set_cookie has 9 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          function set_cookie($name, $value = '', $expire = 0, $domain = '', $path = '/', $prefix = '', $secure = NULL, $httponly = NULL, $samesite = NULL)
                      Severity: Major
                      Found in system/helpers/cookie_helper.php - About 1 hr to fix

                        Method set_cookie has 9 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            public function set_cookie($name, $value = '', $expire = 0, $domain = '', $path = '/', $prefix = '', $secure = NULL, $httponly = NULL, $samesite = NULL)
                        Severity: Major
                        Found in system/core/Input.php - About 1 hr to fix

                          Method format_characters has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function format_characters($str)
                              {
                                  static $table;
                          
                                  if ( ! isset($table))
                          Severity: Minor
                          Found in system/libraries/Typography.php - About 1 hr to fix

                            Method attach has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function attach($file, $disposition = '', $newname = NULL, $mime = '')
                                {
                                    if ($mime === '')
                                    {
                                        if (strpos($file, '://') === FALSE && ! file_exists($file))
                            Severity: Minor
                            Found in system/libraries/Email.php - About 1 hr to fix

                              Method result has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function result($results = array())
                                  {
                                      $CI =& get_instance();
                                      $CI->load->language('unit_test');
                              
                              
                              Severity: Minor
                              Found in system/libraries/Unit_test.php - About 1 hr to fix

                                Method _cipher_alias has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    protected function _cipher_alias(&$cipher)
                                    {
                                        static $dictionary;
                                
                                        if (empty($dictionary))
                                Severity: Minor
                                Found in system/libraries/Encryption.php - About 1 hr to fix

                                  Method img has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function img($src = '', $index_page = FALSE, $attributes = '')
                                      {
                                          if ( ! is_array($src) )
                                          {
                                              $src = array('src' => $src);
                                  Severity: Minor
                                  Found in system/helpers/html_helper.php - About 1 hr to fix

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

                                        public function __construct()
                                        {
                                            $config =& get_config();
                                    
                                            isset(self::$func_overload) OR self::$func_overload = ( ! is_php('8.0') && extension_loaded('mbstring') && @ini_get('mbstring.func_overload'));
                                    Severity: Minor
                                    Found in system/core/Log.php - About 1 hr to fix

                                      Method byte_format has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function byte_format($num, $precision = 1)
                                          {
                                              $CI =& get_instance();
                                              $CI->lang->load('number');
                                      
                                      
                                      Severity: Minor
                                      Found in system/helpers/number_helper.php - About 1 hr to fix

                                        Method driver has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function driver($library, $params = NULL, $object_name = NULL)
                                            {
                                                if (is_array($library))
                                                {
                                                    foreach ($library as $key => $value)
                                        Severity: Minor
                                        Found in system/core/Loader.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language