Showing 3,246 of 4,217 total issues

Avoid too many return statements within this method.
Open

                return form($replace, ['selected' => $_SESSION[$filter_name], 'class' => 'form-horizontal form-condensed'])
                    ->text('name')
                    ->select_box('order_by', $order_fields, ['show_text' => 1, 'translate' => 1]);
Severity: Major
Found in plugins/shop/admin_modules/manage_shop/yf_manage_shop_filter.class.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return form($replace, ['selected' => $_SESSION[$filter_name], 'class' => 'form-horizontal form-condensed'])
                        ->container(_class('manage_shop_filter')->_product_search_widget('item_id', $_SESSION[$filter_name]['item_id']), 'Item id')
                        ->text('name')
                        ->text('user_id', 'Admin')
                        ->datetime_select('add_date', null, ['with_time' => 1])
    Severity: Major
    Found in plugins/shop/admin_modules/manage_shop/yf_manage_shop_filter.class.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return '';

        Avoid too many return statements within this method.
        Open

                                return  $result;
        Severity: Major
        Found in plugins/shop/admin_modules/manage_shop/yf_manage_shop_orders.class.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                  return common()->show_messages()
                      . '<br />path: ' . _prepare_html($title) . ', size: ' . filesize($target)
                      . '<br /><a href="' . $web_path . '" target="_blank"><img src="' . $web_path . '" style="max-width: 200px; max-height: 200px;"></a>'
                      . '<br /><br />' . a(['href' => '/@object/show/' . urlencode($title), 'title' => 'Go Next', 'target' => '']);
          Severity: Major
          Found in plugins/ckeditor/admin_modules/yf_ck_file_browser.class.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                        return $val;
            Severity: Major
            Found in plugins/redis/classes/yf_wrapper_redis.class.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return form($replace, ['selected' => $_SESSION[$filter_name], 'class' => 'form-horizontal form-condensed'])
                                  ->text('title')
                                  ->select_box('order_by', $order_fields, ['show_text' => 1, 'translate' => 1]);
              Severity: Major
              Found in plugins/shop/admin_modules/manage_shop/yf_manage_shop_filter.class.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                            return $filters[$action]($filter_name, $replace)
                                ->radio_box('order_direction', ['asc' => 'Ascending', 'desc' => 'Descending'], ['horizontal' => 1])
                                ->save_and_clear();
                Severity: Major
                Found in plugins/shop/admin_modules/manage_shop/yf_manage_shop_filter.class.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return [
                                          'status' => 'Success',
                                          'img' => $thumb_name,
                                          'id' => $product['id'],
                                  ];

                    Avoid too many return statements within this method.
                    Open

                                return $from_conf;
                    Severity: Major
                    Found in plugins/redis/classes/yf_wrapper_redis.class.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return form($replace, ['selected' => $_SESSION[$filter_name], 'class' => 'form-horizontal form-condensed'])
                                          ->text('name')
                                          ->chosen_box('cat_id', module('manage_shop')->_cats_for_select, ['desc' => 'Main category', 'show_text' => 1, 'no_translate' => 1])
                                          ->select_box('order_by', $order_fields, ['show_text' => 1, 'translate' => 1]);
                      Severity: Major
                      Found in plugins/shop/admin_modules/manage_shop/yf_manage_shop_filter.class.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return form($replace, ['selected' => $_SESSION[$filter_name], 'class' => 'form-horizontal form-condensed'])
                                            ->number('id', ['class' => 'span1', 'min' => 0])
                                            ->container(_class('manage_shop_filter')->_product_search_widget('product_id', $_SESSION[$filter_name]['product_id']), 'product_id')
                                            ->datetime_select('add_date', null, ['with_time' => 1])
                                            ->datetime_select('add_date__and', null, ['with_time' => 1])
                        Severity: Major
                        Found in plugins/shop/admin_modules/manage_shop/yf_manage_shop_filter.class.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return form($replace, ['selected' => $_SESSION[$filter_name], 'class' => 'form-horizontal form-condensed'])
                                              ->text('item_id', 'item id')
                                              ->text('user_id', 'Admin')
                                              ->datetime_select('add_date', null, ['with_time' => 1])
                                              ->datetime_select('add_date__and', null, ['with_time' => 1])
                          Severity: Major
                          Found in plugins/shop/admin_modules/manage_shop/yf_manage_shop_filter.class.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                        return $this->_order_revisions_similar();

                              Avoid too many return statements within this method.
                              Open

                                                      return $row['price_unit'];
                              Severity: Major
                              Found in plugins/shop/admin_modules/manage_shop/yf_manage_shop_orders.class.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                        return json_encode('ok');
                                Severity: Major
                                Found in plugins/shop/admin_modules/manage_shop/yf_manage_shop_orders.class.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                          return $default;
                                  Severity: Major
                                  Found in plugins/redis/classes/yf_wrapper_redis.class.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                    return form($replace, ['selected' => $_SESSION[$filter_name], 'class' => 'form-horizontal form-condensed'])
                                                        ->text('id', 'Номер')
                                                        ->text('value', 'Название')
                                                        ->active_box('active', ['horizontal' => 1]);
                                    Severity: Major
                                    Found in plugins/shop/admin_modules/manage_shop/yf_manage_shop_filter.class.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                      return form($replace, ['selected' => $_SESSION[$filter_name], 'class' => 'form-horizontal form-condensed'])
                                                          ->container(_class('manage_shop_filter')->_product_search_widget('product_id', $_SESSION[$filter_name]['product_id']), 'Product id')
                                                          ->text('user_id', 'Admin')
                                                          ->datetime_select('add_date', null, ['with_time' => 1])
                                                          ->datetime_select('add_date__and', null, ['with_time' => 1])
                                      Severity: Major
                                      Found in plugins/shop/admin_modules/manage_shop/yf_manage_shop_filter.class.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                                return $row['quantity'];
                                        Severity: Major
                                        Found in plugins/shop/admin_modules/manage_shop/yf_manage_shop_orders.class.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language