Showing 3,246 of 4,217 total issues

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

    public function save()
    {
        $_GET['id'] = (int) ($_GET['id']);
        $update = [
            'ad' => _es($_POST['ad']),
Severity: Minor
Found in plugins/sys/admin_modules/yf_manage_advertising.class.php - About 1 hr to fix

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

        public function _process_includes($string, $replace = [], $name = '')
        {
            $_this = $this;
            $pattern = '/\{(include|include_if_exists)\(\s*["\']{0,1}\s*([@:\w\\/\.]+)\s*["\']{0,1}?\s*[,;]{0,1}\s*([^"\'\)\}]*)\s*["\']{0,1}\s*\)\}/ims';
            $extra = [];
    Severity: Minor
    Found in plugins/tpl/classes/tpl/yf_tpl_driver_yf.class.php - About 1 hr to fix

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

          public function country_box($name = '', $desc = '', $extra = [], $replace = [], $form)
          {
              if (is_array($name)) {
                  $extra = (array) $extra + $name;
                  $name = '';
      Severity: Minor
      Found in plugins/form2/classes/form2/yf_form2_boxes.class.php - About 1 hr to fix

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

            public function _prepare_css_class($default_class = '', $value = '', &$extra)
            {
                $css_class = $default_class;
                if ($extra['badge']) {
                    $badge = is_array($extra['badge']) && isset($extra['badge'][$value]) ? $extra['badge'][$value] : $extra['badge'];
        Severity: Minor
        Found in plugins/form2/classes/yf_form2.class.php - About 1 hr to fix

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

              public function _process_executes($string, array &$replace, $name = '', $params = [])
              {
                  if (empty($string)) {
                      return $string;
                  }
          Severity: Minor
          Found in plugins/tpl/classes/tpl/yf_tpl_driver_yf.class.php - About 1 hr to fix

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

                public function _show_filter()
                {
                    if ( ! in_array($_GET['action'], ['show'])) {
                        return false;
                    }
            Severity: Minor
            Found in plugins/comments/admin_modules/yf_manage_comments.class.php - About 1 hr to fix

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

                  public function send(array $params = [], &$error_message = '')
                  {
                      require_php_lib('sendinblue');
              
                      $error_message = null;
              Severity: Minor
              Found in plugins/email/classes/mail/yf_mail_driver_sendinblue.class.php - About 1 hr to fix

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

                    public function details()
                    {
                        if (empty($_GET['id'])) {
                            return _e('Empty revision id');
                        }
                Severity: Minor
                Found in plugins/db/admin_modules/yf_db_revisions.class.php - About 1 hr to fix

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

                      public function _escape_col_name($name = '')
                      {
                          $name = trim($name);
                          if ( ! strlen($name)) {
                              return false;
                  Severity: Minor
                  Found in plugins/db/classes/db/yf_db_query_builder_driver.class.php - About 1 hr to fix

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

                        public function _model_load($name)
                        {
                            $main = main();
                            $model_class = $name . '_model';
                            $custom_storages = &$main->_custom_class_storages;
                    Severity: Minor
                    Found in plugins/db/classes/yf_db.class.php - About 1 hr to fix

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

                          public function get_user_info()
                          {
                              $access_token = $this->_storage_get('access_token');
                              if ( ! $access_token) {
                                  $access_token = $this->get_access_token();
                      Severity: Minor
                      Found in plugins/oauth/classes/oauth/yf_oauth_driver_vk.class.php - About 1 hr to fix

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

                            public function _set_connect_params($db_host = '', $db_user = '', $db_pswd = null, $db_name = null, $force = false, $params = [])
                            {
                                if (is_array($db_host)) {
                                    $params = $db_host;
                                    $db_host = '';
                        Severity: Minor
                        Found in plugins/db/classes/yf_db.class.php - About 1 hr to fix

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

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

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

                                public function users()
                                {
                                    if (empty($_SESSION[$_GET['object'] . '__users'])) {
                                        $_SESSION[$_GET['object'] . '__users'] = [
                                            'order_by' => 'add_date',

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

                                  public function _hook_widget__stats($params = [])
                                  {
                                      $meta = [
                                          'name' => 'Shop: overall stats',
                                          'desc' => 'Overall shop stats numbers',

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

                                    public function _send_info_to_user($user = [])
                                    {
                                        if (empty($user)) {
                                            return false;
                                        }
                                Severity: Minor
                                Found in plugins/user/modules/yf_get_pswd.class.php - About 1 hr to fix

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

                                      public function checkout_product_revision()
                                      {
                                          $_GET['id'] = (int) ($_GET['id']);
                                          $revision_data = db()->get('SELECT * FROM ' . db('shop_product_revisions') . ' WHERE id=' . $_GET['id']);
                                          if (empty($revision_data)) {

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

                                        public function _recursive_get_children_ids($cat_id = 0, $cat_items = [], $get_sub_children = true, $return_array = false)
                                        {
                                            $children_ids = [];
                                            if (empty($cat_id)) {
                                                return $children_ids;
                                    Severity: Minor
                                    Found in plugins/categories/classes/yf_cats.class.php - About 1 hr to fix

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

                                          public function _quick_menu()
                                          {
                                              $menu = [
                                                  [
                                                      'name' => 'Manage',
                                      Severity: Minor
                                      Found in plugins/user/modules/yf_user_profile.class.php - About 1 hr to fix

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

                                            public function edit()
                                            {
                                                $a = $this->_get_info();
                                                if ( ! $a) {
                                                    return _404();
                                        Severity: Minor
                                        Found in plugins/content/admin_modules/yf_manage_tips.class.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language