Code Duplication    Length = 17-17 lines in 2 locations

Alpha/Model/ActiveRecordProviderMySQL.php 1 location

@@ 1881-1897 (lines=17) @@
1878
            $updateRequired = true;
1879
        }
1880
1881
        if ($result) {
1882
            // check the table indexes
1883
            try {
1884
                $this->checkIndexes();
1885
            } catch (AlphaException $ae) {
1886
                self::$logger->warn("Error while checking database indexes:\n\n".$ae->getMessage());
1887
            }
1888
1889
            self::$logger->debug('<<checkTableNeedsUpdate ['.$updateRequired.']');
1890
1891
            return $updateRequired;
1892
        } else {
1893
            throw new AlphaException('Failed to access the system database correctly, error is ['.self::getConnection()->error.']');
1894
            self::$logger->debug('<<checkTableNeedsUpdate [false]');
1895
1896
            return false;
1897
        }
1898
    }
1899
1900
    /**

Alpha/Model/ActiveRecordProviderSQLite.php 1 location

@@ 1900-1916 (lines=17) @@
1897
            $updateRequired = true;
1898
        }
1899
1900
        if (!$result) {
1901
            throw new AlphaException('Failed to access the system database correctly, error is ['.self::getLastDatabaseError().']');
1902
            self::$logger->debug('<<checkTableNeedsUpdate [false]');
1903
1904
            return false;
1905
        } else {
1906
            // check the table indexes
1907
            try {
1908
                $this->checkIndexes();
1909
            } catch (AlphaException $ae) {
1910
                self::$logger->warn("Error while checking database indexes:\n\n".$ae->getMessage());
1911
            }
1912
1913
            self::$logger->debug('<<checkTableNeedsUpdate ['.$updateRequired.']');
1914
1915
            return $updateRequired;
1916
        }
1917
    }
1918
1919
    /**