Code Duplication    Length = 7-7 lines in 2 locations

application/modules/xbanners/src/Installers/BannersModuleManager.php 2 locations

@@ 85-91 (lines=7) @@
82
    /**
83
     * @param boolean $bool
84
     */
85
    public function setAutoload($bool) {
86
        $state = $bool ? 1 : 0;
87
88
        return $this->db
89
            ->where(['name' => $this->moduleName])
90
            ->update('components', ['autoload' => $state]);
91
    }
92
93
    /**
94
     * @param boolean $bool
@@ 96-102 (lines=7) @@
93
    /**
94
     * @param boolean $bool
95
     */
96
    public function setEnabled($bool) {
97
        $state = $bool ? 1 : 0;
98
99
        return $this->db
100
            ->where(['name' => $this->moduleName])
101
            ->update('components', ['enabled' => $state]);
102
    }
103
104
    /**
105
     * Drop module row from components