Showing 3,246 of 4,217 total issues

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

    public function show()
    {
        if ( ! main()->TRACK_ONLINE_STATUS) {
            return t('online users tracking is disabled');
        }
Severity: Minor
Found in plugins/user/admin_modules/yf_watch_online_users.class.php - About 1 hr to fix

    Method _show_key_val_table has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function _show_key_val_table($a, $params = [], $name = '')
        {
            if ( ! $a) {
                return false;
            }
    Severity: Minor
    Found in classes/yf_debug.class.php - About 1 hr to fix

      Method _load_data_handlers has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function _load_data_handlers()
          {
              $this->PROFILING && $this->_timing[] = [microtime(true), __CLASS__, __FUNCTION__, $this->trace_string(), func_get_args()];
              if ($this->_data_handlers_loaded) {
                  return false;
      Severity: Minor
      Found in classes/yf_main.class.php - About 1 hr to fix

        Method getset has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function getset($name, callable $func, $ttl = 0, array $params = [])
            {
                if ( ! is_string($name) || ! $name) {
                    return null;
                }
        Severity: Minor
        Found in classes/yf_main.class.php - About 1 hr to fix

          Method _get_info has 30 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function _get_info($id = null, $lang = null)
              {
                  $id = isset($id) ? $id : $_GET['id'];
                  $lang = isset($lang) ? $lang : $_GET['page'];
                  $a = db()->from(self::table)
          Severity: Minor
          Found in plugins/content/admin_modules/yf_manage_tips.class.php - About 1 hr to fix

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

                public function show()
                {
                    $id = preg_replace('~[^a-z0-9_-]+~ims', '', $_GET['id']);
                    if (strlen($id)) {
                        if (substr($id, 0, strlen('table2_')) === 'table2_') {
            Severity: Minor
            Found in .dev/samples/classes/sample_table.class.php - About 1 hr to fix

              Method _helper_add_config has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function _helper_add_config($libs = [], $types = ['js', 'css'])
                  {
                      _class('assets')->clean_all();
                      foreach ($libs as $name => $config) {
                          foreach ($types as $type) {
              Severity: Minor
              Found in .dev/tests/unit/class_assets_test.Test.php - About 1 hr to fix

                Method test_scopes has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function test_scopes()
                    {
                        $model_base = _class('model');
                        eval(
                <<<'ND'
                Severity: Minor
                Found in .dev/tests/functional/model/class_model_basic_test.Test.php - About 1 hr to fix

                  Method test_select_check_wrong_input has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function test_select_check_wrong_input()
                      {
                          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 update has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function update()
                        {
                            $url = &$this->url;
                            // command line interface
                            $is_cli = (php_sapi_name() == 'cli');
                    Severity: Minor
                    Found in plugins/payment/admin_modules/yf_manage_currency.class.php - About 1 hr to fix

                      Method _sign_privat24 has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          protected function _sign_privat24()
                          {
                              $form = '';
                              $api = _class('payment_api__provider_privat24');
                              // test signature
                      Severity: Minor
                      Found in plugins/payment/modules/yf_payment_test.class.php - About 1 hr to fix

                        Method _sign_YandexMoney has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            protected function _sign_YandexMoney()
                            {
                                $form = '';
                                $api = _class('payment_api__provider_yandexmoney');
                                /*
                        Severity: Minor
                        Found in plugins/payment/modules/yf_payment_test.class.php - About 1 hr to fix

                          Method mail_copy has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

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

                            Method ip_check has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                protected function ip_check()
                                {
                                    $api = _class('payment_api__provider_remote');
                                    $api->ENABLE = true;
                                    // $api = _class( 'api' );
                            Severity: Minor
                            Found in plugins/payment/modules/yf_payment_test.class.php - About 1 hr to fix

                              Method _get_wallet has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function _get_wallet($options)
                                  {
                                      //$_SESSION['wallet_options'] = $options;
                                      is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
                                      if (empty($_operation_id)) {
                              Severity: Minor
                              Found in plugins/payment/classes/yf_payment_api__provider_bitcoin.class.php - About 1 hr to fix

                                Method email_item has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function email_item()
                                    {
                                        $dir_name = urldecode($_POST['dir_name']);
                                
                                        $_old_dir_name = str_replace('\\', '/', getcwd());
                                Severity: Minor
                                Found in plugins/sys/admin_modules/yf_file_manager.class.php - About 1 hr to fix

                                  Method signature has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function signature($options, $is_request = true)
                                      {
                                          is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
                                          $data = [];
                                          array_push(
                                  Severity: Minor
                                  Found in plugins/payment/classes/payment_provider/liqpay/LiqPay.php - About 1 hr to fix

                                    Method _api_response has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function _api_response($options)
                                        {
                                            // import options
                                            is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
                                            $this->payment_api->dump(['name' => 'Payeer', 'operation_id' => @(int) $_POST['m_orderid'], 'ip' => common()->get_ip()]);
                                    Severity: Minor
                                    Found in plugins/payment/classes/yf_payment_api__provider_payeer.class.php - About 1 hr to fix

                                      Method get_github_link has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function get_github_link($input, $section = 'all')
                                          {
                                              $is_module = false;
                                              $is_func = false;
                                              if (is_array($input)) {
                                      Severity: Minor
                                      Found in plugins/sys/classes/yf_core_api.class.php - About 1 hr to fix

                                        Method _field_type has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function _field_type($type = '')
                                            {
                                                $type = trim(strtolower($type));
                                                if (strpos($type, 'int') !== false) {
                                                    $type = 'int';
                                        Severity: Minor
                                        Found in plugins/form2/classes/form2/yf_form2_auto.class.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language