Showing 3,246 of 4,217 total issues

Method edit has 63 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function edit()
    {
        $a = $this->_get_info();
        if ( ! $a) {
            return _404();
Severity: Major
Found in plugins/content/admin_modules/yf_manage_news.class.php - About 2 hrs to fix

    Method test_decrement has 63 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function test_decrement()
        {
            if ($this->_need_skip_test(__FUNCTION__)) {
                return;
            }
    Severity: Major
    Found in .dev/tests/unit/db/class_db_offline_query_builder_test.Test.php - About 2 hrs to fix

      Method test_increment has 63 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function test_increment()
          {
              if ($this->_need_skip_test(__FUNCTION__)) {
                  return;
              }
      Severity: Major
      Found in .dev/tests/unit/db/class_db_offline_query_builder_test.Test.php - About 2 hrs to fix

        Method test_complex has 63 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function test_complex()
            {
                $this->assertEquals('', common()->_get_error_messages());
        
                $old = $_SERVER['REQUEST_METHOD'];
        Severity: Major
        Found in .dev/tests/unit/class_form_validate_test.Test.php - About 2 hrs to fix

          yf_user_profile has 23 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class yf_user_profile extends yf_module
          {
              /** @var int */
              public $MAX_SHOW_ADS = 10;
              /** @var int */
          Severity: Minor
          Found in plugins/user/modules/yf_user_profile.class.php - About 2 hrs to fix

            Method _process_sub_patterns has 62 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function _process_sub_patterns($text = '', $args = [])
                {
                    if (false === strpos($text, '{') || ! is_array($args)) {
                        return $text;
                    }
            Severity: Major
            Found in plugins/locale/classes/yf_i18n.class.php - About 2 hrs to fix

              Method phone_box has 62 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function phone_box($name = 'phone', $values = [], $selected = '', $extra = [])
                  {
                      if (is_array($name)) {
                          $extra = (array) $extra + $name;
                      } else {
              Severity: Major
              Found in plugins/html/classes/yf_html.class.php - About 2 hrs to fix

                Method select2_box has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function select2_box($name, $values = [], $selected = '', $extra = [])
                    {
                        $css = [];
                        $style = [];
                        if (is_array($name)) {
                Severity: Major
                Found in plugins/html/classes/yf_html.class.php - About 2 hrs to fix

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

                      public function show()
                      {
                          $object = &$this->object;
                          $action = &$this->action;
                          $filter_name = &$this->filter_name;
                  Severity: Major
                  Found in plugins/payment/admin_modules/yf_manage_payment.class.php - About 2 hrs to fix

                    Method rates has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function rates($options = null)
                        {
                            // import options
                            is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
                            // var
                    Severity: Major
                    Found in plugins/payment/classes/yf_payment_api__currency.class.php - About 2 hrs to fix

                      Method _build has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function _build($a, $class_rewrite)
                          {
                              $u = false;
                              if ( ! empty($class_rewrite->BUILD_RULES)) {
                                  foreach ((array) $class_rewrite->BUILD_RULES as $func) {
                      Severity: Major
                      Found in plugins/rewrite/classes/rewrite/yf_rewrite_pattern_yf.class.php - About 2 hrs to fix

                        File yf_make_thumb.class.php has 270 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        <?php
                        
                        /**
                         * Generating thumbs from images handler.
                         *
                        Severity: Minor
                        Found in plugins/common/classes/common/yf_make_thumb.class.php - About 2 hrs to fix

                          Method _process_text has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function _process_text($body = '', $no_smilies = false, $smilies_as_image = false)
                              {
                                  if (empty($body)) {
                                      return '';
                                  }
                          Severity: Major
                          Found in plugins/content/classes/yf_bb_codes.class.php - About 2 hrs to fix

                            Method _view_widget_items has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function _view_widget_items($name_ids = [], $items_configs = [])
                                {
                                    $list_of_hooks = $this->_get_available_widgets_hooks();
                            
                                    $_orig_object = $_GET['object'];
                            Severity: Major
                            Found in plugins/dashboards/admin_modules/yf_manage_dashboards.class.php - About 2 hrs to fix

                              Method test_yf_db_installer_sharding has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function test_yf_db_installer_sharding()
                                  {
                                      $bak['ERROR_AUTO_REPAIR'] = self::db()->ERROR_AUTO_REPAIR;
                                      self::db()->ERROR_AUTO_REPAIR = true;
                              
                              
                              Severity: Major
                              Found in .dev/tests/functional/db/class_db_real_installer_mysql_test.Test.php - About 2 hrs to fix

                                Method _city_select has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function _city_select($params = [])
                                    {
                                        $STPL_NAME = 'register/city_select';
                                        if ( ! empty($params['stpl_name'])) {
                                            $STPL_NAME = $params['stpl_name'];
                                Severity: Major
                                Found in plugins/geo/modules/yf_geo_content.class.php - About 2 hrs to fix

                                  Method _add_bundle has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function _add_bundle($_content, $_params = [])
                                      {
                                          if ( ! $_content) {
                                              return false;
                                          }
                                  Severity: Major
                                  Found in plugins/assets/classes/yf_assets.class.php - About 2 hrs to fix

                                    Method validate has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function validate($options)
                                        {
                                            // import options
                                            is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
                                            // check payment method, type
                                    Severity: Major
                                    Found in plugins/payment/classes/yf_payment_api__provider_remote.class.php - About 2 hrs to fix

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

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

                                        Method _api_user_select_box has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function _api_user_select_box($options = null)
                                            {
                                                // etc
                                                $api = _class('api');
                                                $api->JSON_VULNERABILITY_PROTECTION = false;
                                        Severity: Major
                                        Found in plugins/form2/classes/yf_form_api.class.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language