Showing 1,388 of 1,858 total issues
Method successPaid
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function successPaid($order_id, $userOrder) {
$ci = & get_instance();
$amout = $ci->db->select('amout')
->get_where('users', ['id' => $userOrder->user_id]);
- Create a ticketCreate a ticket
Method install
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function install() {
$sql = 'CREATE TABLE IF NOT EXISTS `mod_seo` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`locale` varchar(5) DEFAULT NULL,
- Create a ticketCreate a ticket
Method ping_google
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function ping_google() {
// Checking is used server is local
$ci = &get_instance();
- Create a ticketCreate a ticket
Method morphyWord
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function morphyWord($word, $case) {
$word = trim($word);
$key = $word . '_' . $case;
if (!isset($this->wordsCache[$key])) {
- Create a ticketCreate a ticket
Method verifyQuery
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function verifyQuery($query) {
if (!$query) {
return false;
}
- Create a ticketCreate a ticket
Method getShopCategories
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getShopCategories() {
// Get Shop Categories
$shop_categories = $this->sitemap_model->get_shop_categories();
- Create a ticketCreate a ticket
Method get_main_lang
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_main_lang($flag = null) {
$lang = $this->db->get('languages')->result_array();
$lan_array = [];
foreach ($lang as $l) {
- Create a ticketCreate a ticket
Method verify
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function verify($installDemodata = FALSE) {
foreach ($this->dependicies as $key => $node) {
$attributes = $node->attributes();
$handlerClass = 'template_manager\\installer\\' . ucfirst($attributes['entityName']) . 'Dependence';
include_once __DIR__ . DIRECTORY_SEPARATOR . $handlerClass . EXT;
- Create a ticketCreate a ticket
Method createTheme
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function createTheme() {
$model = new SCallbackThemes;
if ($this->input->post()) {
$this->form_validation->set_rules($model->rules());
- Create a ticketCreate a ticket
Method createWishList
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function createWishList($user_id, $listName, $wlType, $wlDescription) {
if ($listName) {
$count_lists = $this->wishlist_model->getUserWishListCount($user_id);
}
- Create a ticketCreate a ticket
Method _install
has 27 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 load
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function load($module = 'main') {
$this->_init();
if (strstr(uri_string(), 'admin')) {
- Create a ticketCreate a ticket
Method _detect_uri
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function _detect_uri() {
if (!$this->CI->input->server('REQUEST_URI')) {
return '';
}
- Create a ticketCreate a ticket
Function add
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
add: function (curElement, template_id, locale) {
var variable = curElement.closest('tr').find('.variableEdit');
var variableValue = curElement.closest('tr').find('.variableValueEdit');
this.validateVariable(variable.val(), variableValue.val());
- Create a ticketCreate a ticket
Function searchModule
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
searchModule: function (el) {
var searchText = $(el).val().toLowerCase();
var modules = $(el).closest('ul').find('a');
if (event.keyCode != 13) {
- Create a ticketCreate a ticket
Method showMessage
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function showMessage($message, $title = FALSE, $class = '', $ret = false, $timeout = false) {
$del = [
"'",
'"',
];
- Create a ticketCreate a ticket
Method getSubcategoriesIds
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getSubcategoriesIds($id = null) {
if (!$id) {
return FALSE;
}
$res = $this->db
- Create a ticketCreate a ticket
Function fancybox
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.fancybox = function(options) {
if (!$(this).length) {
return this;
}
- Create a ticketCreate a ticket
Function searchModule
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
searchModule: function (el) {
var searchText = $(el).val().toLowerCase();
var modules = $(el).closest('ul').find('a');
if (event.keyCode != 13) {
- Create a ticketCreate a ticket
Method validateFile
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function validateFile($offers, $limit) {
if (substr(sprintf('%o', fileperms(ImportBootstrap::getUploadDir())), -4) != '0777') {
ImportBootstrap::addMessage(Factor::ErrorFolderPermission);
return FALSE;
- Create a ticketCreate a ticket