Showing 3,246 of 4,217 total issues

Method form_row has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function form_row($content, $extra = [], $replace = [], $form)
    {
        $row_start =
            '<div>' . PHP_EOL
                . ($extra['desc'] && ! $extra['no_label'] ? '<label for="' . $extra['id'] . '">' . t($extra['desc']) . '</label>' . PHP_EOL : '')
Severity: Minor
Found in plugins/html/classes/html5fw/yf_html5fw_empty.class.php - About 1 hr to fix

    Method list_box has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function list_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 _balance_recharge has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function _balance_recharge($request, $options)
          {
              $api = _class('api');
              $payment_api = _class('payment_api');
              $balance = $payment_api->deposition_user($request);
      Severity: Minor
      Found in plugins/payment/modules/yf_payment.class.php - About 1 hr to fix

        Method _cancel has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function _cancel($request, $options)
            {
                $api = _class('api');
                $payment_api = _class('payment_api');
                $object = $payment_api->cancel_user($request);
        Severity: Minor
        Found in plugins/payment/modules/yf_payment.class.php - About 1 hr to fix

          Method update has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function update($options = null)
              {
                  // import options
                  is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
                  if ( ! @$_provider || ! @$_currency_rate) {
          Severity: Minor
          Found in plugins/payment/classes/yf_payment_api__currency.class.php - About 1 hr to fix

            Method _init has 26 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function _init()
                {
                    // class
                    $this->payment_api = _class('payment_api');
                    $this->manage_payment_lib = module('manage_payment_lib');
            Severity: Minor
            Found in plugins/payment/admin_modules/yf_manage_payment.class.php - About 1 hr to fix

              Method api_request__checkout_b has 26 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function api_request__checkout_b($options = null)
                  {
                      // get business account_id
                      list($status, $account) = $this->api_request('account');
                      if (empty($status)

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

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

                  Method find_active_modules has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function find_active_modules($section = 'all')
                      {
                          if ( ! in_array($section, ['all', 'user', 'admin'])) {
                              $section = 'all';
                          }
                  Severity: Minor
                  Found in plugins/sys/classes/yf_admin_methods.class.php - About 1 hr to fix

                    Method _get_menu_items has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function _get_menu_items($cur_menu_info)
                        {
                            $menu_id = $cur_menu_info['id'];
                            $menu_name = $cur_menu_info['name'];
                            if ( ! isset($this->_menu_items)) {
                    Severity: Minor
                    Found in plugins/sys/classes/yf_core_menu.class.php - About 1 hr to fix

                      Method region_box has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function region_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 container has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

                          Method language_box has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function language_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 _login_with_prev_info has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function _login_with_prev_info()
                                {
                                    $prev_info = $_SESSION['admin_prev_info'];
                                    if ( ! $prev_info || ! $prev_info[$this->VAR_ADMIN_ID] || ! $prev_info[$this->VAR_ADMIN_GROUP_ID]) {
                                        if ( ! empty($this->URL_WRONG_LOGIN)) {
                            Severity: Minor
                            Found in plugins/auth/classes/auth/yf_auth_admin.class.php - About 1 hr to fix

                              Method show_docs has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function show_docs(array $info)
                                  {
                                      $tests = '';
                                      if ($info['is_func']) {
                                          $tests = _class('core_api')->get_function_tests($info['name']);
                              Severity: Minor
                              Found in plugins/sys/classes/yf_core_api.class.php - About 1 hr to fix

                                Method currency_box has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function currency_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 edit has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function edit()
                                      {
                                          $replace = _class('admin_methods')->edit($this->_table);
                                          $data = [];
                                          if ($replace['linked_data']) {
                                  Severity: Minor
                                  Found in plugins/conf/admin_modules/yf_manage_conf.class.php - About 1 hr to fix

                                    Method alter_column has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function alter_column($table, $col_name, $data, $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 _show_filter has 26 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/db/admin_modules/yf_manage_revisions.class.php - About 1 hr to fix

                                        Method list_events has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function list_events($db_name = '', $extra = [], &$error = false)
                                            {
                                                if ( ! $db_name) {
                                                    $db_name = $this->db->DB_NAME;
                                                }
                                        Severity: Minor
                                        Found in plugins/db/classes/db/yf_db_utils_mysql.class.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language