Code Duplication    Length = 10-10 lines in 7 locations

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

application/modules/mod_link/models/Base/PageLink.php 1 location

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

application/modules/mod_link/models/Base/PageLinkProduct.php 1 location

@@ 176-185 (lines=10) @@
173
     * @param  string $col If supplied, only the specified column is reset.
174
     * @return void
175
     */
176
    public function resetModified($col = null)
177
    {
178
        if (null !== $col) {
179
            if (isset($this->modifiedColumns[$col])) {
180
                unset($this->modifiedColumns[$col]);
181
            }
182
        } else {
183
            $this->modifiedColumns = array();
184
        }
185
    }
186
187
    /**
188
     * Compares this with another <code>PageLinkProduct</code> instance.  If

application/modules/mod_link/models/Base/PageLinkProducts.php 1 location

@@ 176-185 (lines=10) @@
173
     * @param  string $col If supplied, only the specified column is reset.
174
     * @return void
175
     */
176
    public function resetModified($col = null)
177
    {
178
        if (null !== $col) {
179
            if (isset($this->modifiedColumns[$col])) {
180
                unset($this->modifiedColumns[$col]);
181
            }
182
        } else {
183
            $this->modifiedColumns = array();
184
        }
185
    }
186
187
    /**
188
     * Compares this with another <code>PageLinkProducts</code> instance.  If