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

@@ 673-686 (lines=14) @@
670
            }
671
672
            $result = $stmt->execute();
673
        } else {
674
            self::$logger->warn('The following query caused an unexpected result ['.$sqlQuery.']');
675
676
            if (!$this->BO->checkTableExists()) {
677
                $this->BO->makeTable();
678
679
                throw new RecordFoundException('Failed to load objects by attributes ['.var_export($attributes, true).'] and values ['.
680
                    var_export($values, true).'], table did not exist so had to create!');
681
            }
682
683
            self::$logger->debug('<<loadAllByAttributes []');
684
685
            return array();
686
        }
687
688
        // now build an array of objects to be returned
689
        $objects = array();