Code Duplication    Length = 11-11 lines in 5 locations

application/modules/core/models/Base/Route.php 2 locations

@@ 1357-1367 (lines=11) @@
1354
     *
1355
     * @return void
1356
     */
1357
    public function initSCategories($overrideExisting = true)
1358
    {
1359
        if (null !== $this->collSCategories && !$overrideExisting) {
1360
            return;
1361
        }
1362
1363
        $collectionClassName = SCategoryTableMap::getTableMap()->getCollectionClassName();
1364
1365
        $this->collSCategories = new $collectionClassName;
1366
        $this->collSCategories->setModel('\SCategory');
1367
    }
1368
1369
    /**
1370
     * Gets an array of SCategory objects which contain a foreign key that references this object.
@@ 1607-1617 (lines=11) @@
1604
     *
1605
     * @return void
1606
     */
1607
    public function initSProductss($overrideExisting = true)
1608
    {
1609
        if (null !== $this->collSProductss && !$overrideExisting) {
1610
            return;
1611
        }
1612
1613
        $collectionClassName = SProductsTableMap::getTableMap()->getCollectionClassName();
1614
1615
        $this->collSProductss = new $collectionClassName;
1616
        $this->collSProductss->setModel('\SProducts');
1617
    }
1618
1619
    /**
1620
     * Gets an array of SProducts objects which contain a foreign key that references this object.

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

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

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

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