Code Duplication    Length = 14-14 lines in 2 locations

application/modules/core/models/Base/Route.php 1 location

@@ 1853-1866 (lines=14) @@
1850
     * outgoing references as well as back-references (from other objects to this one. Results probably in a database
1851
     * change of those foreign objects when you call `save` there).
1852
     */
1853
    public function clear()
1854
    {
1855
        $this->id = null;
1856
        $this->entity_id = null;
1857
        $this->type = null;
1858
        $this->parent_url = null;
1859
        $this->url = null;
1860
        $this->alreadyInSave = false;
1861
        $this->clearAllReferences();
1862
        $this->applyDefaultValues();
1863
        $this->resetModified();
1864
        $this->setNew(true);
1865
        $this->setDeleted(false);
1866
    }
1867
1868
    /**
1869
     * Resets all references and back-references to other model objects or collections of model objects.

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

@@ 1839-1852 (lines=14) @@
1836
     * outgoing references as well as back-references (from other objects to this one. Results probably in a database
1837
     * change of those foreign objects when you call `save` there).
1838
     */
1839
    public function clear()
1840
    {
1841
        $this->id = null;
1842
        $this->place = null;
1843
        $this->width = null;
1844
        $this->height = null;
1845
        $this->effects = null;
1846
        $this->page_type = null;
1847
        $this->alreadyInSave = false;
1848
        $this->clearAllReferences();
1849
        $this->resetModified();
1850
        $this->setNew(true);
1851
        $this->setDeleted(false);
1852
    }
1853
1854
    /**
1855
     * Resets all references and back-references to other model objects or collections of model objects.