Showing 4,217 of 4,217 total issues

Method select has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function select()
    {
        $sql = '';
        $fields = func_get_args();
        if ( ! count((array) $fields) || $fields === []) {
Severity: Minor
Found in plugins/db/classes/db/yf_db_query_builder_driver.class.php - About 1 hr to fix

    Method _show_for has 45 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function _show_for($obj, $id = '')
        {
            $id = $id ?: $_GET['id'];
            $action = $_GET['action'];
            if (preg_match('~^[a-z0-9_]+$~ims', $id)) {
    Severity: Minor
    Found in plugins/docs/modules/yf_docs.class.php - About 1 hr to fix

      Method _hook_side_column has 45 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function _hook_side_column()
          {
              $custom_class_name = 'sample_' . $_GET['action'];
              $custom_obj = _class_safe($custom_class_name);
              $hook_name = __FUNCTION__;
      Severity: Minor
      Found in plugins/docs/modules/yf_docs.class.php - About 1 hr to fix

        Method _get_browser_info has 45 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function _get_browser_info()
            {
                if ( ! empty($_SERVER['HTTP_USER_AGENT'])) {
                    $HTTP_USER_AGENT = $_SERVER['HTTP_USER_AGENT'];
                } elseif ( ! isset($HTTP_USER_AGENT)) {
        Severity: Minor
        Found in plugins/common/classes/common/yf_client_utils.class.php - About 1 hr to fix

          Method view has 45 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function view($params = [])
              {
                  if ( ! is_array($params)) {
                      $params = [];
                  }
          Severity: Minor
          Found in plugins/common/classes/common/yf_dashboards.class.php - About 1 hr to fix

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

                public function edit()
                {
                    if ( ! $this->ENABLED_IMG_EDIT) {
                        return false;
                    }
            Severity: Minor
            Found in plugins/ckeditor/admin_modules/yf_ck_file_browser.class.php - About 1 hr to fix

              Method _skip_by_pattern has 45 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function _skip_by_pattern($path = '', $_type = 'f', $pattern_include = '', $pattern_exclude = '')
                  {
                      if ( ! $path) {
                          return false;
                      }
              Severity: Minor
              Found in plugins/ssh/classes/yf_ssh.class.php - About 1 hr to fix

                Method asset has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function asset($type = '')
                    {
                        session_write_close();
                        no_graphics(true);
                        $name = strtolower(preg_replace('~[^a-z0-9_-]+~ims', '', trim($_GET['id'])));
                Severity: Minor
                Found in plugins/dynamic/modules/dynamic/yf_dynamic_assets.class.php - About 1 hr to fix

                  Method edit_item has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function edit_item()
                      {
                          $item_info = db()->query_fetch('SELECT * FROM ' . db('category_items') . ' WHERE id=' . (int) ($_GET['id']));
                          if ( ! $item_info['id']) {
                              return _e('No such item!');
                  Severity: Minor
                  Found in plugins/categories/admin_modules/yf_category_editor.class.php - About 1 hr to fix

                    Method _after_init_hook has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function _after_init_hook()
                        {
                            $this->PROFILING && $this->_timing[] = [microtime(true), __CLASS__, __FUNCTION__, $this->trace_string(), func_get_args()];
                            $this->events->fire('main.after_init_begin');
                            $this->_check_site_maintenance();
                    Severity: Minor
                    Found in classes/yf_main.class.php - About 1 hr to fix

                      Method get_paths has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function get_paths()
                      {
                          $paths = [
                              'called_path' => rtrim(getcwd(), '/') . '/',
                              'yf_path' => dirname(dirname(__DIR__)) . '/',
                      Severity: Minor
                      Found in .dev/console/yf.php - About 1 hr to fix

                        Method test_from has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

                          Method set_cache has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function set_cache($out_type, $md5, $data = [])
                              {
                                  if ( ! $this->USE_CACHE) {
                                      return false;
                                  }
                          Severity: Minor
                          Found in plugins/assets/classes/yf_assets.class.php - About 1 hr to fix

                            Method request_interkassa has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function request_interkassa()
                                {
                                    // start
                                    db()->begin();
                                    // check operation
                            Severity: Minor
                            Found in plugins/payment/admin_modules/yf_manage_payout.class.php - About 1 hr to fix

                              Method load__cbr_xml has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

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

                                Method load__p24_json has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

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

                                  Method status_interkassa has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function status_interkassa($options = null)
                                      {
                                          // import operation
                                          is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
                                          // provider interkassa
                                  Severity: Minor
                                  Found in plugins/payment/admin_modules/yf_manage_payout.class.php - About 1 hr to fix

                                    Method account has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function account($options = null)
                                        {
                                            // by account_id
                                            $result = $this->get_account__by_id($options);
                                            if ( ! empty($result)) {
                                    Severity: Minor
                                    Found in plugins/payment/classes/yf_payment_api.class.php - About 1 hr to fix

                                      Method load__cashex_json has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

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

                                        Method add_item has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function add_item()
                                            {
                                                $menu_info = db()->get('SELECT * FROM ' . db('menus') . ' WHERE id=' . (int) ($_GET['id']));
                                                if (empty($menu_info['id'])) {
                                                    return _e('No such menu!');
                                        Severity: Minor
                                        Found in plugins/sys/admin_modules/yf_menus_editor.class.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language