Code Duplication    Length = 9-9 lines in 2 locations

src/Laravel/DatabaseModule.php 2 locations

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