Showing 1,388 of 1,858 total issues
Method getCategoriesFromBase
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getCategoriesFromBase() {
$query = "
SELECT
`shop_category`.`id`,
`shop_category`.`parent_id`,
- Create a ticketCreate a ticket
Method saveCSVFile
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function saveCSVFile() {
$this->takeFileName();
$this->load->library(
'upload',
- Create a ticketCreate a ticket
Method recent_comments
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function recent_comments(array $widget = []) {
if ($widget['settings'] === FALSE) {
$settings = $this->defaults;
} else {
$settings = $widget['settings'];
- Create a ticketCreate a ticket
Method getForm
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getForm($param) {
$payment_method_id = $param->getPaymentMethod();
$key = $payment_method_id . '_' . $this->moduleName;
$paySettings = $this->getPaymentSettings($key);
- Create a ticketCreate a ticket
Method reset_password
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function reset_password() {
// Get username and key
$email = $this->input->post('email');
$key = $this->input->post('key');
// Reset password
- Create a ticketCreate a ticket
Method get_categories
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_categories($order_by = 'name', $sort_order = 'desc') {
if ($sort_order != 'desc' AND $sort_order != 'asc') {
$sort_order = 'desc';
}
- Create a ticketCreate a ticket
Method edit_module_widget
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function edit_module_widget($id, $update_info = FALSE, $locale = NULL) {
//cp_check_perm('widget_access_settings');
$locale = $locale ?: MY_Controller::defaultLocale();
if ($this->input->post()) {
- Create a ticketCreate a ticket
Method getDiscount
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getDiscount($option = [], $typeReturn = null) {
if (count($option) > 0) {
BaseDiscount::prepareOption($option);
}
- Create a ticketCreate a ticket
Method update
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function update($module_template, $type, $lang) {
$strings = (array) json_decode($this->input->post('results'));
$translations = $this->makeCorrectPoPaths($module_template, $type, $lang, TRUE);
- Create a ticketCreate a ticket
Method _install
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _install() {
$this->load->dbforge();
($this->dx_auth->is_admin()) OR exit;
$fields = [
- Create a ticketCreate a ticket
Method checkRangeForCumulativeDiscount
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function checkRangeForCumulativeDiscount($data = FALSE, $id = null) {
if (!$data) {
return FALSE;
}
- Create a ticketCreate a ticket
Method update_fields_data
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function update_fields_data($item_id, $data, $type) {
if (count($data) > 0) {
foreach ($data as $key => $val) {
$field_data = [
- Create a ticketCreate a ticket
Method save
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function save($name, $type, $lang, $data) {
ksort($data, SORT_STRING | SORT_FLAG_CASE);
$url = $this->getPoFileUrl($name, $type, $lang);
- Create a ticketCreate a ticket
Method makePoFileData
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function makePoFileData($data = []) {
$resultData = [];
foreach ($data as $key => $po) {
if ($po) {
$po = $this->preparePoFileData((array) $po);
- Create a ticketCreate a ticket
Method update
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function update() {
// update has only two "passes" - as we already got product_id
$this->updateFromCollector('shop_products', 'id');
$this->updateFromCollector('shop_product_categories', 'product_id');
- Create a ticketCreate a ticket
Method checkPaid
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function checkPaid($param) {
$ci = &get_instance();
$order_id = $param['LMI_PAYMENT_NO'];
$userOrder = $ci->db->where('id', $order_id)
- Create a ticketCreate a ticket
Method checkPageAccess
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function checkPageAccess($roles) {
if ($roles == FALSE OR count($roles) == 0) {
return TRUE;
}
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (!manual && !p.cyclePause &&
((opts.autostop && (--opts.countdown <= 0)) ||
(opts.nowrap && !opts.random && opts.nextSlide < opts.currSlide))) {
if (opts.end)
opts.end(opts);
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
<?php if (isset($sections['http_headers']) || isset($sections['get']) || isset($sections['config']) || isset($sections['post']) || isset($sections['uri_string']) || isset($sections['controller_info']) || isset($sections['userdata'])) :?>
<div id="ci-profiler-vars" class="ci-profiler-box" style="display: none">
<!-- User Data -->
<?php if (isset($sections['userdata'])) :?>
- Create a ticketCreate a ticket
Consider simplifying this complex logical expression. Open
Open
if (substr($file, 0, 6) != 'cache_' && $file != 'hooks.php' && $file != '.' && $file != '..' && $file != '/' && strstr($file, '.') != TRUE && (time() - $stat['mtime']) > $this->_Config['auto_clean_life']) {
$files_all = opendir('./system/cache/' . $file);
while (false !== ($fileT = readdir($files_all))) {
$stat = stat($this->_Config['store']);
- Create a ticketCreate a ticket