Code Duplication    Length = 19-19 lines in 2 locations

Alpha/Model/ActiveRecordProviderMySQL.php 1 location

@@ 1842-1860 (lines=19) @@
1839
        $reflection = new ReflectionClass(get_class($this->BO));
1840
        $properties = $reflection->getProperties();
1841
1842
        foreach ($properties as $propObj) {
1843
            $propName = $propObj->name;
1844
            if (!in_array($propName, $this->BO->getTransientAttributes())) {
1845
                $foundMatch = false;
1846
1847
                while ($row = $result->fetch_array(MYSQLI_ASSOC)) {
1848
                    if ($propName == $row['Field']) {
1849
                        $foundMatch = true;
1850
                        break;
1851
                    }
1852
                }
1853
1854
                if (!$foundMatch) {
1855
                    --$matchCount;
1856
                }
1857
1858
                $result->data_seek(0);
1859
            }
1860
        }
1861
1862
        // check for the "classname" field in overloaded tables
1863
        if ($this->BO->isTableOverloaded()) {

Alpha/Model/ActiveRecordProviderSQLite.php 1 location

@@ 1861-1879 (lines=19) @@
1858
        $reflection = new ReflectionClass(get_class($this->BO));
1859
        $properties = $reflection->getProperties();
1860
1861
        foreach ($properties as $propObj) {
1862
            $propName = $propObj->name;
1863
            if (!in_array($propName, $this->BO->getTransientAttributes())) {
1864
                $foundMatch = false;
1865
1866
                while ($row = $result->fetchArray(SQLITE3_ASSOC)) {
1867
                    if ($propName == $row['name']) {
1868
                        $foundMatch = true;
1869
                        break;
1870
                    }
1871
                }
1872
1873
                if (!$foundMatch) {
1874
                    --$matchCount;
1875
                }
1876
1877
                $result->reset();
1878
            }
1879
        }
1880
1881
        // check for the "classname" field in overloaded tables
1882
        if ($this->BO->isTableOverloaded()) {