Showing 3,246 of 4,217 total issues

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

    public function api_url($options = null, $request_options = null)
    {
        // import options
        is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
        if ( ! empty($_url)) {
Severity: Minor
Found in plugins/payment/classes/yf_payment_api__provider_remote.class.php - About 1 hr to fix

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

        protected function _sign_webmoney()
        {
            $form = '';
            $api = _class('payment_api__provider_webmoney');
            // test signature
    Severity: Minor
    Found in plugins/payment/modules/yf_payment_test.class.php - About 1 hr to fix

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

          public function prefetch_center()
          {
              $block_name = 'center_area';
              if ( ! isset($this->_blocks_infos)) {
                  $this->_blocks_infos = main()->get_data('blocks_all');
      Severity: Minor
      Found in plugins/sys/classes/yf_core_blocks.class.php - About 1 hr to fix

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

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

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

              public function _get_dir_contents($abs_dir_name)
              {
                  $contents = [
                      'dirs' => [],
                      'files' => [],
          Severity: Minor
          Found in plugins/sys/admin_modules/yf_file_manager.class.php - About 1 hr to fix

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

                public function api_request__X2($options = null)
                {
                    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 _i18n_wrapper has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function _i18n_wrapper($input = '', $replace = [])
                  {
                      if ( ! strlen($input)) {
                          return '';
                      }
              Severity: Minor
              Found in plugins/tpl/classes/yf_tpl.class.php - About 1 hr to fix

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

                    public function _debug_get_vars($string = '')
                    {
                        $not_replaced = [];
                        $patterns = [
                            '/\{([a-z0-9\_]{1,64})\}/ims',
                Severity: Minor
                Found in plugins/tpl/classes/tpl/yf_tpl_driver_yf.class.php - About 1 hr to fix

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

                      public function tpl_row($type = 'input', $replace = [], $name = '', $desc = '', $extra = [])
                      {
                          $name = trim($name);
                          if ($name && $name[0] == '%') {
                              $_name = substr($name, 1);
                  Severity: Minor
                  Found in plugins/form2/classes/yf_form2.class.php - About 1 hr to fix

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

                        public function _show_filter()
                        {
                            $filters = [
                                'show' => function ($filter_name, $replace) {
                                    $fields = ['id', 'date', 'query_method', 'query_table', 'ip', 'user_id'];
                    Severity: Minor
                    Found in plugins/db/admin_modules/yf_db_revisions.class.php - About 1 hr to fix

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

                          public function show()
                          {
                              $blocks = main()->get_data('blocks_all');
                              foreach ((array) $blocks as $_id => $_info) {
                                  if ($_info['type'] == 'admin' && $_info['name'] == 'center_area') {
                      Severity: Minor
                      Found in plugins/admin/admin_modules/yf_admin_groups.class.php - About 1 hr to fix

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

                            public function _render_debug_info(&$params, $ts = 0, $trace = '')
                            {
                                if ( ! DEBUG_MODE) {
                                    return false;
                                }
                        Severity: Minor
                        Found in plugins/table2/classes/yf_table2.class.php - About 1 hr to fix

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

                              public function _render_auto(&$params, &$data)
                              {
                                  if ($params['auto'] && $data) {
                                      $field_names = array_keys((array) current((array) $data));
                                      $skip_fields = [];
                          Severity: Minor
                          Found in plugins/table2/classes/yf_table2.class.php - About 1 hr to fix

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

                                public function _hook_widget__latest_sold_products($params = [])
                                {
                                    $meta = [
                                        'name' => 'Shop: latest sold products',
                                        'desc' => 'List of latest sold products',

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

                                  public function lock($resource, $ttl)
                                  {
                                      $this->init_instances();
                              
                                      $token = uniqid();
                              Severity: Minor
                              Found in plugins/redis/classes/yf_wrapper_redlock.class.php - About 1 hr to fix

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

                                    protected function _api_upload_item()
                                    {
                                        $sub_action = $_GET['sub_action'];
                                        if ($this->is_post) {
                                            $post = json_decode(file_get_contents('php://input'), true);

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

                                      public function clear_pattern_list()
                                      {
                                          if ( ! isset($_GET['id']) && (int) ($_GET['id'])) {
                                              return t('Empty clear pattern ID');
                                          }

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

                                        public function _form($data)
                                        {
                                            $_class_price = $this->_class_price;
                                            list($total, $preview) = $data;
                                            $replace = [

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

                                          public function new_revision($function, $ids, $db_table)
                                          {
                                              if (empty($function) || empty($ids) || empty($db_table)) {
                                                  return false;
                                              }
                                      Severity: Minor
                                      Found in plugins/shop/admin_modules/yf_manage_shop_revisions.class.php - About 1 hr to fix

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

                                            public function details()
                                            {
                                                $sql = 'SELECT * FROM ' . db('shop_revisions') . ' WHERE id=' . (int) ($_GET['id']);
                                                $a = db()->get($sql);
                                                if (empty($a)) {
                                        Severity: Minor
                                        Found in plugins/shop/admin_modules/yf_manage_shop_revisions.class.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language