Showing 3,246 of 4,217 total issues

Method delete has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function delete($where = null, $as_sql = false)
    {
        if (isset($where)) {
            $this->where($where);
        }
Severity: Minor
Found in plugins/db/classes/db/yf_db_query_builder_driver.class.php - About 1 hr to fix

    Method compare_column has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function compare_column($c1, $c2)
        {
            $changes = [];
            $skip = [
                'charset',
    Severity: Minor
    Found in plugins/db/classes/db/yf_db_migrator.class.php - About 1 hr to fix

      Method create_event has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function create_event($name, $event_shedule, $event_body, $extra = [], &$error = false)
          {
              if (strpos($name, '.') !== false) {
                  list($db_name, $name) = explode('.', trim($name));
              }
      Severity: Minor
      Found in plugins/db/classes/db/yf_db_utils_mysql.class.php - About 1 hr to fix

        Method send has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function send(array $params = [], &$error_message = '')
            {
                require_php_lib('aws_sdk');
        
                $error_message = null;
        Severity: Minor
        Found in plugins/email/classes/mail/yf_mail_driver_ses.class.php - About 1 hr to fix

          Method table_get_charset has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function table_get_charset($table, $extra = [], &$error = false)
              {
                  if (is_array($table)) {
                      $extra = (array) $extra + $table;
                      $table = '';
          Severity: Minor
          Found in plugins/db/classes/db/yf_db_utils_driver.class.php - About 1 hr to fix

            Method get_user_info has 31 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function get_user_info()
                {
                    if (DEBUG_MODE && $_GET['oauth_clean']) {
                        $this->_storage_clean();
                    }
            Severity: Minor
            Found in plugins/oauth/classes/oauth/yf_oauth_driver2.class.php - About 1 hr to fix

              Method get_access_token has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function get_access_token()
                  {
                      $access_token = $this->_storage_get('access_token');
                      if ($access_token) {
                          return $access_token;
              Severity: Minor
              Found in plugins/oauth/classes/oauth/yf_oauth_driver2.class.php - About 1 hr to fix

                Method get_user_info has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function get_user_info()
                    {
                        $access_token = $this->_storage_get('access_token');
                        if ( ! $access_token) {
                            $access_token = $this->get_access_token();
                Severity: Minor
                Found in plugins/oauth/classes/oauth/yf_oauth_driver_github.class.php - About 1 hr to fix

                  Method crop has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function crop($source_file_path, $dest_file_path, $LIMIT_X, $LIMIT_Y, $pos_left, $pos_top)
                      {
                          // Check source file
                          if ( ! file_exists($source_file_path) || ! filesize($source_file_path) || ! is_readable($source_file_path)) {
                              trigger_error('CROP_IMG: Source file is empty', E_USER_WARNING);
                  Severity: Minor
                  Found in plugins/common/classes/common/yf_image_manip.class.php - About 1 hr to fix

                    Method get_data has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function get_data($url = '', $params = [])
                        {
                            if ( ! $url) {
                                return false;
                            }
                    Severity: Minor
                    Found in plugins/common/classes/common/yf_rss_data.class.php - About 1 hr to fix

                      Method _get_products_attributes has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function _get_products_attributes($products_ids = [])
                          {
                              if (is_numeric($products_ids)) {
                                  $return_single_id = $products_ids;
                                  $products_ids = [$products_ids];

                        Method _format_db_explain_result has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function _format_db_explain_result($explain_result = [])
                            {
                                if (empty($explain_result)) {
                                    return false;
                                }
                        Severity: Minor
                        Found in plugins/logs/classes/logs/yf_logs_db_queries.class.php - About 1 hr to fix

                          Method _get_modules_from_files has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function _get_modules_from_files()
                              {
                                  $regex = '~function(\s)+(' . implode('|', $this->HOOK_NAMES) . ')\s*\(~ims';
                          
                                  $yf_prefix_len = strlen(YF_PREFIX);
                          Severity: Minor
                          Found in plugins/site_map/modules/yf_site_map.class.php - About 1 hr to fix

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

                                public function view()
                                {
                                    $A = $this->_get_notification($_GET['id']);
                                    $info = form($A)
                                        ->info('title')

                              Method _products_get_attributes has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function _products_get_attributes($products_ids = [])
                                  {
                                      if (is_numeric($products_ids)) {
                                          $return_single_id = $products_ids;
                                          $products_ids = [$products_ids];

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

                                    public function _view_widget_items($widgets = [])
                                    {
                                        $_orig_object = $_GET['object'];
                                        $_orig_action = $_GET['action'];
                                        $is_cloneable_item = true;
                                Severity: Minor
                                Found in plugins/dashboards/classes/yf_dashboards2.class.php - About 1 hr to fix

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

                                      public function _init()
                                      {
                                          if ( ! empty($_SESSION['edit_escort_id'])) {
                                              // Do cache
                                              if ( ! isset($GLOBALS['_agency_info'])) {
                                  Severity: Minor
                                  Found in plugins/user/modules/yf_user_profile.class.php - About 1 hr to fix

                                    Method move_dir has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function move_dir($path1, $path2, $pattern_include = '', $pattern_exclude = '')
                                        {
                                            if ( ! $path1 || ! file_exists($path1)) {
                                                return false;
                                            }
                                    Severity: Minor
                                    Found in classes/yf_dir.class.php - About 1 hr to fix

                                      Method _debug_assets has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function _debug_assets(&$params = [])
                                          {
                                              $body = [];
                                      
                                              $items = $this->_get_debug_data('assets_out');
                                      Severity: Minor
                                      Found in classes/yf_debug.class.php - About 1 hr to fix

                                        Method get_yf_console_commands has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function get_yf_console_commands()
                                        {
                                            $cmds = [];
                                            $subfolder = 'commands/';
                                            $prefix_project = 'console_';
                                        Severity: Minor
                                        Found in .dev/console/yf.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language