Showing 3,246 of 4,217 total issues

Method test_table_info has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function test_table_info()
    {
        if ($this->_need_skip_test(__FUNCTION__)) {
            return;
        }
Severity: Minor
Found in .dev/tests/functional/db/class_db_real_utils_mysql_test.Test.php - About 1 hr to fix

    Method test_increment_decrement has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function test_increment_decrement()
        {
            if ($this->_need_skip_test(__FUNCTION__)) {
                return;
            }

      Method test_dump has 37 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function test_dump()
          {
              if ($this->_need_skip_test(__FUNCTION__)) {
                  return;
              }

        Method media_objects has 36 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function media_objects($data = [], $extra = [])
            {
                $extra['id'] = $extra['id'] ?: __FUNCTION__ . '_' . ++$this->_ids[__FUNCTION__];
                if ($data) {
                    $data = $this->_recursive_sort_items($data);
        Severity: Minor
        Found in plugins/html/classes/yf_html.class.php - About 1 hr to fix

          Method carousel has 36 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function carousel($data = [], $extra = [])
              {
                  $extra['id'] = $extra['id'] ?: __FUNCTION__ . '_' . ++$this->_ids[__FUNCTION__];
                  $items = [];
                  $headers = [];
          Severity: Minor
          Found in plugins/html/classes/yf_html.class.php - About 1 hr to fix

            Method _init has 36 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_operation.class.php - About 1 hr to fix

              Method transaction has 36 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function transaction()
                  {
                      $payment_api = _class('payment_api');
                      // var
                      $result = [];
              Severity: Minor
              Found in plugins/payment/modules/yf_payment_test.class.php - About 1 hr to fix

                Method _confirmation_update_expired has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function _confirmation_update_expired()
                    {
                        // var
                        $payment_api = _class('payment_api');
                        // update status only in_progress
                Severity: Minor
                Found in plugins/payment/admin_modules/yf_manage_payout.class.php - About 1 hr to fix

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

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

                    Method mass_payout has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function mass_payout($options = null)
                        {
                            $operation_id = $this->_get_operation_id($options);
                            is_numeric($operation_id) && $operation_id = [$operation_id => 1];
                            if ( ! is_array($operation_id)) {
                    Severity: Minor
                    Found in plugins/payment/admin_modules/yf_manage_payout.class.php - About 1 hr to fix

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

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

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

                            public function _form($data, $options = null)
                            {
                                if ( ! $this->ENABLE) {
                                    return  null;
                                }

                          Method api_request has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

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

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

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

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

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

                                    public function update(array $data, $params = [])
                                    {
                                        $table = $params['table'] ?: $this->get_table();
                                        if ( ! $table) {
                                            return false;
                                Severity: Minor
                                Found in plugins/db/classes/db/yf_db_query_builder_driver.class.php - About 1 hr to fix

                                  Method _sql_part_to_array has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function _sql_part_to_array($part, $data = null, $config = null, $return_raw = false)
                                      {
                                          if ( ! $part) {
                                              return false;
                                          }
                                  Severity: Minor
                                  Found in plugins/db/classes/db/yf_db_query_builder_driver.class.php - About 1 hr to fix

                                    Method list_indexes has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function list_indexes($table, $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 footer_submit has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function footer_submit($name = '', $extra = [])
                                          {
                                              if (is_array($name)) {
                                                  $extra = $name;
                                                  $name = $extra['name'];
                                      Severity: Minor
                                      Found in plugins/table2/classes/yf_table2.class.php - About 1 hr to fix

                                        Method create has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function create($cloud_data = [], $params = [])
                                            {
                                                if (empty($cloud_data)) {
                                                    return '';
                                                }
                                        Severity: Minor
                                        Found in plugins/common/classes/common/yf_common_tags_cloud.class.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language