Code Duplication    Length = 14-14 lines in 2 locations

Alpha/Model/ActiveRecordProviderMySQL.php 1 location

@@ 689-702 (lines=14) @@
686
            $result = $this->bindResult($stmt);
687
688
            $stmt->close();
689
        } else {
690
            self::$logger->warn('The following query caused an unexpected result ['.$sqlQuery.']');
691
692
            if (!$this->BO->checkTableExists()) {
693
                $this->BO->makeTable();
694
695
                throw new RecordNotFoundException('Failed to load objects by attributes ['.var_export($attributes, true).'] and values ['.
696
                    var_export($values, true).'], table did not exist so had to create!');
697
            }
698
699
            self::$logger->debug('<<loadAllByAttributes []');
700
701
            return array();
702
        }
703
704
        // now build an array of objects to be returned
705
        $objects = array();

Alpha/Model/ActiveRecordProviderSQLite.php 1 location

@@ 692-705 (lines=14) @@
689
            }
690
691
            $result = $stmt->execute();
692
        } else {
693
            self::$logger->warn('The following query caused an unexpected result ['.$sqlQuery.']');
694
695
            if (!$this->BO->checkTableExists()) {
696
                $this->BO->makeTable();
697
698
                throw new RecordFoundException('Failed to load objects by attributes ['.var_export($attributes, true).'] and values ['.
699
                    var_export($values, true).'], table did not exist so had to create!');
700
            }
701
702
            self::$logger->debug('<<loadAllByAttributes []');
703
704
            return array();
705
        }
706
707
        // now build an array of objects to be returned
708
        $objects = array();