Showing 3,246 of 4,217 total issues
File yf_pcntl_signal.class.php
has 274 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* pcntl_signal handler
* static class.
File yf_common_num2string.class.php
has 274 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
class yf_common_num2string
{
Method select_box
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function select_box($name, $values = [], $selected = '', $show_text = false, $type = 2, $add_str = '', $translate = 0, $level = 0)
{
// Passing params as array
if (is_array($name)) {
$extra = (array) $extra + $name;
Method balance
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function balance($options)
{
if (empty(main()->USER_ID)) {
js_redirect('/login_form', false, 'User id empty');
}
Method authorize_request
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function authorize_request($options = null)
{
if ( ! $this->ENABLE) {
return null;
}
Method _api_authorize
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _api_authorize()
{
if ( ! $this->ENABLE) {
return null;
}
Method _update_status
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _update_status($options = null)
{
if ( ! $this->ENABLE) {
return null;
}
Method _replace_std_patterns
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _replace_std_patterns($string, $name = '', array &$replace, $params = [])
{
$_this = $this;
$tpl = tpl();
Method table_get_columns
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function table_get_columns($table, $extra = [], &$error = false)
{
if (is_array($table)) {
$extra = (array) $extra + $table;
$table = '';
Method allow
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function allow()
{
if ( ! $this->LOGGING || MAIN_TYPE_ADMIN) {
return false;
}
Method _data
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _data()
{
$_class_price = $this->_class_price;
// init sql
$sql_table = db('shop_products');
Method go
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function go()
{
if ($this->DEBUG_CONSOLE_HIDDEN) {
return false;
}
Method test_rewrite_replace_links
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function test_rewrite_replace_links()
{
$GLOBALS['PROJECT_CONF']['tpl']['REWRITE_MODE'] = true;
$host = self::$host;
File advertising.sql_php.php
has 273 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
return [
'fields' => [
'id' => [
Method _on_validate_ok
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _on_validate_ok($params = [], $form = null)
{
$p = $params ?: $_POST;
// TODO: named cleanups and separate stats by them
Method _add_panel
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _add_panel($options)
{
static $count = 1;
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
// action
Method join
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function join($table, $on, $join_type = '', $is_select = false)
{
$join_types = [
'left',
'right',
Method remote_file_size
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function remote_file_size($url = '')
{
$url = $this->_fix_url($url);
$tmp = @parse_url($url);
$sch = $tmp['scheme'];
Method num2str
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function num2str($float, $currency_id = null, $lang_id = null, $set = false)
{
$lang_id = $this->lang_id($lang_id, $set);
$currency_id = $this->currency_id($currency_id, $set);
$words = &$this->words[$lang_id];
Method novaposhta_ua__import_old
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function novaposhta_ua__import_old()
{
// get data
// $file = '/tmp/warenhouses_ru.xls';
// $content = file_get_contents( $file );