Showing 3,246 of 4,217 total issues

yf_api has 21 functions (exceeds 20 allowed). Consider refactoring.
Open

class yf_api
{
    public $API_SSL_VERIFY = true;
    public $JSON_VULNERABILITY_PROTECTION = true;
    public $ROBOT_NONE = true;
Severity: Minor
Found in plugins/api/classes/yf_api.class.php - About 2 hrs to fix

    yf_db_driver has 21 functions (exceeds 20 allowed). Consider refactoring.
    Open

    abstract class yf_db_driver
    {
        abstract protected function __construct(array $params);
    
        /**
    Severity: Minor
    Found in plugins/db/classes/db/yf_db_driver.class.php - About 2 hrs to fix

      yf_manage_dashboards has 21 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class yf_manage_dashboards
      {
          /**
           * Bootstrap CSS classes used to create configurable grid.
           */
      Severity: Minor
      Found in plugins/dashboards/admin_modules/yf_manage_dashboards.class.php - About 2 hrs to fix

        class_rewrite_testing_shared has 21 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class class_rewrite_testing_shared extends yf\tests\wrapper
        {
            private static $host = 'test.dev';
            private static $_bak_settings = [];
        
        
        Severity: Minor
        Found in .dev/tests/rewrite/class_rewrite_testing_shared.php - About 2 hrs to fix

          Method _filter_form_show has 54 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function _filter_form_show($filter, $replace)
              {
                  $order_fields = [
                      'o.operation_id' => 'номер операций',
                      'o.amount' => 'сумма',
          Severity: Major
          Found in plugins/payment/admin_modules/yf_manage_payment_operation.class.php - About 2 hrs to fix

            Method vars has 54 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function vars()
                {
                    $vars = $this->_get_all_vars_from_files();
                    $vars_db = $this->_get_all_vars_from_db();
                    foreach ((array) $vars_db as $source => $a) {
            Severity: Major
            Found in plugins/locale/admin_modules/yf_locale_editor.class.php - About 2 hrs to fix

              Method _check_interkassa has 54 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function _check_interkassa($options = null)
                  {
                      // check operation
                      $operation = $this->_operation($options);
                      // import options
              Severity: Major
              Found in plugins/payment/admin_modules/yf_manage_payout.class.php - About 2 hrs to fix

                Method daterange_select has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function daterange_select($name = '', $desc = '', $extra = [], $replace = [], $form)
                    {
                        if (is_array($desc)) {
                            $extra += $desc;
                            $desc = '';
                Severity: Major
                Found in plugins/form2/classes/form2/yf_form2_daterange.class.php - About 2 hrs to fix

                  Method connect has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function connect()
                      {
                          $this->db_connect_id = mysqli_init();
                          if ( ! $this->db_connect_id || mysqli_connect_errno()) {
                              $this->_connect_error = 'cannot_connect_to_server';
                  Severity: Major
                  Found in plugins/db/classes/db/yf_db_driver_mysqli.class.php - About 2 hrs to fix

                    Method basket has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function basket($params = [])
                        {
                            $STPL_NAME = $params['STPL'] ? $params['STPL'] : 'shop/basket';
                    
                            $basket_contents = module('shop')->_basket_api()->get_all();
                    Severity: Major
                    Found in plugins/shop/modules/shop/yf_shop_basket.class.php - About 2 hrs to fix

                      Method main_layout_html has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function main_layout_html($body = '')
                          {
                              ob_start(); ?>
                      <!DOCTYPE html>
                      <html>
                      Severity: Major
                      Found in .dev/install/install.php - About 2 hrs to fix

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

                            public function show()
                            {
                                $a = $this->_get_page_from_db();
                                if ( ! $a) {
                                    return _404();
                        Severity: Major
                        Found in plugins/static_pages/modules/yf_static_pages.class.php - About 2 hrs to fix

                          Method _user_message has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              protected function _user_message($options = null)
                              {
                                  $url = &$this->url;
                                  // import operation
                                  is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
                          Severity: Major
                          Found in plugins/payment/admin_modules/yf_manage_transfer.class.php - About 2 hrs to fix

                            Method authorize has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function authorize()
                                {
                                    $url = &$this->url;
                                    $url_authorize = $this->_url('authorize');
                                    // class
                            Severity: Major
                            Found in plugins/payment/admin_modules/yf_manage_payment_yandexmoney.class.php - About 2 hrs to fix

                              Method _user_message has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  protected function _user_message($options = null)
                                  {
                                      $url = &$this->url;
                                      // import operation
                                      is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
                              Severity: Major
                              Found in plugins/payment/admin_modules/yf_manage_payment_yandexmoney.class.php - About 2 hrs to fix

                                Method _paths has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function _paths() {
                                        $paths = [
                                            '.',
                                            'plugins',
                                        ];
                                Severity: Major
                                Found in plugins/tpl/classes/tpl/yf_tpl_driver_twig.class.php - About 2 hrs to fix

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

                                      public function _init()
                                      {
                                          // Needed to ensure backtracking still works on big templates (extended from 1 000 000 on 26kb stpl js() parsing)
                                          ini_set('pcre.backtrack_limit', '10000000');
                                  
                                  
                                  Severity: Major
                                  Found in plugins/tpl/classes/yf_tpl.class.php - About 2 hrs to fix

                                    Method _prepare_cond_text has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function _prepare_cond_text($cond = '', $replace = [], $stpl_name = '', $for_right = false)
                                        {
                                            $prepared_array = [];
                                            $cond = str_replace("\t", '', trim($cond));
                                            foreach (explode(' ', $cond) as $val) {
                                    Severity: Major
                                    Found in plugins/tpl/classes/tpl/yf_tpl_driver_yf.class.php - About 2 hrs to fix

                                      Method _user_security_checks has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function _user_security_checks($user_id)
                                          {
                                              $user_id = (int) $user_id;
                                              if ( ! $this->USER_SECURITY_CHECKS || ! $user_id) {
                                                  return false;
                                      Severity: Major
                                      Found in plugins/auth/classes/auth/yf_auth_user.class.php - About 2 hrs to fix

                                        Method _rss_general has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function _rss_general()
                                            {
                                                foreach ((array) module('comments')->COMMENT_LINKS as $key => $value) {
                                                    $where .= 'object_name="' . $key . '"';
                                                    if ($value !== end(module('comments')->COMMENT_LINKS)) {
                                        Severity: Major
                                        Found in plugins/comments/modules/comments/yf_comments_integration.class.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language