Showing 3,246 of 4,217 total issues

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

    public function payment($options = null)
    {
        $_ = &$options;
        $is_transaction = isset( $_['is_transaction'] ) ? $_['is_transaction'] : true;
        $_['type_name'] = __FUNCTION__;
Severity: Minor
Found in plugins/payment/classes/yf_payment_api.class.php - About 1 hr to fix

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

        public function view_item()
        {
            if ( ! empty($_GET['id'])) {
                $file_name = urldecode($_GET['id']);
                $file_path = $file_name;
    Severity: Minor
    Found in plugins/sys/admin_modules/yf_file_manager.class.php - About 1 hr to fix

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

          public function _form_options($options)
          {
              if ( ! $this->ENABLE) {
                  return  null;
              }

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

            public function clone_item($params = [])
            {
                if (is_string($params)) {
                    $params = [
                        'table' => $params,
        Severity: Minor
        Found in plugins/sys/classes/yf_admin_methods.class.php - About 1 hr to fix

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

              public function _payout_status_handler($xml)
              {
                  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 __api_response__success has 41 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function __api_response__success($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 stars_select has 41 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

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

                    public function truncate_database($db_name, $extra = [], &$error = false)
                    {
                        if ( ! strlen($db_name)) {
                            $error = 'db_name is empty';
                            return false;
                Severity: Minor
                Found in plugins/db/classes/db/yf_db_utils_mysql.class.php - About 1 hr to fix

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

                      public function add_foreign_key($table, $index_name = '', $fields = [], $ref_table = '', $ref_fields = [], $extra = [], &$error = false)
                      {
                          if (is_array($table)) {
                              $extra = (array) $extra + $table;
                              $table = '';
                  Severity: Minor
                  Found in plugins/db/classes/db/yf_db_utils_driver.class.php - About 1 hr to fix

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

                        public function add_index($table, $index_name = '', $fields = [], $extra = [], &$error = false)
                        {
                            if (is_array($table)) {
                                $extra = (array) $extra + $table;
                                $table = '';
                    Severity: Minor
                    Found in plugins/db/classes/db/yf_db_utils_driver.class.php - About 1 hr to fix

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

                          public function _check_if_need_to_cache()
                          {
                              // Fast implementation of disabling output caching for the current page
                              if (conf('no_output_cache')) {
                                  $this->NO_NEED_TO_CACHE = true;
                      Severity: Minor
                      Found in plugins/cache/classes/yf_output_cache.class.php - About 1 hr to fix

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

                            public function _get_available_widgets_hooks()
                            {
                                if (isset($this->_avail_widgets)) {
                                    return $this->_avail_widgets;
                                }
                        Severity: Minor
                        Found in plugins/common/classes/common/yf_dashboards.class.php - About 1 hr to fix

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

                              public function _unaccent_test2($string = '')
                              {
                                  $transliteration = [
                                      'À' => 'A', 'Á' => 'A', 'Â' => 'A', 'Ã' => 'A', 'Ä' => 'A',
                                      'Å' => 'A', 'Æ' => 'A', 'Ā' => 'A', 'Ą' => 'A', 'Ă' => 'A',
                          Severity: Minor
                          Found in plugins/common/classes/common/yf_utf8_clean.class.php - About 1 hr to fix

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

                                public function _db_get($options)
                                {
                                    $cache = &$this->cache;
                                    $_ = $options;
                                    $_name = $_['name'];

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

                                  public function _perm_str2num($perm = '')
                                  {
                                      $perm_len = strlen(trim($perm));
                                      if ($perm_len > 10 && $perm_len < 9) {
                                          return false;
                              Severity: Minor
                              Found in plugins/ssh/classes/yf_ssh.class.php - About 1 hr to fix

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

                                    public function find_ids()
                                    {
                                        no_graphics(true);
                                        if ( ! $_POST || ! main()->USER_ID || IS_ADMIN != 1/* || !strlen($_POST['param'])*/) {
                                            echo '';
                                Severity: Minor
                                Found in plugins/dynamic/modules/dynamic/yf_dynamic_find.class.php - About 1 hr to fix

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

                                      public function _get_nav_by_item_id($item_id = 0, $cat_items = [], $STPL_NAME = '', $prepare_link_callback = null)
                                      {
                                          if (empty($STPL_NAME)) {
                                              $STPL_NAME = __CLASS__ . '/nav_item';
                                          }
                                  Severity: Minor
                                  Found in plugins/categories/classes/yf_cats.class.php - About 1 hr to fix

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

                                        public function attribute_add()
                                        {
                                            if (main()->is_post()) {
                                                if (empty($_POST['title'])) {
                                                    _re('Title is required');

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

                                          public function _order_step_select_payment($FORCE_DISPLAY_FORM = false)
                                          {
                                              // Show previous form if needed
                                              if (common()->_error_exists() || empty($_POST)) {
                                                  return module('shop')->_order_step_delivery();

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

                                            public function show_items()
                                            {
                                                $cat_info = db()->get('SELECT * FROM ' . db('categories') . ' WHERE name="' . db()->es($_GET['id']) . '" OR id=' . (int) ($_GET['id']));
                                                if ( ! $cat_info) {
                                                    return _e('No such category');
                                        Severity: Minor
                                        Found in plugins/categories/admin_modules/yf_category_editor.class.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language