Code Duplication    Length = 11-11 lines in 3 locations

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

@@ 1681-1691 (lines=11) @@
1678
     *
1679
     * @return void
1680
     */
1681
    public function initBannerImageI18ns($overrideExisting = true)
1682
    {
1683
        if (null !== $this->collBannerImageI18ns && !$overrideExisting) {
1684
            return;
1685
        }
1686
1687
        $collectionClassName = BannerImageI18nTableMap::getTableMap()->getCollectionClassName();
1688
1689
        $this->collBannerImageI18ns = new $collectionClassName;
1690
        $this->collBannerImageI18ns->setModel('\xbanners\models\BannerImageI18n');
1691
    }
1692
1693
    /**
1694
     * Gets an array of ChildBannerImageI18n objects which contain a foreign key that references this object.

application/modules/xbanners/models/Base/Banners.php 2 locations

@@ 1406-1416 (lines=11) @@
1403
     *
1404
     * @return void
1405
     */
1406
    public function initBannerImages($overrideExisting = true)
1407
    {
1408
        if (null !== $this->collBannerImages && !$overrideExisting) {
1409
            return;
1410
        }
1411
1412
        $collectionClassName = BannerImageTableMap::getTableMap()->getCollectionClassName();
1413
1414
        $this->collBannerImages = new $collectionClassName;
1415
        $this->collBannerImages->setModel('\xbanners\models\BannerImage');
1416
    }
1417
1418
    /**
1419
     * Gets an array of ChildBannerImage objects which contain a foreign key that references this object.
@@ 1631-1641 (lines=11) @@
1628
     *
1629
     * @return void
1630
     */
1631
    public function initBannersI18ns($overrideExisting = true)
1632
    {
1633
        if (null !== $this->collBannersI18ns && !$overrideExisting) {
1634
            return;
1635
        }
1636
1637
        $collectionClassName = BannersI18nTableMap::getTableMap()->getCollectionClassName();
1638
1639
        $this->collBannersI18ns = new $collectionClassName;
1640
        $this->collBannersI18ns->setModel('\xbanners\models\BannersI18n');
1641
    }
1642
1643
    /**
1644
     * Gets an array of ChildBannersI18n objects which contain a foreign key that references this object.