Showing 3,246 of 4,217 total issues

Method _get_available_widgets_hooks has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function _get_available_widgets_hooks($for_section = 'admin')
    {
        if ( ! in_array($for_section, ['user', 'admin'])) {
            $for_section = 'admin';
        }
Severity: Minor
Found in plugins/dashboards/admin_modules/yf_manage_dashboards.class.php - About 1 hr to fix

    Method test_validate_custom_error has 46 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function test_validate_custom_error()
        {
            $_SERVER['REQUEST_METHOD'] = 'POST';
            $params = ['do_not_remove_errors' => 1];
    
    
    Severity: Minor
    Found in .dev/tests/functional/class_form_real_test.Test.php - About 1 hr to fix

      Method _user_message has 45 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          protected function _user_message($options = null)
          {
              $url = &$this->url;
              // import operation
              is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
      Severity: Minor
      Found in plugins/payment/admin_modules/yf_manage_deposit.class.php - About 1 hr to fix

        Method button_box has 45 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function button_box($name, $values = [], $selected = '', $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 _status has 45 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function _status($options = null)
              {
                  // check operation
                  $operation = $this->_operation($options);
                  // import options
          Severity: Minor
          Found in plugins/payment/admin_modules/yf_manage_payout.class.php - About 1 hr to fix

            Method _show_filter has 45 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function _show_filter()
                {
                    $object = &$this->object;
                    $action = &$this->action;
                    $filter_name = &$this->filter_name;
            Severity: Minor
            Found in plugins/payment/admin_modules/yf_manage_payment.class.php - About 1 hr to fix

              Method interkassa_detect_card has 45 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function interkassa_detect_card($options = null)
                  {
                      // import options
                      is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
                      if (empty($_card)) {
              Severity: Minor
              Found in plugins/payment/admin_modules/yf_manage_payout.class.php - About 1 hr to fix

                Method _object_update has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    protected function _object_update($name, $data, $options = null)
                    {
                        if (empty($name)) {
                            return  null;
                        }
                Severity: Minor
                Found in plugins/payment/classes/yf_payment_api.class.php - About 1 hr to fix

                  Method __api_response__check has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function __api_response__check($operation_id, $response)
                      {
                          if ( ! $this->ENABLE) {
                              return  null;
                          }
                  Severity: Minor
                  Found in plugins/payment/classes/yf_payment_api__provider_webmoney.class.php - About 1 hr to fix

                    Method edit_rule has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function edit_rule()
                        {
                            $rule_info = db()->get('SELECT * FROM ' . db('block_rules') . ' WHERE id=' . (int) ($_GET['id']));
                            if (empty($rule_info['id'])) {
                                return _e('No such rule!');
                    Severity: Minor
                    Found in plugins/sys/admin_modules/yf_blocks.class.php - About 1 hr to fix

                      Method _get_cached_paths has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function _get_cached_paths()
                          {
                              $cache_name = __FUNCTION__ . '_' . MAIN_TYPE;
                              if (isset($this->$cache_name)) {
                                  return $this->$cache_name;
                      Severity: Minor
                      Found in plugins/tpl/classes/yf_tpl.class.php - About 1 hr to fix

                        Method _ckeditor_html has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function _ckeditor_html($extra = [], $replace = [], $form)
                            {
                                if ( ! is_array($extra)) {
                                    return '';
                                }
                        Severity: Minor
                        Found in plugins/form2/classes/form2/yf_form2_ckeditor.class.php - About 1 hr to fix

                          Method _sql_to_array has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function _sql_to_array($return_raw = false, $sql_data = null)
                              {
                                  if ( ! isset($sql_data)) {
                                      $sql_data = &$this->_sql;
                                  }
                          Severity: Minor
                          Found in plugins/db/classes/db/yf_db_query_builder_driver.class.php - About 1 hr to fix

                            Method select has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

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

                              Method _show_for has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function _show_for($obj, $id = '')
                                  {
                                      $id = $id ?: $_GET['id'];
                                      $action = $_GET['action'];
                                      if (preg_match('~^[a-z0-9_]+$~ims', $id)) {
                              Severity: Minor
                              Found in plugins/docs/modules/yf_docs.class.php - About 1 hr to fix

                                Method _hook_side_column has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function _hook_side_column()
                                    {
                                        $custom_class_name = 'sample_' . $_GET['action'];
                                        $custom_obj = _class_safe($custom_class_name);
                                        $hook_name = __FUNCTION__;
                                Severity: Minor
                                Found in plugins/docs/modules/yf_docs.class.php - About 1 hr to fix

                                  Method _get_browser_info has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function _get_browser_info()
                                      {
                                          if ( ! empty($_SERVER['HTTP_USER_AGENT'])) {
                                              $HTTP_USER_AGENT = $_SERVER['HTTP_USER_AGENT'];
                                          } elseif ( ! isset($HTTP_USER_AGENT)) {
                                  Severity: Minor
                                  Found in plugins/common/classes/common/yf_client_utils.class.php - About 1 hr to fix

                                    Method view has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function view($params = [])
                                        {
                                            if ( ! is_array($params)) {
                                                $params = [];
                                            }
                                    Severity: Minor
                                    Found in plugins/common/classes/common/yf_dashboards.class.php - About 1 hr to fix

                                      Method edit has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function edit()
                                          {
                                              if ( ! $this->ENABLED_IMG_EDIT) {
                                                  return false;
                                              }
                                      Severity: Minor
                                      Found in plugins/ckeditor/admin_modules/yf_ck_file_browser.class.php - About 1 hr to fix

                                        Method _skip_by_pattern has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function _skip_by_pattern($path = '', $_type = 'f', $pattern_include = '', $pattern_exclude = '')
                                            {
                                                if ( ! $path) {
                                                    return false;
                                                }
                                        Severity: Minor
                                        Found in plugins/ssh/classes/yf_ssh.class.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language