Showing 3,246 of 4,217 total issues

Method accordion has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

    Method _get_daily_data has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function _get_daily_data($days = null)
        {
            $time = time();
            $days = $days ?: 60;
            $min_time = $time - $days * 86400;
    Severity: Minor
    Found in plugins/payment/admin_modules/yf_manage_payment_operation.class.php - About 1 hr to fix

      Method _cache_dir has 34 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function _cache_dir($out_type, $asset_name = '', $version = '')
          {
              if ( ! is_string($this->CACHE_DIR_TPL) && is_callable($this->CACHE_DIR_TPL)) {
                  $func = $this->CACHE_DIR_TPL;
                  $cache_dir = $func($out_type, $asset_name, $version, $this);
      Severity: Minor
      Found in plugins/assets/classes/yf_assets.class.php - About 1 hr to fix

        Method form_dd_row has 34 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function form_dd_row($content, $extra = [], $replace = [], $form)
            {
                $dd_class = $form->_params['dd_class'] ?: 'span6';
        
                $class_wrapper = $extra['class_wrapper'] ?: 'dl-horizontal';
        Severity: Minor
        Found in plugins/html/classes/html5fw/yf_html5fw_bs3.class.php - About 1 hr to fix

          Method amount_limit has 34 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function amount_limit($options = null)
              {
                  // import options
                  is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
                  if ( ! empty($_method['amount'])) {
          Severity: Minor
          Found in plugins/payment/classes/yf_payment_api__provider_remote.class.php - About 1 hr to fix

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

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

              Method _check_operations has 34 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function _check_operations($type = 'payout')
                  {
                      $payment_api = &$this->payment_api;
                      $successful_operations = [];
                      switch ($type) {
              Severity: Minor
              Found in plugins/payment/classes/yf_payment_api__provider_bitaps.class.php - About 1 hr to fix

                Method _payout_Privat24 has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

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

                  Method _show has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function _show()
                      {
                          $items = [];
                  
                          if (in_array($_GET['object'], [])) {
                  Severity: Minor
                  Found in plugins/site_nav_bar/admin_modules/yf_site_nav_bar.class.php - About 1 hr to fix

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

                        public function show()
                        {
                            $path = glob(YF_PATH . 'share/cron_jobs/*cron.php') + glob(YF_PATH . 'plugins/*/share/cron_jobs/*cron.php');
                    
                            foreach ((array) $path as $name) {
                    Severity: Minor
                    Found in plugins/sys/admin_modules/yf_manage_cron.class.php - About 1 hr to fix

                      Method filter_save has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

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

                        Method _form has 34 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_webmoney.class.php - About 1 hr to fix

                          Method _pcntl_init has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public static function _pcntl_init($options = null)
                              {
                                  if (is_console()) {
                                      // import options
                                      is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
                          Severity: Minor
                          Found in plugins/sys/classes/yf_pcntl_signal.class.php - About 1 hr to fix

                            Method locale_box has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

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

                              Method group_by has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

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

                                Method _init_settings has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function _init_settings($params = [])
                                    {
                                        // backwards compatibility
                                        if ($this->FILES_TTL) {
                                            $this->TTL = $this->FILES_TTL;
                                Severity: Minor
                                Found in plugins/cache/classes/yf_cache.class.php - About 1 hr to fix

                                  Method get has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function get($name, $force_ttl = 0, array $params = [])
                                      {
                                          if ($name === false || $name === null || ! is_string($name)) {
                                              return null;
                                          }
                                  Severity: Minor
                                  Found in plugins/cache/classes/yf_cache.class.php - About 1 hr to fix

                                    Method stars has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

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

                                      Method bs_get_avail_themes has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function bs_get_avail_themes($css_fw = '')
                                          {
                                              if ( ! $css_fw) {
                                                  $css_fw = conf('css_framework');
                                              }
                                      Severity: Minor
                                      Found in plugins/common/classes/yf_common.class.php - About 1 hr to fix

                                        Method _render_table_contents has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function _render_table_contents($data, $params = [], $to_hide = [])
                                            {
                                                $tbody_attrs = '';
                                                if (isset($params['tbody'])) {
                                                    $tbody_attrs = is_array($params['tbody']) ? _attrs($params['tbody'], ['class', 'id']) : ' ' . $params['tbody'];
                                        Severity: Minor
                                        Found in plugins/table2/classes/yf_table2.class.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language