imagecms/ImageCMS

View on GitHub

Showing 1,388 of 1,858 total issues

Method successPaid has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function successPaid($order_id, $userOrder) {
        $ci = & get_instance();

        $amout = $ci->db->select('amout')
            ->get_where('users', ['id' => $userOrder->user_id]);

Method install has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function install() {

        $sql = 'CREATE TABLE IF NOT EXISTS `mod_seo` (
                    `id` int(11) NOT NULL AUTO_INCREMENT,
                    `locale` varchar(5) DEFAULT NULL,
Severity: Minor
Found in application/modules/mod_seo/models/seoexpert_model.php - About 1 hr to fix

Method ping_google has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function ping_google() {

        // Checking is used server is local

        $ci = &get_instance();
Severity: Minor
Found in application/modules/sitemap/sitemap.php - About 1 hr to fix

Method morphyWord has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function morphyWord($word, $case) {
        $word = trim($word);
        $key = $word . '_' . $case;

        if (!isset($this->wordsCache[$key])) {
Severity: Minor
Found in application/modules/CMSFactory/Services/Morphy/Morphy.php - About 1 hr to fix

Method verifyQuery has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function verifyQuery($query) {
        if (!$query) {
            return false;
        }

Method getShopCategories has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function getShopCategories() {

        // Get Shop Categories
        $shop_categories = $this->sitemap_model->get_shop_categories();

Severity: Minor
Found in application/modules/sitemap/sitemap.php - About 1 hr to fix

Method get_main_lang has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function get_main_lang($flag = null) {

        $lang = $this->db->get('languages')->result_array();
        $lan_array = [];
        foreach ($lang as $l) {
Severity: Minor
Found in application/modules/banners/banners.php - About 1 hr to fix

Method verify has 27 lines of code (exceeds 25 allowed). Consider refactoring.
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;

Method createTheme has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function createTheme() {
        $model = new SCallbackThemes;

        if ($this->input->post()) {
            $this->form_validation->set_rules($model->rules());
Severity: Minor
Found in application/modules/callbacks/admin.php - About 1 hr to fix

Method createWishList has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function createWishList($user_id, $listName, $wlType, $wlDescription) {

        if ($listName) {
            $count_lists = $this->wishlist_model->getUserWishListCount($user_id);
        }
Severity: Minor
Found in application/modules/wishlist/classes/ParentWishlist.php - About 1 hr to fix

Method _install has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function _install() {

        $this->load->dbforge();
        ($this->dx_auth->is_admin()) or exit;
        $fields = [
Severity: Minor
Found in application/modules/exchange/exchange.php - About 1 hr to fix

Method load has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function load($module = 'main') {

        $this->_init();

        if (strstr(uri_string(), 'admin')) {
Severity: Minor
Found in application/core/MY_Lang.php - About 1 hr to fix

Method _detect_uri has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function _detect_uri() {
        if (!$this->CI->input->server('REQUEST_URI')) {
            return '';
        }

Severity: Minor
Found in application/libraries/lib_init.php - About 1 hr to fix

Function add has 26 lines of code (exceeds 25 allowed). Consider refactoring.
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());
Severity: Minor
Found in application/modules/cmsemail/assets/js/email.js - About 1 hr to fix

Function searchModule has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    searchModule: function (el) {
        var searchText = $(el).val().toLowerCase();
        var modules = $(el).closest('ul').find('a');

        if (event.keyCode != 13) {
Severity: Minor
Found in application/modules/admin_menu/assets/js/admin_menu.js - About 1 hr to fix

Method showMessage has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function showMessage($message, $title = FALSE, $class = '', $ret = false, $timeout = false) {
    $del = [
            "'",
            '"',
           ];
Severity: Minor
Found in application/helpers/javascript_helper.php - About 1 hr to fix

Method getSubcategoriesIds has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getSubcategoriesIds($id = null) {
        if (!$id) {
            return FALSE;
        }
        $res = $this->db
Severity: Minor
Found in application/modules/mod_stats/models/products_model.php - About 1 hr to fix

Function fancybox has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $.fn.fancybox = function(options) {
        if (!$(this).length) {
            return this;
        }

Severity: Minor
Found in application/modules/gallery/assets/js/jquery.fancybox-1.3.4.js - About 1 hr to fix

Function searchModule has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    searchModule: function (el) {
        var searchText = $(el).val().toLowerCase();
        var modules = $(el).closest('ul').find('a');

        if (event.keyCode != 13) {
Severity: Minor
Found in application/modules/admin_menu/assets/js/admin_menu_show.js - About 1 hr to fix

Method validateFile has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function validateFile($offers, $limit) {

        if (substr(sprintf('%o', fileperms(ImportBootstrap::getUploadDir())), -4) != '0777') {
            ImportBootstrap::addMessage(Factor::ErrorFolderPermission);
            return FALSE;
Severity: Minor
Found in application/modules/import_export/classes/BaseImport.php - About 1 hr to fix
Severity
Category
Status
Source
Language