Showing 3,246 of 4,217 total issues
Method accordion
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function accordion($data = [], $extra = [])
{
$extra['id'] = $extra['id'] ?: __FUNCTION__ . '_' . ++$this->_ids[__FUNCTION__];
$items = [];
foreach ((array) $data as $k => $v) {
Method _get_daily_data
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _get_daily_data($days = null)
{
$time = time();
$days = $days ?: 60;
$min_time = $time - $days * 86400;
Method _cache_dir
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
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);
Method form_dd_row
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function form_dd_row($content, $extra = [], $replace = [], $form)
{
$dd_class = $form->_params['dd_class'] ?: 'span6';
$class_wrapper = $extra['class_wrapper'] ?: 'dl-horizontal';
Method amount_limit
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function amount_limit($options = null)
{
// import options
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
if ( ! empty($_method['amount'])) {
Method _form_options
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _form_options($options)
{
if ( ! $this->ENABLE) {
return null;
}
Method _check_operations
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _check_operations($type = 'payout')
{
$payment_api = &$this->payment_api;
$successful_operations = [];
switch ($type) {
Method _payout_Privat24
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _payout_Privat24($title)
{
return (array) 'opss...';
$form = '';
$api = _class('payment_api__provider_privat24');
Method _show
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _show()
{
$items = [];
if (in_array($_GET['object'], [])) {
Method show
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
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) {
Method filter_save
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function filter_save($params = [])
{
if ( ! is_array($params)) {
$params = [];
}
Method _form
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _form($data, $options = null)
{
if ( ! $this->ENABLE) {
return null;
}
Method _pcntl_init
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function _pcntl_init($options = null)
{
if (is_console()) {
// import options
is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
Method locale_box
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function locale_box($name = '', $desc = '', $extra = [], $replace = [], $form)
{
if (is_array($name)) {
$extra = (array) $extra + $name;
$name = '';
Method group_by
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function group_by()
{
$sql = '';
$items = func_get_args();
if ( ! count((array) $items)) {
Method _init_settings
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _init_settings($params = [])
{
// backwards compatibility
if ($this->FILES_TTL) {
$this->TTL = $this->FILES_TTL;
Method get
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get($name, $force_ttl = 0, array $params = [])
{
if ($name === false || $name === null || ! is_string($name)) {
return null;
}
Method stars
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function stars($name, $desc = '', $extra = [])
{
if (is_array($desc)) {
$extra = (array) $extra + $desc;
$desc = '';
Method bs_get_avail_themes
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function bs_get_avail_themes($css_fw = '')
{
if ( ! $css_fw) {
$css_fw = conf('css_framework');
}
Method _render_table_contents
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
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'];