Code Duplication    Length = 11-11 lines in 9 locations

src/cli/Database/Base/Channel.php 1 location

@@ 1247-1257 (lines=11) @@
1244
     *
1245
     * @return void
1246
     */
1247
    public function initSubscriptions($overrideExisting = true)
1248
    {
1249
        if (null !== $this->collSubscriptions && !$overrideExisting) {
1250
            return;
1251
        }
1252
1253
        $collectionClassName = SubscriptionTableMap::getTableMap()->getCollectionClassName();
1254
1255
        $this->collSubscriptions = new $collectionClassName;
1256
        $this->collSubscriptions->setModel('\Jalle19\StatusManager\Database\Subscription');
1257
    }
1258
1259
    /**
1260
     * Gets an array of ChildSubscription objects which contain a foreign key that references this object.

src/cli/Database/Base/User.php 2 locations

@@ 1307-1317 (lines=11) @@
1304
     *
1305
     * @return void
1306
     */
1307
    public function initConnections($overrideExisting = true)
1308
    {
1309
        if (null !== $this->collConnections && !$overrideExisting) {
1310
            return;
1311
        }
1312
1313
        $collectionClassName = ConnectionTableMap::getTableMap()->getCollectionClassName();
1314
1315
        $this->collConnections = new $collectionClassName;
1316
        $this->collConnections->setModel('\Jalle19\StatusManager\Database\Connection');
1317
    }
1318
1319
    /**
1320
     * Gets an array of ChildConnection objects which contain a foreign key that references this object.
@@ 1557-1567 (lines=11) @@
1554
     *
1555
     * @return void
1556
     */
1557
    public function initSubscriptions($overrideExisting = true)
1558
    {
1559
        if (null !== $this->collSubscriptions && !$overrideExisting) {
1560
            return;
1561
        }
1562
1563
        $collectionClassName = SubscriptionTableMap::getTableMap()->getCollectionClassName();
1564
1565
        $this->collSubscriptions = new $collectionClassName;
1566
        $this->collSubscriptions->setModel('\Jalle19\StatusManager\Database\Subscription');
1567
    }
1568
1569
    /**
1570
     * Gets an array of ChildSubscription objects which contain a foreign key that references this object.

src/cli/Database/Base/Input.php 1 location

@@ 1493-1503 (lines=11) @@
1490
     *
1491
     * @return void
1492
     */
1493
    public function initSubscriptions($overrideExisting = true)
1494
    {
1495
        if (null !== $this->collSubscriptions && !$overrideExisting) {
1496
            return;
1497
        }
1498
1499
        $collectionClassName = SubscriptionTableMap::getTableMap()->getCollectionClassName();
1500
1501
        $this->collSubscriptions = new $collectionClassName;
1502
        $this->collSubscriptions->setModel('\Jalle19\StatusManager\Database\Subscription');
1503
    }
1504
1505
    /**
1506
     * Gets an array of ChildSubscription objects which contain a foreign key that references this object.

src/cli/Database/Base/Instance.php 5 locations

@@ 1255-1265 (lines=11) @@
1252
     *
1253
     * @return void
1254
     */
1255
    public function initUsers($overrideExisting = true)
1256
    {
1257
        if (null !== $this->collUsers && !$overrideExisting) {
1258
            return;
1259
        }
1260
1261
        $collectionClassName = UserTableMap::getTableMap()->getCollectionClassName();
1262
1263
        $this->collUsers = new $collectionClassName;
1264
        $this->collUsers->setModel('\Jalle19\StatusManager\Database\User');
1265
    }
1266
1267
    /**
1268
     * Gets an array of ChildUser objects which contain a foreign key that references this object.
@@ 1480-1490 (lines=11) @@
1477
     *
1478
     * @return void
1479
     */
1480
    public function initConnections($overrideExisting = true)
1481
    {
1482
        if (null !== $this->collConnections && !$overrideExisting) {
1483
            return;
1484
        }
1485
1486
        $collectionClassName = ConnectionTableMap::getTableMap()->getCollectionClassName();
1487
1488
        $this->collConnections = new $collectionClassName;
1489
        $this->collConnections->setModel('\Jalle19\StatusManager\Database\Connection');
1490
    }
1491
1492
    /**
1493
     * Gets an array of ChildConnection objects which contain a foreign key that references this object.
@@ 1730-1740 (lines=11) @@
1727
     *
1728
     * @return void
1729
     */
1730
    public function initInputs($overrideExisting = true)
1731
    {
1732
        if (null !== $this->collInputs && !$overrideExisting) {
1733
            return;
1734
        }
1735
1736
        $collectionClassName = InputTableMap::getTableMap()->getCollectionClassName();
1737
1738
        $this->collInputs = new $collectionClassName;
1739
        $this->collInputs->setModel('\Jalle19\StatusManager\Database\Input');
1740
    }
1741
1742
    /**
1743
     * Gets an array of ChildInput objects which contain a foreign key that references this object.
@@ 1955-1965 (lines=11) @@
1952
     *
1953
     * @return void
1954
     */
1955
    public function initChannels($overrideExisting = true)
1956
    {
1957
        if (null !== $this->collChannels && !$overrideExisting) {
1958
            return;
1959
        }
1960
1961
        $collectionClassName = ChannelTableMap::getTableMap()->getCollectionClassName();
1962
1963
        $this->collChannels = new $collectionClassName;
1964
        $this->collChannels->setModel('\Jalle19\StatusManager\Database\Channel');
1965
    }
1966
1967
    /**
1968
     * Gets an array of ChildChannel objects which contain a foreign key that references this object.
@@ 2180-2190 (lines=11) @@
2177
     *
2178
     * @return void
2179
     */
2180
    public function initSubscriptions($overrideExisting = true)
2181
    {
2182
        if (null !== $this->collSubscriptions && !$overrideExisting) {
2183
            return;
2184
        }
2185
2186
        $collectionClassName = SubscriptionTableMap::getTableMap()->getCollectionClassName();
2187
2188
        $this->collSubscriptions = new $collectionClassName;
2189
        $this->collSubscriptions->setModel('\Jalle19\StatusManager\Database\Subscription');
2190
    }
2191
2192
    /**
2193
     * Gets an array of ChildSubscription objects which contain a foreign key that references this object.