Code Duplication    Length = 11-11 lines in 4 locations

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

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

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

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

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

@@ 1371-1381 (lines=11) @@
1368
     *
1369
     * @return void
1370
     */
1371
    public function initPageLinkProducts($overrideExisting = true)
1372
    {
1373
        if (null !== $this->collPageLinkProducts && !$overrideExisting) {
1374
            return;
1375
        }
1376
1377
        $collectionClassName = PageLinkProductTableMap::getTableMap()->getCollectionClassName();
1378
1379
        $this->collPageLinkProducts = new $collectionClassName;
1380
        $this->collPageLinkProducts->setModel('\mod_link\models\PageLinkProduct');
1381
    }
1382
1383
    /**
1384
     * Gets an array of ChildPageLinkProduct objects which contain a foreign key that references this object.