Code Duplication    Length = 10-10 lines in 5 locations

application/modules/core/models/Base/Route.php 1 location

@@ 238-247 (lines=10) @@
235
     * @param  string $col If supplied, only the specified column is reset.
236
     * @return void
237
     */
238
    public function resetModified($col = null)
239
    {
240
        if (null !== $col) {
241
            if (isset($this->modifiedColumns[$col])) {
242
                unset($this->modifiedColumns[$col]);
243
            }
244
        } else {
245
            $this->modifiedColumns = array();
246
        }
247
    }
248
249
    /**
250
     * Compares this with another <code>Route</code> instance.  If

application/modules/xbanners/models/Base/BannerImage.php 1 location

@@ 263-272 (lines=10) @@
260
     * @param  string $col If supplied, only the specified column is reset.
261
     * @return void
262
     */
263
    public function resetModified($col = null)
264
    {
265
        if (null !== $col) {
266
            if (isset($this->modifiedColumns[$col])) {
267
                unset($this->modifiedColumns[$col]);
268
            }
269
        } else {
270
            $this->modifiedColumns = array();
271
        }
272
    }
273
274
    /**
275
     * Compares this with another <code>BannerImage</code> instance.  If

application/modules/xbanners/models/Base/BannerImageI18n.php 1 location

@@ 218-227 (lines=10) @@
215
     * @param  string $col If supplied, only the specified column is reset.
216
     * @return void
217
     */
218
    public function resetModified($col = null)
219
    {
220
        if (null !== $col) {
221
            if (isset($this->modifiedColumns[$col])) {
222
                unset($this->modifiedColumns[$col]);
223
            }
224
        } else {
225
            $this->modifiedColumns = array();
226
        }
227
    }
228
229
    /**
230
     * Compares this with another <code>BannerImageI18n</code> instance.  If

application/modules/xbanners/models/Base/Banners.php 1 location

@@ 243-252 (lines=10) @@
240
     * @param  string $col If supplied, only the specified column is reset.
241
     * @return void
242
     */
243
    public function resetModified($col = null)
244
    {
245
        if (null !== $col) {
246
            if (isset($this->modifiedColumns[$col])) {
247
                unset($this->modifiedColumns[$col]);
248
            }
249
        } else {
250
            $this->modifiedColumns = array();
251
        }
252
    }
253
254
    /**
255
     * Compares this with another <code>Banners</code> instance.  If

application/modules/xbanners/models/Base/BannersI18n.php 1 location

@@ 197-206 (lines=10) @@
194
     * @param  string $col If supplied, only the specified column is reset.
195
     * @return void
196
     */
197
    public function resetModified($col = null)
198
    {
199
        if (null !== $col) {
200
            if (isset($this->modifiedColumns[$col])) {
201
                unset($this->modifiedColumns[$col]);
202
            }
203
        } else {
204
            $this->modifiedColumns = array();
205
        }
206
    }
207
208
    /**
209
     * Compares this with another <code>BannersI18n</code> instance.  If