Code Duplication    Length = 6-6 lines in 3 locations

application/modules/wishlist/classes/ParentWishlist.php 3 locations

@@ 311-316 (lines=6) @@
308
            $this->errors[] = lang('Wish List name can not be empty!', 'wishlist');
309
        }
310
311
        if (count($this->errors)) {
312
            return FALSE;
313
        } else {
314
            $this->dataModel = lang('Created', 'wishlist');
315
            return TRUE;
316
        }
317
    }
318
319
    /**
@@ 337-342 (lines=6) @@
334
            $this->errors[] = lang('You can not delete Wish List', 'wishlist');
335
        }
336
337
        if (count($this->errors)) {
338
            return FALSE;
339
        } else {
340
            $this->dataModel = lang('Successfully deleted', 'wishlist');
341
            return TRUE;
342
        }
343
    }
344
345
    /**
@@ 367-372 (lines=6) @@
364
            $this->errors[] = lang('You can not delete Wish List', 'wishlist');
365
        }
366
367
        if (count($this->errors)) {
368
            return FALSE;
369
        } else {
370
            $this->dataModel = lang('Successfully deleted', 'wishlist');
371
            return TRUE;
372
        }
373
    }
374
375
    /**