Showing 3,246 of 4,217 total issues

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

    public function from()
    {
        $sql = '';
        $tables = func_get_args();
        if ( ! count((array) $tables)) {
Severity: Minor
Found in plugins/db/classes/db/yf_db_query_builder_driver.class.php - About 1 hr to fix

    Method whereid has 42 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function whereid()
        {
            $id = func_get_args();
            $pk = '';
            if (count((array) $id) > 1) {
    Severity: Minor
    Found in plugins/db/classes/db/yf_db_query_builder_driver.class.php - About 1 hr to fix

      Method create_trigger has 42 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function create_trigger($name, $table, $trigger_time, $trigger_event, $trigger_body, $extra = [], &$error = false)
          {
              if (strpos($name, '.') !== false) {
                  list($db_name, $name) = explode('.', trim($name));
              }
      Severity: Minor
      Found in plugins/db/classes/db/yf_db_utils_pgsql.class.php - About 1 hr to fix

        Method multi_set has 42 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function multi_set($data = [], $ttl = 0)
            {
                $do_real_work = true;
                if ( ! $this->_driver_ok || $this->NO_CACHE) {
                    $do_real_work = false;
        Severity: Minor
        Found in plugins/cache/classes/yf_cache.class.php - About 1 hr to fix

          Method _drag_tpl_items has 42 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function _drag_tpl_items(&$items)
              {
                  $body = [];
          
                  $form = _class('form2');
          Severity: Minor
          Found in plugins/categories/admin_modules/yf_category_editor.class.php - About 1 hr to fix

            Method category_revision_checkout has 42 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function category_revision_checkout()
                {
                    $type = 'category';
                    $object = 'category_editor';
                    $action = 'edit_item';

              Method _check_words_length has 42 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function _check_words_length($text, $length = 0, $do_encode_email = false)
                  {
                      if (empty($length)) {
                          $length = 60;
                          if (SITE_MAX_WORD_LENGTH != 'SITE_MAX_WORD_LENGTH' && SITE_MAX_WORD_LENGTH != '') {
              Severity: Minor
              Found in classes/yf_utils.class.php - About 1 hr to fix

                Method _preload_data has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function _preload_data()
                    {
                        if ($this->_preload_complete) {
                            return true;
                        }
                Severity: Minor
                Found in plugins/content/classes/yf_bb_codes.class.php - About 1 hr to fix

                  Method save has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function save($output_file = '')
                      {
                          if (empty($this->tmp_img)) {
                              if ( ! $this->SILENT_MODE) {
                                  trigger_error('No temporary image for resizing!', E_USER_WARNING);
                  Severity: Minor
                  Found in plugins/content/classes/yf_resize_images.class.php - About 1 hr to fix

                    Method _get_grid has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function _get_grid($data = [])
                        {
                            foreach ((array) $data as $row_id => $row_items) {
                                $cols = '';
                                if (isset($row_items['cols']) && is_array($row_items['cols'])) {
                    Severity: Minor
                    Found in plugins/dashboards/classes/yf_dashboards2.class.php - About 1 hr to fix

                      Method show has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function show()
                          {
                              css('
                                  #faq-search { padding-top: 20px; }
                                  #faq-items { padding-top: 20px; padding-bottom: 20px; }
                      Severity: Minor
                      Found in plugins/content/modules/yf_faq.class.php - About 1 hr to fix

                        Method test_order8 has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function test_order8()
                            {
                                $jquery_url = _class('assets')->get_asset('jquery', 'js');
                                $url = $jquery_url;
                                $url1 = $url . '?v=1';
                        Severity: Minor
                        Found in .dev/tests/unit/class_assets_test.Test.php - About 1 hr to fix

                          Method test_apply has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function test_apply()
                              {
                                  if ($this->_need_skip_test(__FUNCTION__)) {
                                      return;
                                  }

                            Method _mkdir_m has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function _mkdir_m($dir_name, $dir_mode = 0755, $create_index_htmls = 0, $start_folder = '')
                            {
                                if ( ! $dir_name || ! strlen($dir_name)) {
                                    return 0;
                                }
                            Severity: Minor
                            Found in .dev/useful/pack_zend.php - About 1 hr to fix

                              Consider simplifying this complex logical expression.
                              Open

                                      if (@$_is_response_raw) {
                                          $result = $body;
                                      } else {
                                          switch (true) {
                                              case  @$_is_response_json || strpos($content_type, 'application/json') === 0:
                              Severity: Critical
                              Found in plugins/api/classes/yf_api.class.php - About 1 hr to fix

                                Method check_box has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function check_box($name = '', $value = '', $selected = '', $add_str = '', $extra = [])
                                    {
                                        if (is_array($name)) {
                                            $extra = (array) $extra + $name;
                                            $name = $extra['name'];
                                Severity: Minor
                                Found in plugins/html/classes/yf_html.class.php - About 1 hr to fix

                                  Method time_box2 has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function time_box2($name, $selected = '', $add_str = '', $show_text = 1, $translate = 1)
                                      {
                                          if (is_array($selected)) {
                                              $extra = (array) $extra + $name;
                                              $name = $extra['name'];
                                  Severity: Minor
                                  Found in plugins/html/classes/html/yf_html_datetime.class.php - About 1 hr to fix

                                    Method time_box has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function time_box($selected = '', $name_postfix = '', $add_str = '', $show_text = 1, $translate = 1)
                                        {
                                            if (is_array($selected)) {
                                                $extra = (array) $extra + $name;
                                                $selected = $extra['selected'];
                                    Severity: Minor
                                    Found in plugins/html/classes/html/yf_html_datetime.class.php - About 1 hr to fix

                                      Method _on_validate_ok has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function _on_validate_ok($params = [], $form)
                                          {
                                              $vars_db = $this->_parent->_get_all_vars_from_db();
                                              $found_vars = $this->_parse_sources($params);
                                      
                                      

                                        Method _currency_rates_load has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            protected function _currency_rates_load($options = null)
                                            {
                                                // import options
                                                is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
                                                // var
                                        Severity: Minor
                                        Found in plugins/payment/modules/yf_payment_test.class.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language