imagecms/ImageCMS

View on GitHub
application/modules/mod_promocode/mod_promocode.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method _setRegister has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function _setRegister($param) {
        $ci =& get_instance();
        $id_custom_field = $ci->db->where('identif', 'mod_promocode')->get('components')->row()->settings;
        if (!$id_custom_field) {
            return false;
Severity: Minor
Found in application/modules/mod_promocode/mod_promocode.php - About 1 hr to fix

Method _setRegisterPost has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function _setRegisterPost($param) {
        $ci =& get_instance();
        $id_custom_field = $ci->db->where('identif', 'mod_promocode')->get('components')->row()->settings;
        if (!$id_custom_field) {
            return false;
Severity: Minor
Found in application/modules/mod_promocode/mod_promocode.php - About 1 hr to fix

There are no issues that match your filters.

Category
Status