Showing 3,246 of 4,217 total issues
Method _check
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _check($input = [], $user_info = [])
{
// Default banned status
$BANNED_STATUS = false;
// Nothing to check
Method show_orders
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show_orders()
{
if ($this->SUPPLIER_ID) {
$sql = 'SELECT o.*, COUNT(*) AS num_items
FROM ' . db('shop_orders') . ' AS o
Method orders
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function orders()
{
if ( ! main()->USER_ID) {
if (main()->is_post()) {
module('shop')->order_validate_data();
Method drag_items
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function drag_items()
{
$cat_info = db()->get('SELECT * FROM ' . db('categories') . ' WHERE name="' . db()->es($_GET['id']) . '" OR id=' . (int) ($_GET['id']));
if ( ! $cat_info) {
return _e('No such category');
Method show_image
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show_image($no_header = false, $no_exit = false)
{
if (function_exists('main')) {
main()->NO_GRAPHICS = true;
}
Method show
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show()
{
$id = preg_replace('~[^a-z0-9_-]+~ims', '', $_GET['id']);
$method = preg_replace('~[^a-z0-9_-]+~ims', '', $_GET['page']);
if (strlen($id)) {
Method test_update
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_update()
{
if ($this->_need_skip_test(__FUNCTION__)) {
return;
}
Method test_many_to_many
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_many_to_many()
{
if ($this->_need_skip_test(__FUNCTION__)) {
return;
}
Method test_php_to_sql_db_installer
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_php_to_sql_db_installer()
{
if ($this->_need_skip_test(__FUNCTION__)) {
return;
}
Method test_recusrion3
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_recusrion3()
{
$jquery_url = _class('assets')->get_asset('jquery', 'js');
$url = $jquery_url;
$url1 = $url . '?v=1';
Method edit
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function edit()
{
$object = &$this->object;
$action = &$this->action;
$filter_name = &$this->filter_name;
Method _get_daily_stats
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _get_daily_stats($type = 'sum', $days = null)
{
$time = time();
$days = $days ?: 60;
$min_time = $time - $days * 86400;
Method _create_invoice
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _create_invoice($options)
{
$operation_id = $options['operation_id'];
require_php_lib('bitpay');
$storageEngine = new \Bitpay\Storage\FilesystemStorage();
Method _product_image_upload
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _product_image_upload($product_id)
{
$products_images_dir = module('manage_shop')->products_img_dir;
$d = sprintf('%09s', $product_id);
Method express_pdf
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function express_pdf($send_mail = false)
{
$date = date('Y-m-d');
$hours = (int) ($_GET['hours']);
$orders = db()->get_2d('SELECT id FROM ' . db('shop_orders') . " WHERE delivery_time LIKE '" . $date . ' ' . $hours . "%' AND status = 1");
Method _data
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _data()
{
$_sub_action = [
'0' => '- не выбрано -',
'load' => 'загрузить',
Method mkdir_m
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function mkdir_m($dir_name, $dir_mode = 0755, $create_index_htmls = 0, $start_folder = '')
{
if ( ! $dir_name || ! strlen($dir_name)) {
return 0;
}
Method execute
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function execute(InputInterface $input, OutputInterface $output)
{
global $yf_paths;
require_once $yf_paths['db_setup_path'];
init_yf();
Method media_objects
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function media_objects()
{
// $img = module('dynamic')->placeholder_img(array('width' => 300, 'height' => 200));
$img = url('/dynamic/placeholder/64x64');
$body = 'Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.';
Method test_basic
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_basic()
{
$table = table();
$this->assertEquals('<div class="alert alert-info">No records</div>', trim($table));