Code Duplication    Length = 9-9 lines in 2 locations

src/Laravel/DatabaseModule.php 2 locations

@@ 153-161 (lines=9) @@
150
    /**
151
     * Disable the current module.
152
     */
153
    public function disable(): void
154
    {
155
        $this->fireEvent('disabling');
156
157
        $this->getModel()->where(['name' => $this->getName()])->update(['is_active' => 0]);
158
        $this->flushCache();
159
160
        $this->fireEvent('disabled');
161
    }
162
163
    /**
164
     * Enable the current module.
@@ 166-174 (lines=9) @@
163
    /**
164
     * Enable the current module.
165
     */
166
    public function enable(): void
167
    {
168
        $this->fireEvent('enabling');
169
170
        $this->getModel()->where(['name' => $this->getName()])->update(['is_active' => 1]);
171
        $this->flushCache();
172
173
        $this->fireEvent('enabled');
174
    }
175
176
    /**
177
     * Delete the current module.