Code Duplication    Length = 10-10 lines in 4 locations

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

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

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

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

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

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

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

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