Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 562-571 (lines=10) @@
559
     *
560
     * @return $this|ChildBannerImageI18nQuery The current query, for fluid interface
561
     */
562
    public function prune($bannerImageI18n = null)
563
    {
564
        if ($bannerImageI18n) {
565
            $this->addCond('pruneCond0', $this->getAliasedColName(BannerImageI18nTableMap::COL_ID), $bannerImageI18n->getId(), Criteria::NOT_EQUAL);
566
            $this->addCond('pruneCond1', $this->getAliasedColName(BannerImageI18nTableMap::COL_LOCALE), $bannerImageI18n->getLocale(), Criteria::NOT_EQUAL);
567
            $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR);
568
        }
569
570
        return $this;
571
    }
572
573
    /**
574
     * Deletes all rows from the banner_image_i18n table.

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

@@ 448-457 (lines=10) @@
445
     *
446
     * @return $this|ChildBannersI18nQuery The current query, for fluid interface
447
     */
448
    public function prune($bannersI18n = null)
449
    {
450
        if ($bannersI18n) {
451
            $this->addCond('pruneCond0', $this->getAliasedColName(BannersI18nTableMap::COL_ID), $bannersI18n->getId(), Criteria::NOT_EQUAL);
452
            $this->addCond('pruneCond1', $this->getAliasedColName(BannersI18nTableMap::COL_LOCALE), $bannersI18n->getLocale(), Criteria::NOT_EQUAL);
453
            $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR);
454
        }
455
456
        return $this;
457
    }
458
459
    /**
460
     * Deletes all rows from the banners_i18n table.